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

Visualization shows stage failed when an exception is caught

      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.
      

          [JENKINS-34212] Visualization shows stage failed when an exception is caught

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

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

              Created:
              Updated:
              Resolved: