Integrating LocustIO results in Jenkins' performance plugin Integrating LocustIO results in Jenkins' performance plugin jenkins jenkins

Integrating LocustIO results in Jenkins' performance plugin


The Jenkins performance plugin, as you've noted, is geared towards JMeter and JUnit. It has built in capabilities for JMeter's .jtl files, which are internally XML, and JUnit's .xml files. As far as I can tell there is no capability for .csv files.

You have a couple of options:

  1. You can further modify your response writer to write out XML files that the performance plugin can directly consume

  2. If plot are really all you care about there is the Jenkins Plot plugin that can consume CSV files and draw pretty graphs. Note though that the performance plugin has other features such as response time tracking across builds, which the simpler plot plugin wont do.


If the problem is running Locust by Jenkins and seeing the result of the performance test, you can solve the problem by the following:

create a job in Jenkins and add the following shell command:

cd /path/to/locust/file/usr/local/bin/locust -f myhabit_locust.py --clients=2 --hatch-rate=1 --num-request=50 --no-web --print-stats --only-summary

it gives the result of the test and Jenkins can check it fails or not.

enter image description here