workflow scripts can't use String.substring(int)

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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

            Assignee:
            Andrew Bayer
            Reporter:
            Michael Scharp
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: