Merge "Support for more configurable options in Plots Plugin"

This commit is contained in:
Jenkins 2015-06-09 16:50:12 +00:00 committed by Gerrit Code Review
commit 4c7991287b
6 changed files with 24 additions and 1 deletions

View File

@ -3064,7 +3064,14 @@ def plot(parser, xml_parent, data):
descriptions used as X-axis labels and the
build number and date used for tooltips.
(default: False)
:arg bool keep-records: When checked, show all builds up to 'Number of
:arg bool exclude-zero-yaxis: When false, Y-axis contains the value zero
even if it is not included in the data
series. When true, the value zero is not
automatically included. (default: False)
:arg bool logarithmic-yaxis: When true, the Y-axis will use a logarithmic
scale. By default, the Y-axis uses a linear
scale. (default: False)
:arg bool keep-records: When true, show all builds up to 'Number of
builds to include'. (default: false)
:arg str csv-file-name: Use for choosing the file name in which the data
will be persisted. If none specified and random
@ -3167,6 +3174,10 @@ def plot(parser, xml_parent, data):
XML.SubElement(plugin, 'group').text = plot['group']
XML.SubElement(plugin, 'useDescr').text = \
str(plot.get('use-description', False)).lower()
XML.SubElement(plugin, 'exclZero').text = \
str(plot.get('exclude-zero-yaxis', False)).lower()
XML.SubElement(plugin, 'logarithmic').text = \
str(plot.get('logarithmic-yaxis', False)).lower()
XML.SubElement(plugin, 'keepRecords').text = \
str(plot.get('keep-records', False)).lower()
XML.SubElement(plugin, 'numBuilds').text = plot.get('num-builds', '')

View File

@ -19,6 +19,8 @@
</series>
<group>bench</group>
<useDescr>false</useDescr>
<exclZero>false</exclZero>
<logarithmic>false</logarithmic>
<keepRecords>true</keepRecords>
<numBuilds/>
<style>line</style>

View File

@ -16,6 +16,8 @@
</series>
<group>bench</group>
<useDescr>false</useDescr>
<exclZero>false</exclZero>
<logarithmic>false</logarithmic>
<keepRecords>false</keepRecords>
<numBuilds/>
<style>line</style>

View File

@ -18,6 +18,8 @@
</series>
<group>bench</group>
<useDescr>false</useDescr>
<exclZero>false</exclZero>
<logarithmic>false</logarithmic>
<keepRecords>false</keepRecords>
<numBuilds/>
<style>line</style>

View File

@ -24,6 +24,8 @@
</series>
<group>PlotGroup</group>
<useDescr>false</useDescr>
<exclZero>true</exclZero>
<logarithmic>true</logarithmic>
<keepRecords>false</keepRecords>
<numBuilds/>
<style>line</style>
@ -43,6 +45,8 @@
</series>
<group>PlotGroup</group>
<useDescr>false</useDescr>
<exclZero>false</exclZero>
<logarithmic>false</logarithmic>
<keepRecords>false</keepRecords>
<numBuilds/>
<style>line</style>

View File

@ -6,6 +6,8 @@ publishers:
group: PlotGroup
num-builds: ''
style: line
exclude-zero-yaxis: true
logarithmic-yaxis: true
use-description: false
series:
- file: graph-me-second.properties