Search code examples
jenkinsjmeterperformance-testing

jenkins: performance plugin shows only recent build data in the perf report


I set up jmeter job in jenkins, which supposed to publish *.jtl results and then display them in a nice trend graph. But, depite that I see that they're published under the builds//performance-results/JMeter folders, the trend always shows only current day results. So if I run this build three times during a day - I'll see graph with a three points. If it was just one run today - I'll see 1 run on that graph. I don't see yesterday and etc results on graph. I'd like to see this trend to display all the data from all the previous builds, including yesteday, etc. What should I check, how perf plugin decides which *.jtl data to use to display data??

in settings of the job I have this regexp for jtl source: **/*.jtl, so I would expect all the builds data being displayed on the trend ...


Solution

  • Apparently the solution is very simple. Found it myself! By default all jtl files had a timestamp at the beginning, thanks to jmeter-maven-plugin. Pattern was yyyyMMdd. Trend report in jenkins displayed last build results. And because of the pattern jtl results for all builds run this day were the same, and were different for previous day. So, easiest solution was to remove that timestamp from the results file name.

    <testResultsTimestamp>false</testResultsTimestamp>
    

    in configuration part of jmeter-maven-plugin in the pom file.

    Annoying, is that Performance plugin guys haven't put it into the documentation, - the requirement for results file to have the same name in order to be displayed on the graph...