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

No way to configure System Groovy Script step to not use sandbox

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • groovy-plugin
    • None
    • Groovy plugin 2.0, Jenkins 2.42.1

      Prior to the 2.0 upgrade, we had a set of system groovy script steps in jobs to do maintenance on the server (walk machines and clean tmp folders, etc.)

      After 2.0, because everything is run under the sandbox, to run these scenarios, I need to whitelist a bunch of methods.  However, a lot of these methods aren't ones I would like to whitelist (hudson.getInstance, etc.) because then other cases like job DSL could use them maliciously.

      Is there a way I can set up the system groovy step to not do method checks for specific jobs?

            vjuranek vjuranek
            mmitche Matthew Mitchell
            Votes:
            8 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated: