-
Improvement
-
Resolution: Duplicate
-
Minor
-
None
I get the following error when trying to pipeline build:
org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods capitalize java.lang.String
It's triggered by the code in my pipeline definition:
def branchToBuild = "${env.JOB_NAME}".tokenize('-').last()
def dockerTaskBranch = branchToBuild.capitalize()
The capitalize method should be safe enough to call from the sandbox
- duplicates
-
JENKINS-25804 Whitelisted signature presets for Java standard APIs and Jenkins core APIs
-
- Resolved
-
[JENKINS-35253] Whitelist Groovy capitalize method from String for sandbox
Component/s | New: script-security-plugin [ 18520 ] | |
Component/s | Original: groovy-plugin [ 15549 ] |
Link |
New:
This issue duplicates |
Resolution | New: Duplicate [ 3 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Workflow | Original: JNJira [ 171492 ] | New: JNJira + In-Review [ 199117 ] |