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

last step in finally block incorrectly reported as failed

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Jenkins 2.332.3

      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.

          [JENKINS-46551] last step in finally block incorrectly reported as failed

          Joshua Hoblitt created issue -
          Sverre Moe made changes -
          Link New: This issue relates to JENKINS-50923 [ JENKINS-50923 ]
          Victor Balakine made changes -
          Environment Original: jenkins 2.60.3
          workflow-aggregator 2.5
          New: Jenkins 2.332.3
          Victor Balakine made changes -
          Component/s New: workflow-cps-plugin [ 21713 ]

            Unassigned Unassigned
            jhoblitt Joshua Hoblitt
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: