archiveArtifacts step failure is not displayed

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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/*"
          }
      }

       

        1. blue_ocean.jpg
          46 kB
          Chris Wright
        2. stage_view.jpg
          120 kB
          Chris Wright

            Assignee:
            Andrew Bayer
            Reporter:
            Chris Wright
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: