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

Jenkinsfile Workflow script loading from external file doesn't populate pending script approvals

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Minor Minor
    • None
    • Workflow 1.12, Script Security 1.15, core 1.625.2

      Still digging into this, so expect more later, but in the following case, a method errored out due to needing script approval but did not show up in the pending script approvals:

      • Jenkinsfile driven build.
      • Loads from an external groovy file (after cloning from git, etc) to pull in some methods.
      • Invokes a method from that external groovy file that calls a not-yet-whitelisted method (in this case, `replaceAll(String, String)` but I don't think this is specific to that method).
      • The execution of that method fails, unsurprisingly, but the method never shows up in the script security plugin's pending approvals, so there's no way to actually approve it.

            jglick Jesse Glick
            abayer Andrew Bayer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: