Hi,
I have set up a pipeline with a 'Jenkinsfile'.
The 'Jenkinsfile' triggers performance test with JMeter and then plugin 'performanceReport'.
The output from 'performanceReport' show that the threshold has exceeded,
but the Jenkins job Finished: SUCCESS.
Do anyone know what I have missed or how to get the Jenkis job to FAILURE?
Part of the 'Jenkinsfile':
stage("Performance Tests"){
bat pscmd('.\\performance-tests.ps1')
performanceReport compareBuildPrevious: true, configType: 'ART', errorFailedThreshold: 0, errorUnstableResponseTimeThreshold: 'sws-backend-maintenance.jtl:10', errorUnstableThreshold: 0, failBuildIfNoResultFile: false, modeOfThreshold: false, modePerformancePerTestCase: true, modeThroughput: true, nthBuildNumber: 0, parsers: [[$class: 'JMeterParser', glob: 'testresults/sws-backend-maintenance.jtl']], relativeFailedThresholdNegative: 0.0, relativeFailedThresholdPositive: 0.0, relativeUnstableThresholdNegative: 0.0, relativeUnstableThresholdPositive: 0.0
step([$class: 'ArtifactArchiver', artifacts: 'testresults/**/*'])
}
Part of the Jenkins Console output log:
Performance: Recording JMeter reports 'testresults/sws-backend-maintenance.jtl'
Performance: Parsing JMeter report file 'D:\Jenkins\jobs\sws-backend-maintenance\jmeter\builds\83\performance-reports\JMeter\sws-backend-maintenance.jtl'.
Setting threshold: sws-backend-maintenance.jtl:10
Performance: Percentage of errors greater or equal than 0% sets the build as unstable
Performance: Percentage of errors greater or equal than 0% sets the build as failure
sws-backend-maintenance.jtl has an average of: 272
UNSTABLE: sws-backend-maintenance.jtl has exceeded the threshold of [10] with the time of [272]
:
[Pipeline] End of Pipeline
Finished: SUCCESS
Component: performance-plugin
Environment: Jenkins ver. 2.32.2
Performance plugin ver. 2.0
Best Regards,
Jeanette