Skip to content

Commit

Permalink
Introduce filterRegex parameter for performance report publisher (SAP…
Browse files Browse the repository at this point in the history
…#4555)

* Update default_pipeline_environment.yml

Add filterRegex parameter to jmeter configuration. Set it to an empty string as generated from pipelinesyntax reference in jenkins

* Update testsPublishResults.groovy

Add the filterRegex param to the publishJmeterReport plugin in testPublishResults

* Update documentation to include filterRegex

---------

Co-authored-by: Anil Keshav <anil.keshav@sap.com>
  • Loading branch information
2 people authored and maxatsap committed Jul 23, 2024
1 parent d17260e commit 14609c8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 18 deletions.
35 changes: 18 additions & 17 deletions documentation/docs/steps/testsPublishResults.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,24 +58,25 @@ testsPublishResults(

### jmeter

| parameter | mandatory | default | possible values |
| ----------|-----------|---------|-----------------|
| parameter | mandatory | default | possible values |
| ----------|-----------|--------------|-----------------|
| pattern | no | `'**/*.jtl'` | |
| errorFailedThreshold | no | `20` | |
| errorUnstableThreshold | no | `10` | |
| errorUnstableResponseTimeThreshold | no | `` | |
| relativeFailedThresholdPositive | no | `0` | |
| relativeFailedThresholdNegative | no | `0` | |
| relativeUnstableThresholdPositive | no | `0` | |
| relativeUnstableThresholdNegative | no | `0` | |
| modeOfThreshold | no | `false` | true, false |
| modeThroughput | no | `false` | true, false |
| nthBuildNumber | no | `0` | |
| configType | no | `PRT` | |
| failBuildIfNoResultFile | no | `false` | true, false |
| compareBuildPrevious | no | `true` | true, false |
| archive | no | `false` | true, false |
| allowEmptyResults | no | `true` | true, false |
| errorFailedThreshold | no | `20` | |
| errorUnstableThreshold | no | `10` | |
| errorUnstableResponseTimeThreshold | no | `` | |
| relativeFailedThresholdPositive | no | `0` | |
| relativeFailedThresholdNegative | no | `0` | |
| relativeUnstableThresholdPositive | no | `0` | |
| relativeUnstableThresholdNegative | no | `0` | |
| modeOfThreshold | no | `false` | true, false |
| modeThroughput | no | `false` | true, false |
| nthBuildNumber | no | `0` | |
| configType | no | `PRT` | |
| failBuildIfNoResultFile | no | `false` | true, false |
| compareBuildPrevious | no | `true` | true, false |
| archive | no | `false` | true, false |
| allowEmptyResults | no | `true` | true, false |
| filterRegex | no | ' ' | |

## ${docGenConfiguration}

Expand Down
1 change: 1 addition & 0 deletions resources/default_pipeline_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ steps:
active: false
jmeter:
pattern: '**/*.jtl'
filterRegex: ''
errorFailedThreshold: 20
errorUnstableThreshold: 10
errorUnstableResponseTimeThreshold: ''
Expand Down
3 changes: 2 additions & 1 deletion vars/testsPublishResults.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@ def publishJMeterReport(Map settings = [:]){
nthBuildNumber: settings.get('nthBuildNumber'),
configType: settings.get('configType'),
failBuildIfNoResultFile: settings.get('failBuildIfNoResultFile'),
compareBuildPrevious: settings.get('compareBuildPrevious')
compareBuildPrevious: settings.get('compareBuildPrevious'),
filterRegex: settings.get('filterRegex')
)
archiveResults(settings.get('archive'), pattern, settings.get('allowEmptyResults'))
}
Expand Down

0 comments on commit 14609c8

Please sign in to comment.