Take Data From Jenkins Output and Graph/Plot it
graph, jenkins, shell
Solution
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.
Problem
I need to pull certain numbers from the console output of a Jenkins build, and then plot that data on a graph. If my output is: `+ echo -153 -153 + echo master count: 13596 master count: 13596 Finished: SUCCESS` I want to pull the master count and -153. The master count is total number of errors while the -153 is the change of errors from two builds. I then want to make a graph using those 2 numbers. So my question is, how do I send those two sets of data from the console to a graph in jenkins? The numbers will change over time and I wish to be able to see the trend in errors.