env does not work in sandbox

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

XMLWordPrintable

      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)
      

            Assignee:
            Jesse Glick
            Reporter:
            Jesse Glick
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: