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.

xUnit plugin

step([$class: 'XUnitPublisher']): Publish xUnit test result report

  • tools
      Array / List of Nested Choice of Objects
    • AUnit
      • pattern : String
      • deleteOutputFiles : boolean (optional)
      • excludesPattern : String (optional)
      • failIfNotNew : boolean (optional)
      • skipNoTestFiles : boolean (optional)
      • stopProcessingIfError : boolean (optional)
    • BoostTest
      • pattern : String
      • deleteOutputFiles : boolean (optional)
      • excludesPattern : String (optional)
      • failIfNotNew : boolean (optional)
      • skipNoTestFiles : boolean (optional)
      • stopProcessingIfError : boolean (optional)
    • CTest
      • pattern : String
      • deleteOutputFiles : boolean (optional)
      • excludesPattern : String (optional)
      • failIfNotNew : boolean (optional)
      • skipNoTestFiles : boolean (optional)
      • stopProcessingIfError : boolean (optional)
    • CUnit
      • pattern : String
      • deleteOutputFiles : boolean (optional)
      • excludesPattern : String (optional)
      • failIfNotNew : boolean (optional)
      • skipNoTestFiles : boolean (optional)
      • stopProcessingIfError : boolean (optional)
    • Check
      • pattern : String
      • deleteOutputFiles : boolean (optional)
      • excludesPattern : String (optional)
      • failIfNotNew : boolean (optional)
      • skipNoTestFiles : boolean (optional)
      • stopProcessingIfError : boolean (optional)
    • CppTest
      • pattern : String
      • deleteOutputFiles : boolean (optional)
      • excludesPattern : String (optional)
      • failIfNotNew : boolean (optional)
      • skipNoTestFiles : boolean (optional)
      • stopProcessingIfError : boolean (optional)
    • CppUnit
      • pattern : String
      • deleteOutputFiles : boolean (optional)
      • excludesPattern : String (optional)
      • failIfNotNew : boolean (optional)
      • skipNoTestFiles : boolean (optional)
      • stopProcessingIfError : boolean (optional)
    • Custom
      • pattern : String
      • customXSL : String
      • deleteOutputFiles : boolean (optional)
      • excludesPattern : String (optional)
      • failIfNotNew : boolean (optional)
      • skipNoTestFiles : boolean (optional)
      • stopProcessingIfError : boolean (optional)
    • embUnit
      • pattern : String
      • deleteOutputFiles : boolean (optional)
      • excludesPattern : String (optional)
      • failIfNotNew : boolean (optional)
      • skipNoTestFiles : boolean (optional)
      • stopProcessingIfError : boolean (optional)
    • FPCUnit
      • pattern : String
      • deleteOutputFiles : boolean (optional)
      • excludesPattern : String (optional)
      • failIfNotNew : boolean (optional)
      • skipNoTestFiles : boolean (optional)
      • stopProcessingIfError : boolean (optional)
    • gtester
      • pattern : String
      • deleteOutputFiles : boolean (optional)
      • excludesPattern : String (optional)
      • failIfNotNew : boolean (optional)
      • skipNoTestFiles : boolean (optional)
      • stopProcessingIfError : boolean (optional)
    • $class: 'GallioPluginType'
      • pattern : String
      • faildedIfNotNew : boolean
      • deleteOutputFiles : boolean
      • stopProcessingIfError : boolean
    • GoogleTest
      • pattern : String
      • deleteOutputFiles : boolean (optional)
      • excludesPattern : String (optional)
      • failIfNotNew : boolean (optional)
      • skipNoTestFiles : boolean (optional)
      • stopProcessingIfError : boolean (optional)
    • $class: 'JSUnitPluginType'
      • pattern : String
      • faildedIfNotNew : boolean
      • deleteOutputFiles : boolean
      • stopProcessingIfError : boolean
    • JUnit
      • pattern : String
      • deleteOutputFiles : boolean (optional)
      • excludesPattern : String (optional)
      • failIfNotNew : boolean (optional)
      • skipNoTestFiles : boolean (optional)
      • stopProcessingIfError : boolean (optional)
    • MSTest
      • pattern : String
      • deleteOutputFiles : boolean (optional)
      • excludesPattern : String (optional)
      • failIfNotNew : boolean (optional)
      • skipNoTestFiles : boolean (optional)
      • stopProcessingIfError : boolean (optional)
    • MbUnit
      • pattern : String
      • deleteOutputFiles : boolean (optional)
      • excludesPattern : String (optional)
      • failIfNotNew : boolean (optional)
      • skipNoTestFiles : boolean (optional)
      • stopProcessingIfError : boolean (optional)
    • NUnit3
      • pattern : String
      • deleteOutputFiles : boolean (optional)
      • excludesPattern : String (optional)
      • failIfNotNew : boolean (optional)
      • skipNoTestFiles : boolean (optional)
      • stopProcessingIfError : boolean (optional)
    • NUnit2
      • pattern : String
      • deleteOutputFiles : boolean (optional)
      • excludesPattern : String (optional)
      • failIfNotNew : boolean (optional)
      • skipNoTestFiles : boolean (optional)
      • stopProcessingIfError : boolean (optional)
    • PHPUnit
      • pattern : String
      • deleteOutputFiles : boolean (optional)
      • excludesPattern : String (optional)
      • failIfNotNew : boolean (optional)
      • skipNoTestFiles : boolean (optional)
      • stopProcessingIfError : boolean (optional)
    • $class: 'ParasoftSOAtest9xType'
      • pattern : String
      • skipNoTestFiles : boolean
      • failIfNotNew : boolean
      • deleteOutputFiles : boolean
      • stopProcessingIfError : boolean
    • $class: 'ParasoftType'
      • pattern : String
      • skipNoTestFiles : boolean
      • failIfNotNew : boolean
      • deleteOutputFiles : boolean
      • stopProcessingIfError : boolean
    • QtTest
      • pattern : String
      • deleteOutputFiles : boolean (optional)
      • excludesPattern : String (optional)
      • failIfNotNew : boolean (optional)
      • skipNoTestFiles : boolean (optional)
      • stopProcessingIfError : boolean (optional)
    • UnitTest
      • pattern : String
      • deleteOutputFiles : boolean (optional)
      • excludesPattern : String (optional)
      • failIfNotNew : boolean (optional)
      • skipNoTestFiles : boolean (optional)
      • stopProcessingIfError : boolean (optional)
    • Valgrind
      • pattern : String
      • deleteOutputFiles : boolean (optional)
      • excludesPattern : String (optional)
      • failIfNotNew : boolean (optional)
      • skipNoTestFiles : boolean (optional)
      • stopProcessingIfError : boolean (optional)
    • xUnitDotNet
      • pattern : String
      • deleteOutputFiles : boolean (optional)
      • excludesPattern : String (optional)
      • failIfNotNew : boolean (optional)
      • skipNoTestFiles : boolean (optional)
      • stopProcessingIfError : boolean (optional)
    • $class: 'hudson.plugins.testcomplete.TestCompleteTestType'
      • pattern : String
      • failedIfNotNew : boolean
      • deleteOutputFiles : boolean
      • stopProcessingIfError : boolean
      • testFilterPattern : String
    • $class: 'jenkins.plugins.xunit.tc11.TestCompleteTestType'
      • pattern : String
      • failedIfNotNew : boolean
      • deleteOutputFiles : boolean
      • stopProcessingIfError : boolean
      • testFilterPattern : String
  • thresholds
      Array / List of Nested Choice of Objects
    • failed
      • failureNewThreshold : String (optional)
      • failureThreshold : String (optional)
      • unstableNewThreshold : String (optional)
      • unstableThreshold : String (optional)
    • passed
      • failureNewThreshold : String (optional)
      • failureThreshold : String (optional)
      • unstableNewThreshold : String (optional)
      • unstableThreshold : String (optional)
    • skipped
      • failureNewThreshold : String (optional)
      • failureThreshold : String (optional)
      • unstableNewThreshold : String (optional)
      • unstableThreshold : String (optional)
  • thresholdMode : int
  • testTimeMargin : String
  • checksName : String (optional)
    If provided, and publishing checks enabled, the plugin will use this name when publishing results to corresponding SCM hosting platforms. If not, a default of "Tests" will be used.
  • followSymlink : boolean (optional)
  • reduceLog : boolean (optional)
    Cuts the standard output and error of reports to a reasonable size.

    This reduce usage of memory when Jenkins parse the aggregate report when hundred test failure with a huge logs.

  • skipPublishingChecks : boolean (optional)
    If this option is unchecked, then the plugin automatically publishes the test results to corresponding SCM hosting platforms. For example, if you are using this feature for a GitHub organization project, the warnings will be published to GitHub through the Checks API. If this operation slows down your build, or you don't want to publish the warnings to SCM platforms, you can use this option to deactivate this feature.
  • sleepTime : long (optional)
    The time in ms for which the conversion process will be suspended before starting to process the next block of reports.

    Conversion is a CPU intensive work. May happens the ping thread on slave nodes to be killed. Increases this value to allow CPU be available to other thread.

  • testDataPublishers (optional)
      Array / List of Nested Choice of Objects
    • attachments
      • $class: 'AutomateTestDataPublisher'
        • $class: 'ClaimTestDataPublisher'
          • $class: 'JUnitFlakyTestDataPublisher'
            • $class: 'JunitResultPublisher'
              If checked, each JUnit test result XML file will be examined to see if it represents a SOASTA CloudTest composition. For applicable tests, a hyperlink to the SOASTA CloudTest dashboard will be inserted into the test report.
              • urlOverride : String
                Specify the CloudTest URL to use when creating hyperlinks to CloudTest dashboards. Normally, this can be left blank, and the URL will be extracted from the test result file.
            • $class: 'PerfSigTestDataPublisher'
              • dynatraceProfile : String
            • $class: 'SahaginTestDataPublishser'
              • $class: 'SauceOnDemandReportPublisher'
                Show embedded Sauce OnDemand reports, including video and logs. Your test should use Selenium client factory (at least version 1.3 to match test cases to individual Sauce OnDemand jobs).
                • jobVisibility : String (optional)
                  Set your test results visibility permissions. The Sauce Documentation has all the various levels described in detail.
              • $class: 'StabilityTestDataPublisher'
                • $class: 'TestCafePublisher'
                  • $class: 'TestReporter'
                    • $class: 'YoutrackTestDataPublisher'

                    xunit: Publish xUnit test result report

                    • tools
                        Array / List of Nested Choice of Objects
                      • AUnit
                        • pattern : String
                        • deleteOutputFiles : boolean (optional)
                        • excludesPattern : String (optional)
                        • failIfNotNew : boolean (optional)
                        • skipNoTestFiles : boolean (optional)
                        • stopProcessingIfError : boolean (optional)
                      • BoostTest
                        • pattern : String
                        • deleteOutputFiles : boolean (optional)
                        • excludesPattern : String (optional)
                        • failIfNotNew : boolean (optional)
                        • skipNoTestFiles : boolean (optional)
                        • stopProcessingIfError : boolean (optional)
                      • CTest
                        • pattern : String
                        • deleteOutputFiles : boolean (optional)
                        • excludesPattern : String (optional)
                        • failIfNotNew : boolean (optional)
                        • skipNoTestFiles : boolean (optional)
                        • stopProcessingIfError : boolean (optional)
                      • CUnit
                        • pattern : String
                        • deleteOutputFiles : boolean (optional)
                        • excludesPattern : String (optional)
                        • failIfNotNew : boolean (optional)
                        • skipNoTestFiles : boolean (optional)
                        • stopProcessingIfError : boolean (optional)
                      • Check
                        • pattern : String
                        • deleteOutputFiles : boolean (optional)
                        • excludesPattern : String (optional)
                        • failIfNotNew : boolean (optional)
                        • skipNoTestFiles : boolean (optional)
                        • stopProcessingIfError : boolean (optional)
                      • CppTest
                        • pattern : String
                        • deleteOutputFiles : boolean (optional)
                        • excludesPattern : String (optional)
                        • failIfNotNew : boolean (optional)
                        • skipNoTestFiles : boolean (optional)
                        • stopProcessingIfError : boolean (optional)
                      • CppUnit
                        • pattern : String
                        • deleteOutputFiles : boolean (optional)
                        • excludesPattern : String (optional)
                        • failIfNotNew : boolean (optional)
                        • skipNoTestFiles : boolean (optional)
                        • stopProcessingIfError : boolean (optional)
                      • Custom
                        • pattern : String
                        • customXSL : String
                        • deleteOutputFiles : boolean (optional)
                        • excludesPattern : String (optional)
                        • failIfNotNew : boolean (optional)
                        • skipNoTestFiles : boolean (optional)
                        • stopProcessingIfError : boolean (optional)
                      • embUnit
                        • pattern : String
                        • deleteOutputFiles : boolean (optional)
                        • excludesPattern : String (optional)
                        • failIfNotNew : boolean (optional)
                        • skipNoTestFiles : boolean (optional)
                        • stopProcessingIfError : boolean (optional)
                      • FPCUnit
                        • pattern : String
                        • deleteOutputFiles : boolean (optional)
                        • excludesPattern : String (optional)
                        • failIfNotNew : boolean (optional)
                        • skipNoTestFiles : boolean (optional)
                        • stopProcessingIfError : boolean (optional)
                      • gtester
                        • pattern : String
                        • deleteOutputFiles : boolean (optional)
                        • excludesPattern : String (optional)
                        • failIfNotNew : boolean (optional)
                        • skipNoTestFiles : boolean (optional)
                        • stopProcessingIfError : boolean (optional)
                      • $class: 'GallioPluginType'
                        • pattern : String
                        • faildedIfNotNew : boolean
                        • deleteOutputFiles : boolean
                        • stopProcessingIfError : boolean
                      • GoogleTest
                        • pattern : String
                        • deleteOutputFiles : boolean (optional)
                        • excludesPattern : String (optional)
                        • failIfNotNew : boolean (optional)
                        • skipNoTestFiles : boolean (optional)
                        • stopProcessingIfError : boolean (optional)
                      • $class: 'JSUnitPluginType'
                        • pattern : String
                        • faildedIfNotNew : boolean
                        • deleteOutputFiles : boolean
                        • stopProcessingIfError : boolean
                      • JUnit
                        • pattern : String
                        • deleteOutputFiles : boolean (optional)
                        • excludesPattern : String (optional)
                        • failIfNotNew : boolean (optional)
                        • skipNoTestFiles : boolean (optional)
                        • stopProcessingIfError : boolean (optional)
                      • MSTest
                        • pattern : String
                        • deleteOutputFiles : boolean (optional)
                        • excludesPattern : String (optional)
                        • failIfNotNew : boolean (optional)
                        • skipNoTestFiles : boolean (optional)
                        • stopProcessingIfError : boolean (optional)
                      • MbUnit
                        • pattern : String
                        • deleteOutputFiles : boolean (optional)
                        • excludesPattern : String (optional)
                        • failIfNotNew : boolean (optional)
                        • skipNoTestFiles : boolean (optional)
                        • stopProcessingIfError : boolean (optional)
                      • NUnit3
                        • pattern : String
                        • deleteOutputFiles : boolean (optional)
                        • excludesPattern : String (optional)
                        • failIfNotNew : boolean (optional)
                        • skipNoTestFiles : boolean (optional)
                        • stopProcessingIfError : boolean (optional)
                      • NUnit2
                        • pattern : String
                        • deleteOutputFiles : boolean (optional)
                        • excludesPattern : String (optional)
                        • failIfNotNew : boolean (optional)
                        • skipNoTestFiles : boolean (optional)
                        • stopProcessingIfError : boolean (optional)
                      • PHPUnit
                        • pattern : String
                        • deleteOutputFiles : boolean (optional)
                        • excludesPattern : String (optional)
                        • failIfNotNew : boolean (optional)
                        • skipNoTestFiles : boolean (optional)
                        • stopProcessingIfError : boolean (optional)
                      • $class: 'ParasoftSOAtest9xType'
                        • pattern : String
                        • skipNoTestFiles : boolean
                        • failIfNotNew : boolean
                        • deleteOutputFiles : boolean
                        • stopProcessingIfError : boolean
                      • $class: 'ParasoftType'
                        • pattern : String
                        • skipNoTestFiles : boolean
                        • failIfNotNew : boolean
                        • deleteOutputFiles : boolean
                        • stopProcessingIfError : boolean
                      • QtTest
                        • pattern : String
                        • deleteOutputFiles : boolean (optional)
                        • excludesPattern : String (optional)
                        • failIfNotNew : boolean (optional)
                        • skipNoTestFiles : boolean (optional)
                        • stopProcessingIfError : boolean (optional)
                      • UnitTest
                        • pattern : String
                        • deleteOutputFiles : boolean (optional)
                        • excludesPattern : String (optional)
                        • failIfNotNew : boolean (optional)
                        • skipNoTestFiles : boolean (optional)
                        • stopProcessingIfError : boolean (optional)
                      • Valgrind
                        • pattern : String
                        • deleteOutputFiles : boolean (optional)
                        • excludesPattern : String (optional)
                        • failIfNotNew : boolean (optional)
                        • skipNoTestFiles : boolean (optional)
                        • stopProcessingIfError : boolean (optional)
                      • xUnitDotNet
                        • pattern : String
                        • deleteOutputFiles : boolean (optional)
                        • excludesPattern : String (optional)
                        • failIfNotNew : boolean (optional)
                        • skipNoTestFiles : boolean (optional)
                        • stopProcessingIfError : boolean (optional)
                      • $class: 'hudson.plugins.testcomplete.TestCompleteTestType'
                        • pattern : String
                        • failedIfNotNew : boolean
                        • deleteOutputFiles : boolean
                        • stopProcessingIfError : boolean
                        • testFilterPattern : String
                      • $class: 'jenkins.plugins.xunit.tc11.TestCompleteTestType'
                        • pattern : String
                        • failedIfNotNew : boolean
                        • deleteOutputFiles : boolean
                        • stopProcessingIfError : boolean
                        • testFilterPattern : String
                    • checksName : String (optional)
                    • followSymlink : boolean (optional)
                    • reduceLog : boolean (optional)
                    • skipPublishingChecks : boolean (optional)
                    • sleepTime : long (optional)
                    • testDataPublishers (optional)
                        Array / List of Nested Choice of Objects
                      • attachments
                        • $class: 'AutomateTestDataPublisher'
                          • $class: 'ClaimTestDataPublisher'
                            • $class: 'JUnitFlakyTestDataPublisher'
                              • $class: 'JunitResultPublisher'
                                If checked, each JUnit test result XML file will be examined to see if it represents a SOASTA CloudTest composition. For applicable tests, a hyperlink to the SOASTA CloudTest dashboard will be inserted into the test report.
                                • urlOverride : String
                                  Specify the CloudTest URL to use when creating hyperlinks to CloudTest dashboards. Normally, this can be left blank, and the URL will be extracted from the test result file.
                              • $class: 'PerfSigTestDataPublisher'
                                • dynatraceProfile : String
                              • $class: 'SahaginTestDataPublishser'
                                • $class: 'SauceOnDemandReportPublisher'
                                  Show embedded Sauce OnDemand reports, including video and logs. Your test should use Selenium client factory (at least version 1.3 to match test cases to individual Sauce OnDemand jobs).
                                  • jobVisibility : String (optional)
                                    Set your test results visibility permissions. The Sauce Documentation has all the various levels described in detail.
                                • $class: 'StabilityTestDataPublisher'
                                  • $class: 'TestCafePublisher'
                                    • $class: 'TestReporter'
                                      • $class: 'YoutrackTestDataPublisher'
                                      • testTimeMargin : String (optional)
                                      • thresholdMode : int (optional)
                                      • thresholds (optional)
                                          Array / List of Nested Choice of Objects
                                        • failed
                                          • failureNewThreshold : String (optional)
                                          • failureThreshold : String (optional)
                                          • unstableNewThreshold : String (optional)
                                          • unstableThreshold : String (optional)
                                        • passed
                                          • failureNewThreshold : String (optional)
                                          • failureThreshold : String (optional)
                                          • unstableNewThreshold : String (optional)
                                          • unstableThreshold : String (optional)
                                        • skipped
                                          • failureNewThreshold : String (optional)
                                          • failureThreshold : String (optional)
                                          • unstableNewThreshold : String (optional)
                                          • unstableThreshold : String (optional)

                                      Was this page helpful?

                                      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.