Skip to content

Instantly share code, notes, and snippets.

@bitwiseman
Created October 15, 2019 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bitwiseman/61e82ab3aab3c0caa91f35ed6800d67c to your computer and use it in GitHub Desktop.
Save bitwiseman/61e82ab3aab3c0caa91f35ed6800d67c to your computer and use it in GitHub Desktop.
24.800 [test0 #1] org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use method groovy.lang.GroovyObject getProperty java.lang.String (__DeclarativePipelineRuntime_Root_2__.env)
24.800 [test0 #1] at org.jenkinsci.plugins.scriptsecurity.sandbox.whitelists.StaticWhitelist.rejectMethod(StaticWhitelist.java:267)
24.800 [test0 #1] at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor$11.reject(SandboxInterceptor.java:358)
24.801 [test0 #1] at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:409)
24.801 [test0 #1] at org.kohsuke.groovy.sandbox.impl.Checker$6.call(Checker.java:289)
24.801 [test0 #1] at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:293)
24.801 [test0 #1] at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.getProperty(SandboxInvoker.java:29)
24.801 [test0 #1] at com.cloudbees.groovy.cps.impl.PropertyAccessBlock.rawGet(PropertyAccessBlock.java:20)
24.801 [test0 #1] at __DeclarativePipelineRuntime_Root_2__.getRoot_0_(WorkflowScript:28)
24.801 [test0 #1] at __DeclarativePipelineRuntime_Root_2__.getRoot_0(WorkflowScript)
24.801 [test0 #1] at WorkflowScript.run(WorkflowScript)
24.801 [test0 #1] at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.call(ModelInterpreter.groovy:62)
24.801 [test0 #1] at WorkflowScript.run(WorkflowScript:25)
24.802 [test0 #1] at ___cps.transform___(Native Method)
24.802 [test0 #1] at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.get(PropertyishBlock.java:74)
24.802 [test0 #1] at com.cloudbees.groovy.cps.LValueBlock$GetAdapter.receive(LValueBlock.java:30)
24.802 [test0 #1] at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.fixName(PropertyishBlock.java:66)
24.802 [test0 #1] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
24.802 [test0 #1] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
24.802 [test0 #1] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
24.802 [test0 #1] at java.base/java.lang.reflect.Method.invoke(Method.java:566)
24.802 [test0 #1] at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
24.802 [test0 #1] at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
24.803 [test0 #1] at com.cloudbees.groovy.cps.Next.step(Next.java:83)
24.803 [test0 #1] at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174)
24.803 [test0 #1] at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163)
24.803 [test0 #1] at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:129)
24.803 [test0 #1] at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:268)
24.803 [test0 #1] at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163)
24.803 [test0 #1] at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment