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

catchError disables Script Approval

    Details

    • Similar Issues:

      Description

      While it works as intended (try-catch doesn't propagate `RejectedAccessException` for security plugin to be approved later) it's very confusing for beginner to understand why there is no new script candidate for approving at `In-process Script Approval` section.

      There are two ways to make it better

      • add documentation note for catchError;
      • optionally re-throw `RejectedAccessException`

        Attachments

          Issue Links

            Activity

            Hide
            abayer Andrew Bayer added a comment -

            PR up at https://github.com/jenkinsci/workflow-basic-steps-plugin/pull/51 that registers the RejectedAccessException in catchError.

            Show
            abayer Andrew Bayer added a comment - PR up at https://github.com/jenkinsci/workflow-basic-steps-plugin/pull/51 that registers the RejectedAccessException in catchError .
            Hide
            jglick Jesse Glick added a comment -

            A case of the more generalĀ JENKINS-34973.

            Show
            jglick Jesse Glick added a comment - A case of the more generalĀ  JENKINS-34973 .

              People

              • Assignee:
                abayer Andrew Bayer
                Reporter:
                almozavr Aleksey Malevaniy
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: