Merge "Adds claim-build support junit publisher"
This commit is contained in:
commit
445c73a298
|
@ -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…
Reference in New Issue