Currently the build step Publish JUnit test result report
changes build result to UNSTABLE.
Build step 'Publish JUnit test result report' changed build result to UNSTABLE
But I don't want it makes any change to my build status. I try to set
checked
)But the plugin still changes the build status. How can I disable updating build results by the plugin?
To 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.
The JUnit plugin provides a publisher that consumes XML test reports generated during the builds and provides some graphical visualization of the historical test results (see JUnit graph for a sample) as well as a web UI for viewing test reports, tracking failures, and so on.
This data is stored within JENKINS_HOME , and the current storage format requires huge overheads when retrieving statistics and, especially, trends. In order to display trends, each report has to be loaded and then processed in-memory.
You can add the parameter:
skipMarkingBuildUnstable:true
in your jenkins pipeline. For me it works fine after this:
junit testResults: 'target/surefire-reports/junitreports/TEST-RunCucumberTest.xml', skipPublishingChecks: true, skipMarkingBuildUnstable:true
This info is not actually visible in plugin website: https://plugins.jenkins.io/junit/
But this change is merged and available: https://github.com/jenkinsci/junit-plugin/pull/282
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With