-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Component/s: xunit-plugin
-
Labels:None
-
Similar Issues:
Same issue as described in https://issues.jenkins-ci.org/browse/JENKINS-47142, except, for xunit step, not archiveArtifacts step.
The issue looks to be that the exception is swallowed here - https://github.com/jenkinsci/xunit-plugin/blob/master/src/main/java/org/jenkinsci/plugins/xunit/XUnitPublisher.java#L164 meaning that it's not able to be handled upstream.
The result is that the stage shows as successful, but the build fails.
A simple test case that reproduces the issue:
node { stage('stage 1') { git 'https://github.com/dantheman213/java-hello-world-maven.git' sh 'mvn clean package' xunit testTimeMargin: '3000', thresholdMode: 1, thresholds: [failed(), passed(), skipped()], tools: [JUnit(deleteOutputFiles: true, failIfNotNew: true, pattern: 'target/failsafe-reports/*.xml', skipNoTestFiles: false, stopProcessingIfError: true)] } stage('stage 2') { echo 'hello from stage 2' } }
- duplicates
-
JENKINS-52814 Build status set to failed but not failed immediately
-
- Closed
-
Field | Original Value | New Value |
---|---|---|
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | In Review [ 10005 ] |
Description |
Same issue as described in https://issues.jenkins-ci.org/browse/JENKINS-47142, except, for xunit step, not archiveArtifacts step.
The issue looks to be that the exception is swallowed here - [https://github.com/jenkinsci/xunit-plugin/blob/master/src/main/java/org/jenkinsci/plugins/xunit/XUnitPublisher.java#L164] meaning that it's not able to be handled upstream. Not confirmed. The result is that the stage shows as successful, but the build fails. A simple test case that reproduces the issue: {code} node { stage('stage 1') { git 'https://github.com/dantheman213/java-hello-world-maven.git' sh 'mvn clean package' xunit testTimeMargin: '3000', thresholdMode: 1, thresholds: [failed(), passed(), skipped()], tools: [JUnit(deleteOutputFiles: true, failIfNotNew: true, pattern: 'target/failsafe-reports/*.xml', skipNoTestFiles: false, stopProcessingIfError: true)] } stage('stage 2') { echo 'hello from stage 2' } } {code} |
Same issue as described in https://issues.jenkins-ci.org/browse/JENKINS-47142, except, for xunit step, not archiveArtifacts step.
The issue looks to be that the exception is swallowed here - [https://github.com/jenkinsci/xunit-plugin/blob/master/src/main/java/org/jenkinsci/plugins/xunit/XUnitPublisher.java#L164] meaning that it's not able to be handled upstream. The result is that the stage shows as successful, but the build fails. A simple test case that reproduces the issue: {code} node { stage('stage 1') { git 'https://github.com/dantheman213/java-hello-world-maven.git' sh 'mvn clean package' xunit testTimeMargin: '3000', thresholdMode: 1, thresholds: [failed(), passed(), skipped()], tools: [JUnit(deleteOutputFiles: true, failIfNotNew: true, pattern: 'target/failsafe-reports/*.xml', skipNoTestFiles: false, stopProcessingIfError: true)] } stage('stage 2') { echo 'hello from stage 2' } } {code} |
Status | In Review [ 10005 ] | Closed [ 6 ] |
Resolution | Not A Defect [ 7 ] |
Link |
This issue duplicates |
Resolution | Not A Defect [ 7 ] | |
Status | Closed [ 6 ] | Reopened [ 4 ] |
Status | Reopened [ 4 ] | Fixed but Unreleased [ 10203 ] |
Resolution | Fixed [ 1 ] |
Status | Fixed but Unreleased [ 10203 ] | Resolved [ 5 ] |