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

env does not work in sandbox

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: pipeline
    • Labels:
      None
    • Similar Issues:

      Description

      groovy.lang.MissingPropertyException: No such property: env for class: groovy.lang.Binding
      	at groovy.lang.Binding.getVariable(Binding.java:62)
      	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:136)
      	at org.kohsuke.groovy.sandbox.impl.Checker$4.call(Checker.java:153)
      	at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:150)
      	at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.getProperty(SandboxInvoker.java:23)
      	at com.cloudbees.groovy.cps.impl.PropertyAccessBlock.rawGet(PropertyAccessBlock.java:17)
      	at WorkflowScript.run(WorkflowScript:4)
      

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Jesse Glick
          Path:
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/WorkflowTest.java
          cps/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsWhitelist.java
          http://jenkins-ci.org/commit/workflow-cps-plugin/c327ece69190efa61d21cd4f7c7132c3b1029699
          Log:
          [FIXED JENKINS-25914] Allow the env pseudo-property to be accessed even when using sandboxed scripts.

          Originally-Committed-As: 0ee3e93e78013326cb49f800055c21f6044e6ce1

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: aggregator/src/test/java/org/jenkinsci/plugins/workflow/WorkflowTest.java cps/src/main/java/org/jenkinsci/plugins/workflow/cps/CpsWhitelist.java http://jenkins-ci.org/commit/workflow-cps-plugin/c327ece69190efa61d21cd4f7c7132c3b1029699 Log: [FIXED JENKINS-25914] Allow the env pseudo-property to be accessed even when using sandboxed scripts. Originally-Committed-As: 0ee3e93e78013326cb49f800055c21f6044e6ce1

            People

            • Assignee:
              jglick Jesse Glick
              Reporter:
              jglick Jesse Glick
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: