I am able to execute PT from Jenkins on Blazemeter.
Now I want jenkins build number to show in blazemeter report. I am doing the below things
- I am adding sample_variable = buildnumber in user.properties file and uploading the same in blazemeter.
- In the jmx script as part of test plan I am adding -
buildnumber
${__P(buildnumber,0)}
- In Jenkins blazemeter plugin i am providing Session properties = -Jbuildnumber=${BUILD_NUMBER}
I am able to see the buildnumber value in Jenkins Logs but I'm not able to harvest the logs in JTL file and Blazemeter. Please suggest what more steps are required.
Also I tried the below workaround, but the same is also not working.
To add it to the JTL, you can add a "Once only controller" with a dummy sampler, and call that sampler buildnumber ${__P(buildnumber,0)}
.
This way, this label will run only once, and will appear in the JTL file.