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

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAHN924r7KCXEPXVFT3hyb7qyfYL9tz%3DTqWw4tmaEvEJkRf89Cw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to