1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-02-19 19:44:27 +02:00
sap-jenkins-library/documentation/docs/steps/testsPublishResults.md
Thilaknath e22671a9a0
Introduce filterRegex parameter for performance report publisher (#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>
2023-10-11 10:59:15 +02:00

3.0 KiB

${docGenStepName}

${docGenDescription}

Prerequisites

Pipeline configuration

none

Explanation of pipeline step

Usage of pipeline step:

testsPublishResults(
  junit: [updateResults: true, archive: true],
  jacoco: [archive: true]
)

${docGenParameters}

junit

parameter mandatory default possible values
pattern no '**/TEST-*.xml'
archive no false true, false
updateResults no false true, false
allowEmptyResults no true true, false

jacoco

parameter mandatory default possible values
pattern no '**/target/*.exec'
include no '' '**/*.class'
exclude no '' '**/Test*'
archive no false true, false
allowEmptyResults no true true, false

cobertura

parameter mandatory default possible values
pattern no '**/target/coverage/cobertura-coverage.xml'
archive no false true, false
allowEmptyResults no true true, false
onlyStableBuilds no true true, false

jmeter

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
filterRegex no ' '

${docGenConfiguration}

${docJenkinsPluginDependencies}

Side effects

none

Exceptions

none

Example

// publish test results with coverage
testsPublishResults(
  junit: [updateResults: true, archive: true],
  jacoco: [archive: true]
)
// publish test results with coverage
testsPublishResults(
  junit: [pattern: '**/target/TEST*.xml', archive: true],
  cobertura: [pattern: '**/target/coverage/cobertura-coverage.xml']
)