Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-37663

Build is not marked as UNSTABLE even though failures are found

    Details

    • Similar Issues:

      Description

      I'm using JUnitResultsArchive to record test results, and I'm seeing a weird bug where there are failures reported but the build is not marked unstable.

      This is via Jenkins pipeline, and immediately after the step, I'm echoing the build result:

      step([$class: 'JUnitResultArchiver', testResults: 'build/xunit.xml'])
      echo ">>> BUILD RESULT ${currentBuild.result}"
      

      I can confirm that a test failed in that step, and the result printed is ">>> BUILD RESULT null"

      This doesn't always happen - in some other runs, the result is UNSTABLE as expected.

        Attachments

          Issue Links

            Activity

            joshma Joshua Ma created issue -
            girardc79 Chris Girard made changes -
            Field Original Value New Value
            Attachment screenshot-1.png [ 35847 ]
            abayer Andrew Bayer made changes -
            Assignee Andrew Bayer [ abayer ]
            abayer Andrew Bayer made changes -
            Component/s pipeline-model-definition-plugin [ 21706 ]
            abayer Andrew Bayer made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            abayer Andrew Bayer made changes -
            Remote Link This issue links to "Declarative PR #220 (Web Link)" [ 18116 ]
            abayer Andrew Bayer made changes -
            Remote Link This issue links to "JUnit PR #90 (Web Link)" [ 18117 ]
            abayer Andrew Bayer made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            abayer Andrew Bayer made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            bitwiseman Liam Newman made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

              People

              • Assignee:
                abayer Andrew Bayer
                Reporter:
                joshma Joshua Ma
              • Votes:
                7 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: