Add support for keep-records parameter for plots-plugin

Change-Id: I6512a93c17f698477235a729fe9727ae09338aba
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
This commit is contained in:
Thanh Ha 2015-05-11 19:23:35 -04:00
parent a3aef64855
commit 877bf8d3a4
No known key found for this signature in database
GPG Key ID: B0CB27E00DA095AA
6 changed files with 10 additions and 0 deletions

View File

@ -3054,6 +3054,8 @@ 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
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
name is generated as done in the Jenkins Plot
@ -3155,6 +3157,8 @@ 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, 'keepRecords').text = \
str(plot.get('keep-records', False)).lower()
XML.SubElement(plugin, 'numBuilds').text = plot.get('num-builds', '')
style_list = ['area', 'bar', 'bar3d', 'line', 'line3d', 'stackedArea',
'stackedbar', 'stackedbar3d', 'waterfall']

View File

@ -19,6 +19,7 @@
</series>
<group>bench</group>
<useDescr>false</useDescr>
<keepRecords>true</keepRecords>
<numBuilds/>
<style>line</style>
</hudson.plugins.plot.Plot>

View File

@ -7,6 +7,7 @@ publishers:
numbuilds: '1'
style: 'line'
use-description: false
keep-records: true
series:
- file: 'data.csv'
label: ''

View File

@ -16,6 +16,7 @@
</series>
<group>bench</group>
<useDescr>false</useDescr>
<keepRecords>false</keepRecords>
<numBuilds/>
<style>line</style>
</hudson.plugins.plot.Plot>

View File

@ -18,6 +18,7 @@
</series>
<group>bench</group>
<useDescr>false</useDescr>
<keepRecords>false</keepRecords>
<numBuilds/>
<style>line</style>
</hudson.plugins.plot.Plot>

View File

@ -24,6 +24,7 @@
</series>
<group>PlotGroup</group>
<useDescr>false</useDescr>
<keepRecords>false</keepRecords>
<numBuilds/>
<style>line</style>
</hudson.plugins.plot.Plot>
@ -42,6 +43,7 @@
</series>
<group>PlotGroup</group>
<useDescr>false</useDescr>
<keepRecords>false</keepRecords>
<numBuilds/>
<style>line</style>
</hudson.plugins.plot.Plot>