Plot Plugin

Plugin Information

Plugin ID plot
Latest Release 1.2
Latest Release Date Sep 24, 2008
Changes via Fisheye In Latest Release
Since Latest Release
Maintainer(s) n/a (id: dpatil)
Issue Tracking Open Issues

This plugin provides generic plotting (or graphing) capabilities in Hudson.
This plugin will plot data across builds. Plots for a particular job (or project) are configured in the job configuration screen, where each field has additional help information. Data for the plots are pulled from Java properties files in your build workspace after each build completes. Each plot can have one or more lines (called data series). Data for each plot is stored in a CSV file within the job's root project directory.

Here is an example of the plots generated by this plugin:

Example Usage to generate detailed PMD reports

Attached is a Perl script which generates more detailed "summaries" out of PMD report files. We use this for several code analysis projects, all named trunk.codeanalysis.prefix.

To have all resulting plots at one page, give all Plots the same plot group. Because each code quality has its very own range, define each on a separate plot, not as an additional data series.

Change Log

Version 1.3 (TBD)
  • Configurable graph style for each plot.
  • Read data from XML files (issue #2796).
  • Read data from CSV files (issue #2899).
  • Update code for more recent Hudson.
Version 1.2 (Sep 24, 2008)

Labels:

plugin-report plugin-report Delete
plugin-ui plugin-ui Delete
Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.
  1. Dec 27

    Richard says:

    I don't see any perl script here? How do I know what format of data file to gen...

    I don't see any perl script here? How do I know what format of data file to generate?

    1. Jan 20

      Ray Thompson says:

      The explanation of the file format is found in configuration of the job. Click o...

      The explanation of the file format is found in configuration of the job. Click on the blue help icon for "Data series file" and you will see:

       Mandatory. Specifies the path to the Java property file (key=value pairs), relative to the workspace root, that contains the data value for this data series. The file must contain a YVALUE property and may optionally contain a URL property. If present, the URL will be opened when the data point on the plot is clicked.
      The specification of this file can use wildcards likebuild/report/*/report.properties but only the first file resolved by the wildcard will be used. See the @includes of Ant fileset for the exact format.
      For example, a properties file might look like:
        YVALUE=3.342
        URL=http://foo.bar/