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

Visualization shows stage failed when an exception is caught

    Details

    • Similar Issues:

      Description

      I have a stage with a try/catch block. It attempts to copy an artifact from a previous build. If it can't, the step throws an exception which is caught and handled. In the catch block it copies it from a different location (successfully) and my pipeline continues. However, in visualization, the stage is marked as failed. I would expect that regardless of exceptions thrown, if the stage completes successfully it should be green in visualization.

      This is the error that is thrown/caught:

      hudson.AbortException: Unable to find project for artifact copy: null
      This may be due to incorrect project name or permission settings; see help for project name in job configuration.
      

        Attachments

          Issue Links

            Activity

            mscharp Michael Scharp created issue -
            svanoort Sam Van Oort made changes -
            Field Original Value New Value
            Component/s pipeline-stage-view-plugin [ 21139 ]
            Component/s pipeline-view-plugin [ 21435 ]
            svanoort Sam Van Oort made changes -
            Assignee Sergei Egorov [ bsideup ] Sam Van Oort [ svanoort ]
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-26522 [ JENKINS-26522 ]
            svanoort Sam Van Oort made changes -
            Epic Link JENKINS-35400 [ 171193 ]
            svanoort Sam Van Oort made changes -
            Component/s workflow-plugin [ 18820 ]
            svanoort Sam Van Oort made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            svanoort Sam Van Oort made changes -
            Link This issue is duplicated by JENKINS-36415 [ JENKINS-36415 ]
            svanoort Sam Van Oort made changes -
            Status In Progress [ 3 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            svanoort Sam Van Oort made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 170270 ] JNJira + In-Review [ 209941 ]
            abayer Andrew Bayer made changes -
            Component/s pipeline-general [ 21692 ]
            abayer Andrew Bayer made changes -
            Component/s workflow-plugin [ 18820 ]

              People

              • Assignee:
                svanoort Sam Van Oort
                Reporter:
                mscharp Michael Scharp
              • Votes:
                5 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: