The following plugin provides functionality available through Pipeline-compatible steps. Read more about how to integrate steps into your Pipeline in the Steps section of the Pipeline Syntax page.
For a list of other such plugins, see the Pipeline Steps Reference page.
step([$class: 'Publisher'])
: Publish TestNG ResultsescapeExceptionMsg
(optional)
If checked, the plug-in escapes the test method's exception messages. Unchecking this allows you to use HTML tags to format the exception message e.g. embed links in the text. (Enabled by default)
boolean
escapeTestDescp
(optional)
If checked, the plug-in escapes the description string associated with the test method while displaying test method details. Unchecking this allows you to use HTML tags to format the description. (Enabled by default)
boolean
failedFails
(optional)
A build is marked FAILURE if the number/percentage of failed tests exceeds the specified threshold.
int
failedSkips
(optional)
A build is marked FAILURE if the number/percentage of skipped tests exceeds the specified threshold.
int
failureOnFailedTestConfig
(optional)
Allows for a distinction between failing tests and failing configuration methods. Failing tests can be seen as an unstable build whereas failing configuration methods are a failed build. This will trump any settings in Thresholds section.
boolean
reportFilenamePattern
(optional)
This is a file name pattern that can be used to locate the TestNG XML report files (for example **/target/testng-results.xml).
The path is an Ant-style pattern (e.g. fileset) or a list of files and folders separated by the characters ;:,
TestNG must be configured to generate XML reports using org.testng.reporters.XMLReporter for this plug-in to function.
String
showFailedBuilds
(optional)
If checked, the plug-in includes results from failed builds in the trend graph. (Disabled by default)
Note:
-Dmaven.test.failure.ignore=true
option. This results in build with test failures being marked as Unstable, thus distinguishing it from build that failed because of non test related issuesboolean
thresholdMode
(optional)
int
unstableFails
(optional)
A build is marked UNSTABLE if the number/percentage of failed tests exceeds the specified threshold.
int
unstableSkips
(optional)
A build is marked UNSTABLE if the number/percentage of skipped tests exceeds the specified threshold.
int
Please submit your feedback about this page through this quick form.
Alternatively, if you don't wish to complete the quick form, you can simply indicate if you found this page helpful?
See existing feedback here.