-
Bug
-
Resolution: Fixed
-
Minor
script-security 1.18
org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use method java.lang.String substring int
eg: someString.substring( 10 );
workaround: someString.substring( 10, someString.length() );
which is slightly annoying and makes the Jenkinsfile more verbose than necessary.
Related to: https://issues.jenkins-ci.org/browse/JENKINS-29541
- relates to
-
JENKINS-42618 Cannot use String index or range in sandboxed scripts
- Resolved