Adds claim-build support junit publisher
Requires Claim Plugin. https://wiki.jenkins-ci.org/display/JENKINS/Claim+plugin Change-Id: I8daf721f125d9cd89f0aa005f396cf67405229d2 Closes-Bug: #1389301
This commit is contained in:
parent
89b559dd25
commit
14aea16ed9
@ -795,6 +795,9 @@ def junit(parser, xml_parent, data):
|
||||
results stability (default false).
|
||||
Requires the Jenkins `Test stability Plugin
|
||||
<https://wiki.jenkins-ci.org/display/JENKINS/Test+stability+plugin>`_.
|
||||
:arg bool claim-build: Allow claiming of failed tests (default false)
|
||||
Requires the Jenkins `Claim Plugin.
|
||||
<https://wiki.jenkins-ci.org/display/JENKINS/Claim+plugin>`_.
|
||||
|
||||
Minimal example using defaults:
|
||||
|
||||
@ -815,6 +818,9 @@ def junit(parser, xml_parent, data):
|
||||
XML.SubElement(datapublisher,
|
||||
'de.esailors.jenkins.teststability'
|
||||
'.StabilityTestDataPublisher')
|
||||
if str(data.get('claim-build', False)).lower() == 'true':
|
||||
XML.SubElement(datapublisher,
|
||||
'hudson.plugins.claim.ClaimTestDataPublisher')
|
||||
|
||||
|
||||
def xunit(parser, xml_parent, data):
|
||||
|
@ -6,6 +6,7 @@
|
||||
<keepLongStdio>false</keepLongStdio>
|
||||
<testDataPublishers>
|
||||
<de.esailors.jenkins.teststability.StabilityTestDataPublisher/>
|
||||
<hudson.plugins.claim.ClaimTestDataPublisher/>
|
||||
</testDataPublishers>
|
||||
</hudson.tasks.junit.JUnitResultArchiver>
|
||||
</publishers>
|
||||
|
@ -3,3 +3,4 @@ publishers:
|
||||
results: nosetests-example.xml
|
||||
keep-long-stdio: false
|
||||
test-stability: true
|
||||
claim-build: true
|
||||
|
Loading…
x
Reference in New Issue
Block a user