-
Bug
-
Resolution: Unresolved
-
Major
-
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?
[JENKINS-43700] No way to configure System Groovy Script step to not use sandbox
Issue Type | Original: Improvement [ 4 ] | New: Bug [ 1 ] |
FYI this still appears to work if you configure an inline script and don't check the "use groovy sandbox" checkbox. This checkbox is not available when the groovy script is read from the workspace.