Take Data From Jenkins Output and Graph/Plot it Take Data From Jenkins Output and Graph/Plot it jenkins jenkins

Take Data From Jenkins Output and Graph/Plot it


Assuming that the shell code you listed above is under your control, the easiest way to do this is to echo the output to a CSV file instead of / as well as to the console, and then use the Jenkins Plot Plugin to display the results.


This is exactly what the Plot Plugin is for.

You need to change your shell build step (or other part of the build) to createa separate file for each value that you want to plot.They need to be of the form:

YVALUE=<value>

In your example you would need a file "mastercount.txt" with:

YVALUE=13596

and another file called "diffcount.txt" with:

YVALUE=-153

Then under post-build actions you need to configure the plot-plugin to pick up these files and generate plots.