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

archiveArtifacts step failure is not displayed

    Details

    • Similar Issues:
    • Sprint:
      Pipeline - December

      Description

      I'm experiencing an issue with Blue Ocean and Stage View where a failure in the archiveArtifacts step of a pipeline correctly changes the build result variable to FAILURE; however, this does not provide Blue Ocean or Stage View with any way of determining that it failed. As far as I'm aware, these UI plugins use thrown exceptions to locate failed steps in a pipeline? If so, the archiveArtifacts step (and possibly others) should also throw exceptions instead of just updating the build result.

      A pipeline script to reproduce the behaviour:

      stage("archive-test") {
          node {
              archiveArtifacts "DoesNotExist/*"
          }
      }

       

        Attachments

          Issue Links

            Activity

            Hide
            abayer Andrew Bayer added a comment -

            Even with a core change. Publishers like archiveArtifacts aren’t supposed to throw exceptions in a scenario like this, so there’s no way for it to signal failure.

            Show
            abayer Andrew Bayer added a comment - Even with a core change. Publishers like archiveArtifacts aren’t supposed to throw exceptions in a scenario like this, so there’s no way for it to signal failure.
            Hide
            jamesdumay James Dumay added a comment -

            Andrew Bayer but it signals some sort of failure right now, otherwise the archiveArtifacts step wouldn't be able to fail today?

            Not sure what the next step is here?

            Show
            jamesdumay James Dumay added a comment - Andrew Bayer but it signals some sort of failure right now, otherwise the archiveArtifacts step wouldn't be able to fail today? Not sure what the next step is here?
            Hide
            abayer Andrew Bayer added a comment -

            The publishers like archiveArtifacts signal failure by setting the build status. Perhaps Jesse Glick will have an idea of how we can deal with this, but at least so far, I think this can’t be fixed.

            Show
            abayer Andrew Bayer added a comment - The publishers like archiveArtifacts signal failure by setting the build status. Perhaps Jesse Glick will have an idea of how we can deal with this, but at least so far, I think this can’t be fixed.
            Hide
            jamesdumay James Dumay added a comment -

            Yikes thats a bit of a downer.

            Show
            jamesdumay James Dumay added a comment - Yikes thats a bit of a downer.
            Hide
            abayer Andrew Bayer added a comment -

            This is, at its core, the same as JENKINS-47412, so I'm going to use that for further discussion.

            Show
            abayer Andrew Bayer added a comment - This is, at its core, the same as JENKINS-47412 , so I'm going to use that for further discussion.

              People

              • Assignee:
                abayer Andrew Bayer
                Reporter:
                inkychris Chris Wright
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: