I have a jenkins job that is running some bash disk usage commands and storing them in a text file. For example:
du -sk /home/user/* > results.txt
will output the size in kilobytes of everything in /home/user/
into results.txt
I then want to somehow create a pie chart for /home/user/
with each line in results.txt being represented as a percentage. For example if one of the lines in results.txt
is:
100 /home/user/somedir
And the total # of kilobytes is 1000
then /home/user/somedir
should be represented as 10%
on the pie chart.
I want this to be displayed in jenkins. How can I do this?