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.
junit
: Archive JUnit-formatted test resultsTo use this feature, first set up your build to run tests, then specify the path to JUnit XML files in the Ant glob syntax, such as **/build/test-reports/*.xml. Be sure not to include any non-report files into this pattern. You can specify multiple patterns of files separated by commas.
testResults : String
allowEmptyResults : boolean
(optional)
checksName : String
(optional)
healthScaleFactor : double
(optional)
1.0
0.0
will disable the test result contribution to build health score.0.1
means that 10% of tests failing will score 99% health0.5
means that 10% of tests failing will score 95% health1.0
means that 10% of tests failing will score 90% health2.0
means that 10% of tests failing will score 80% health2.5
means that 10% of tests failing will score 75% health5.0
means that 10% of tests failing will score 50% health10.0
means that 10% of tests failing will score 0% healthkeepLongStdio : boolean
(optional)
keepProperties : boolean
(optional)
keepTestNames : boolean
(optional)
skipMarkingBuildUnstable : boolean
(optional)
skipOldReports : boolean
(optional)
skipPublishingChecks : boolean
(optional)
stdioRetention : String
(optional)
testDataPublishers
(optional)
attachments
attachments
$class: 'AutomateTestDataPublisher'
$class: 'AutomateTestDataPublisher'
$class: 'ClaimTestDataPublisher'
$class: 'ClaimTestDataPublisher'
displayClaimActionsInTestResultsTable : boolean
junitFlakyTestPublisher
junitFlakyTestPublisher
jiraTestResultReporter
jiraTestResultReporter
configs
jiraSelectableArrayField
jiraSelectableArrayField
fieldKey : String
values
value : String
value : String
jiraSelectableField
jiraSelectableField
fieldKey : String
value : String
jiraStringArrayField
jiraStringArrayField
fieldKey : String
values
value : String
value : String
jiraStringField
jiraStringField
fieldKey : String
value : String
Insert a string value.
You can include Jenkins Environment variables (see link), or the following variables defined by this plugin:
Variable usage: ${VAR_NAME}CRFL - new line
DEFAULT_SUMMARY - configured in the global configuration page
DEFAULT_DESCRIPTION - configured in the global configuration page
TEST_RESULT
TEST_NAME
TEST_FULL_NAME
TEST_STACK_TRACE
TEST_ERROR_DETAILS
TEST_DURATION
TEST_PACKAGE_NAME
TEST_PACKAGE_CLASS_METHOD_NAME
TEST_STDERR
TEST_STDOUT
TEST_OVERVIEW
TEST_AGE
TEST_PASS_COUNT
TEST_SKIPPED_COUNT
TEST_FAIL_SINCE
TEST_IS_REGRESSION - expands to true/false
BUILD_RESULT
jiraUserField
jiraUserField
fieldKey : String
value : String
Insert the username.
For example if you have a user with:
Display Name: John Doe, Username: johndoe, Email: johndoe@email.com,
you need to write johndoe in this field. Any other value (like display name, or email) will not work.
projectKey : String
issueType : String
autoRaiseIssue : boolean
autoResolveIssue : boolean
autoUnlinkIssue : boolean
overrideResolvedIssues : boolean
additionalAttachments : boolean
(optional)
$class: 'JunitResultPublisher'
$class: 'JunitResultPublisher'
urlOverride : String
$class: 'PerfSigTestDataPublisher'
$class: 'PerfSigTestDataPublisher'
dynatraceProfile : String
$class: 'SahaginTestDataPublishser'
$class: 'SahaginTestDataPublishser'
$class: 'SauceOnDemandReportPublisher'
$class: 'SauceOnDemandReportPublisher'
jobVisibility : String
(optional)
$class: 'StabilityTestDataPublisher'
$class: 'StabilityTestDataPublisher'
$class: 'TestCafePublisher'
$class: 'TestCafePublisher'
$class: 'TestReporter'
$class: 'TestReporter'
$class: 'YoutrackTestDataPublisher'
$class: 'YoutrackTestDataPublisher'
step([$class: 'JUnitResultArchiver'])
: Publish JUnit test result reportTo use this feature, first set up your build to run tests, then specify the path to JUnit XML files in the Ant glob syntax, such as **/build/test-reports/*.xml. Be sure not to include any non-report files into this pattern. You can specify multiple patterns of files separated by commas.
testResults : String
allowEmptyResults : boolean
(optional)
checksName : String
(optional)
healthScaleFactor : double
(optional)
1.0
0.0
will disable the test result contribution to build health score.0.1
means that 10% of tests failing will score 99% health0.5
means that 10% of tests failing will score 95% health1.0
means that 10% of tests failing will score 90% health2.0
means that 10% of tests failing will score 80% health2.5
means that 10% of tests failing will score 75% health5.0
means that 10% of tests failing will score 50% health10.0
means that 10% of tests failing will score 0% healthkeepLongStdio : boolean
(optional)
If checked, any standard output or error from a test suite will be retained in the test results after the build completes. (This refers only to additional messages printed to console, not to a failure stack trace.) Such output is always kept if the test failed, but by default lengthy output from passing tests is truncated to save space. Check this option if you need to see every log message from even passing tests, but beware that Jenkins's memory consumption can substantially increase as a result, even if you never look at the test results!
keepProperties : boolean
(optional)
keepTestNames : boolean
(optional)
skipMarkingBuildUnstable : boolean
(optional)
skipOldReports : boolean
(optional)
skipPublishingChecks : boolean
(optional)
stdioRetention : String
(optional)
testDataPublishers
(optional)
attachments
attachments
$class: 'AutomateTestDataPublisher'
$class: 'AutomateTestDataPublisher'
$class: 'ClaimTestDataPublisher'
$class: 'ClaimTestDataPublisher'
displayClaimActionsInTestResultsTable : boolean
junitFlakyTestPublisher
junitFlakyTestPublisher
jiraTestResultReporter
jiraTestResultReporter
configs
jiraSelectableArrayField
jiraSelectableArrayField
fieldKey : String
values
value : String
value : String
jiraSelectableField
jiraSelectableField
fieldKey : String
value : String
jiraStringArrayField
jiraStringArrayField
fieldKey : String
values
value : String
value : String
jiraStringField
jiraStringField
fieldKey : String
value : String
Insert a string value.
You can include Jenkins Environment variables (see link), or the following variables defined by this plugin:
Variable usage: ${VAR_NAME}CRFL - new line
DEFAULT_SUMMARY - configured in the global configuration page
DEFAULT_DESCRIPTION - configured in the global configuration page
TEST_RESULT
TEST_NAME
TEST_FULL_NAME
TEST_STACK_TRACE
TEST_ERROR_DETAILS
TEST_DURATION
TEST_PACKAGE_NAME
TEST_PACKAGE_CLASS_METHOD_NAME
TEST_STDERR
TEST_STDOUT
TEST_OVERVIEW
TEST_AGE
TEST_PASS_COUNT
TEST_SKIPPED_COUNT
TEST_FAIL_SINCE
TEST_IS_REGRESSION - expands to true/false
BUILD_RESULT
jiraUserField
jiraUserField
fieldKey : String
value : String
Insert the username.
For example if you have a user with:
Display Name: John Doe, Username: johndoe, Email: johndoe@email.com,
you need to write johndoe in this field. Any other value (like display name, or email) will not work.
projectKey : String
issueType : String
autoRaiseIssue : boolean
autoResolveIssue : boolean
autoUnlinkIssue : boolean
overrideResolvedIssues : boolean
additionalAttachments : boolean
(optional)
$class: 'JunitResultPublisher'
$class: 'JunitResultPublisher'
urlOverride : String
$class: 'PerfSigTestDataPublisher'
$class: 'PerfSigTestDataPublisher'
dynatraceProfile : String
$class: 'SahaginTestDataPublishser'
$class: 'SahaginTestDataPublishser'
$class: 'SauceOnDemandReportPublisher'
$class: 'SauceOnDemandReportPublisher'
jobVisibility : String
(optional)
$class: 'StabilityTestDataPublisher'
$class: 'StabilityTestDataPublisher'
$class: 'TestCafePublisher'
$class: 'TestCafePublisher'
$class: 'TestReporter'
$class: 'TestReporter'
$class: 'YoutrackTestDataPublisher'
$class: 'YoutrackTestDataPublisher'
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.