junit: add 'Skip marking build as unstable on test failure' param
This new option has been added in JUnit v1.51 https://github.com/jenkinsci/junit-plugin/releases/tag/junit-1.51 The user can decide not to mark a build as unstable on test failure. Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net> Change-Id: I960ed98cf4b0f8f632546492f6dbb6d1aa0055c9
This commit is contained in:
parent
93ae6dd1e4
commit
deafd08377
@ -1580,6 +1580,8 @@ def junit(registry, xml_parent, data):
|
||||
(default false)
|
||||
:arg bool skip-publishing-checks: Do not publish issues to SCM provider
|
||||
platforms (default false)
|
||||
:arg bool skip-marking-build-unstable: Do not mark build as unstable on
|
||||
test failure (default false)
|
||||
:arg bool test-stability: Add historical information about test
|
||||
results stability (default false).
|
||||
Requires the Jenkins :jenkins-plugins:`Test stability Plugin
|
||||
@ -1615,6 +1617,7 @@ def junit(registry, xml_parent, data):
|
||||
("health-scale-factor", "healthScaleFactor", "1.0"),
|
||||
("allow-empty-results", "allowEmptyResults", False),
|
||||
("skip-publishing-checks", "skipPublishingChecks", False),
|
||||
("skip-marking-build-unstable", "skipMarkingBuildUnstable", False),
|
||||
]
|
||||
helpers.convert_mapping_to_xml(junitresult, data, mapping, fail_required=True)
|
||||
|
||||
|
@ -7,6 +7,7 @@
|
||||
<healthScaleFactor>1.0</healthScaleFactor>
|
||||
<allowEmptyResults>false</allowEmptyResults>
|
||||
<skipPublishingChecks>false</skipPublishingChecks>
|
||||
<skipMarkingBuildUnstable>false</skipMarkingBuildUnstable>
|
||||
<testDataPublishers/>
|
||||
</hudson.tasks.junit.JUnitResultArchiver>
|
||||
</publishers>
|
||||
|
@ -7,6 +7,7 @@
|
||||
<healthScaleFactor>2.0</healthScaleFactor>
|
||||
<allowEmptyResults>true</allowEmptyResults>
|
||||
<skipPublishingChecks>true</skipPublishingChecks>
|
||||
<skipMarkingBuildUnstable>true</skipMarkingBuildUnstable>
|
||||
<testDataPublishers>
|
||||
<de.esailors.jenkins.teststability.StabilityTestDataPublisher/>
|
||||
<hudson.plugins.claim.ClaimTestDataPublisher/>
|
||||
|
@ -5,6 +5,7 @@ publishers:
|
||||
health-scale-factor: 2.0
|
||||
allow-empty-results: true
|
||||
skip-publishing-checks: true
|
||||
skip-marking-build-unstable: true
|
||||
test-stability: true
|
||||
claim-build: true
|
||||
measurement-plots: true
|
||||
|
Loading…
Reference in New Issue
Block a user