wp.jochen.hayek.name/blog-en

Jenkins CI and the “Plot Plugin” — plot your data! show where your figures are going!

This plugin provides generic plotting (or graphing) capabilities in Jenkins.

I don’t really find the plugin’s documentation itself rather intriguing. But I came across a simple example at work. And that example was rather self-describing and impressive. A couple of weeks later I was asked to create a rather special use graphic, and I wondered for a while, how I would achieve that. Luckily enough I was able to reduce the “rather special use graphic” to a very simple use of the plot plugin.

My preferred use case:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<map_file>
  <totals       max_readonly_memory="700000" 
              total_readonly_memory="372155" 
               readonly_code_memory="286914" 
               readonly_data_memory="85241"

          max_readwrite_data_memory="100000" 
              readwrite_data_memory="70195"
          />
</map_file>
//map_file/totals/@max_readonly_memory | //map_file/totals/@total_readonly_memory | //map_file/totals/@readonly_code_memory | //map_file/totals/@readonly_data_memory

Yes, you do need a couple of build runs for getting an impressive plot picture. The application running within the respective Jenkins job would be a little heavy to run only for achieving my wonderful plot. I developed a tiny Perl script instead that creates XML files of this kind with rather random values.

Should the demand for my scripts and XML file rise … — I can always upload my files to my github space. Drop me a line!

Exit mobile version