You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What Operating System are you using (both controller, and any agents involved in the problem)?
Off the shelf linux containers under kubernetes, but not relevant to the bug.
Reproduction steps
Have a Jenkinsfile with a stage that fails by returning a non zero exit code, but with junit() enabled and configured to allow missing junit reports.
steps {
sh 'exit 1'
}
post {
always {
junit("**/report.xml.xml", allowEmptyResults: true)
}
}
Expected Results
In GH the PR check for the stage should match the results seen in Jenkins itself: fail.
Actual Results
The check in the PR view is showing success.
Anything else?
We will update our internal jenkins library to remove junit() calls when not needed and for the ones that need it we will remove allowEmptyResults: true as a workaround.
The text was updated successfully, but these errors were encountered:
Jenkins and plugins versions report
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
Off the shelf linux containers under kubernetes, but not relevant to the bug.
Reproduction steps
Have a Jenkinsfile with a stage that fails by returning a non zero exit code, but with junit() enabled and configured to allow missing junit reports.
Expected Results
In GH the PR check for the stage should match the results seen in Jenkins itself: fail.
Actual Results
The check in the PR view is showing success.
Anything else?
We will update our internal jenkins library to remove
junit()
calls when not needed and for the ones that need it we will removeallowEmptyResults: true
as a workaround.The text was updated successfully, but these errors were encountered: