Groovy leftShift operator "<<" is not allowed for script approval, it is denied immediately only in JenkinsFile SandBox. The code:

      'AB' << 'CDE'
      

      Causes:

      Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods leftShift java.lang.String java.lang.Object
      

      In the job script editor works normally (appears for approval).

          [JENKINS-33049] Groovy left-shift operator not whitelisted

          Flávio Augusto Valones created issue -
          Flávio Augusto Valones made changes -
          Link New: This issue is related to JENKINS-33024 [ JENKINS-33024 ]
          Flávio Augusto Valones made changes -
          Link New: This issue is related to JENKINS-33024 [ JENKINS-33024 ]
          Flávio Augusto Valones made changes -
          Link Original: This issue is related to JENKINS-33024 [ JENKINS-33024 ]
          Flávio Augusto Valones made changes -
          Description Original: Groovy leftShift operator "<<" is not allowed for script approval, it is denied immediately in JenkinsFile SandBox:

          {noformat}
          Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods leftShift java.lang.String java.lang.Object
          {noformat}
          New: Groovy leftShift operator "<<" is not allowed for script approval, it is denied immediately in JenkinsFile SandBox. The code:

          {code:java}
          'AB' << 'CDE'
          {code}

          Causes:

          {noformat}
          Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods leftShift java.lang.String java.lang.Object
          {noformat}
          Flávio Augusto Valones made changes -
          Description Original: Groovy leftShift operator "<<" is not allowed for script approval, it is denied immediately in JenkinsFile SandBox. The code:

          {code:java}
          'AB' << 'CDE'
          {code}

          Causes:

          {noformat}
          Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods leftShift java.lang.String java.lang.Object
          {noformat}
          New: Groovy leftShift operator "<<" is not allowed for script approval, it is denied immediately only in JenkinsFile SandBox. The code:

          {code:java}
          'AB' << 'CDE'
          {code}

          Causes:

          {noformat}
          Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods leftShift java.lang.String java.lang.Object
          {noformat}

          In the job script editor works normally (appears for approval).
          Flávio Augusto Valones made changes -
          Priority Original: Minor [ 4 ] New: Major [ 3 ]
          Flávio Augusto Valones made changes -
          Link New: This issue is related to JENKINS-33051 [ JENKINS-33051 ]
          Jesse Glick made changes -
          Labels Original: multibranch workflow New: workflow
          Priority Original: Major [ 3 ] New: Minor [ 4 ]
          Summary Original: Groovy leftShift operator are Not Permitted in JenkinsFile SandBox New: Groovy left-shift operator not whitelisted
          Andrew Bayer made changes -
          Assignee Original: Jesse Glick [ jglick ] New: Andrew Bayer [ abayer ]

            abayer Andrew Bayer
            valones Flávio Augusto Valones
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: