-
Bug
-
Resolution: Duplicate
-
Major
-
None
Using this in a workflow script
def fileText = readFile('dist/index.html')
fileText = (fileText =~ /baseUrl.('.')/).replaceFirst("baseUrl: 'XXXX'")
throws this:
org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use method java.util.regex.Matcher replaceFirst java.lang.String
- duplicates
-
JENKINS-25804 Whitelisted signature presets for Java standard APIs and Jenkins core APIs
-
- Resolved
-
[JENKINS-30520] Cannot use java.util.regex.Matcher class when workflow script is sandboxed
Link |
New:
This issue duplicates |
Resolution | New: Duplicate [ 3 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Workflow | Original: JNJira [ 165631 ] | New: JNJira + In-Review [ 197772 ] |