Missing Pipeline DSL step exception is not caught by try-catch

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

XMLWordPrintable

      For example:

       

      node {
        try {
          nonExistingStep()
        } catch (e) {
          echo "exception caught !!!"
        }
      }
      

      catch block is not executed.

      Exception "java.lang.NoSuchMethodError: No such DSL method 'nonExistingStep'" is thrown anyway and build is failed.

       

            Assignee:
            Unassigned
            Reporter:
            Adam Beben
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: