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

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

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.

       

            Unassigned Unassigned
            abeben Adam Beben
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: