Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-32661

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

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

            abayer Andrew Bayer
            mscharp Michael Scharp
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: