pratik
pratik

Reputation: 783

Jenkins pipeline performance report build failure due to wrong different calculation

I am running jmeter test using jenkins pipeline and performance plugin .

but build is getting failed due to below message

 TG01_TS01_RTPSR_WB_HR24_NavigateThroughWebsiteGroups - JSR223_Reset Variables for next iteration                                         0                   1                   192233720368547760.00%

The label "TG01_TS01_RTPSR_WB_HR24_NavigateThroughWebsiteGroups - JSR223_Reset Variables for next iteration" caused the build to fail

and my jenkins pipeline parameters are

perfReport compareBuildPrevious: true, filterRegex: '', ignoreFailedBuilds: true, ignoreUnstableBuilds: true, modeOfThreshold: true,relativeFailedThresholdPositive: 80.0, relativeUnstableThresholdPositive: 80.0, sourceDataFiles: "/Results/${params.reportName}.csv"

enter image description here

Upvotes: 0

Views: 476

Answers (1)

Dmitri T
Dmitri T

Reputation: 168072

My expectation is that you have a JSR223 Sampler somewhere in your script which is doing some helper stuff and the current build is failing because this sampler response time was higher than the threshold you configured.

I don't think you should include the metrics for this JSR223 Sampler into your reports, just add the next line somewhere:

SampleResult.setIgnore()

Demo:

enter image description here More information:

Upvotes: 1

Related Questions