10
votes

I am using jenkins pipeline script to run jmeter script and am using performance plugin to create performanceReport as below

performanceReport parsers: [[$class: 'JMeterParser', glob: "**/*.jtl"]], modeOfThreshold: true,relativeFailedThresholdNegative: 1.2, relativeFailedThresholdPositive: 1.89, relativeUnstableThresholdNegative: 1.8, relativeUnstableThresholdPositive: 1.5

In the below performance trend though errors are increased the build is green so I'm trying to configure Jenkins performance plugin to fail job if the percentage of errors increase by X % or response time decrease/increase by X % with respect to previous build(s) . can someone please help me with it?

enter image description here

1
Anyone found a solution to this yet ?? As I would like to implement something similarrohit thomas

1 Answers

1
votes

I think the easiest option for you is to wrap your JMeter tests using TAURUS and use the Taurus PASSFAIL module to fail the job. In the PASSFAIL module I didn't see a way to compare the errors or response time across builds, but you can define the average RT/LT etc and make the job fail based on that. Hope that helps!