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

last step in finally block incorrectly reported as failed

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: pipeline
    • Labels:
      None
    • Environment:
      jenkins 2.60.3
      workflow-aggregator 2.5
    • Similar Issues:

      Description

      Pipeline will incorrectly report that the last step in a finally block has failed if an exception is thrown in the try block. This may cause a developer unnessicary debugging time trying to identify why a step is failing. Eg.

      try {
          error "oops"
      } finally {
          echo "bar"
      }
      

      Results in the echo step being reported as failed.

        Attachments

          Issue Links

            Activity

            There are no comments yet on this issue.

              People

              • Assignee:
                Unassigned
                Reporter:
                jhoblitt Joshua Hoblitt
              • Votes:
                2 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: