Merge "add support for measurement plots plugin to junit publisher"

This commit is contained in:
Jenkins 2015-06-16 10:10:37 +00:00 committed by Gerrit Code Review
commit 6fe4626518
3 changed files with 8 additions and 0 deletions

View File

@ -834,6 +834,9 @@ def junit(parser, xml_parent, data):
<Test+stability+plugin>`.
:arg bool claim-build: Allow claiming of failed tests (default false)
Requires the Jenkins :jenkins-wiki:`Claim Plugin <Claim+plugin>`.
:arg bool measurement-plots: Create measurement plots (default false)
Requires the Jenkins `Measurement Plots Plugin.
<https://wiki.jenkins-ci.org/display/JENKINS/Measurement+Plots+Plugin>`_.
Minimal example using defaults:
@ -858,6 +861,9 @@ def junit(parser, xml_parent, data):
if str(data.get('claim-build', False)).lower() == 'true':
XML.SubElement(datapublisher,
'hudson.plugins.claim.ClaimTestDataPublisher')
if str(data.get('measurement-plots', False)).lower() == 'true':
XML.SubElement(datapublisher,
'hudson.plugins.measurement__plots.TestDataPublisher')
def xunit(parser, xml_parent, data):

View File

@ -7,6 +7,7 @@
<testDataPublishers>
<de.esailors.jenkins.teststability.StabilityTestDataPublisher/>
<hudson.plugins.claim.ClaimTestDataPublisher/>
<hudson.plugins.measurement__plots.TestDataPublisher/>
</testDataPublishers>
</hudson.tasks.junit.JUnitResultArchiver>
</publishers>

View File

@ -4,3 +4,4 @@ publishers:
keep-long-stdio: false
test-stability: true
claim-build: true
measurement-plots: true