[JIRA] (JENKINS-61901) Cannot use property value from Folder properties in Jenkinsfile pipeline script
Title: Message Title Murugesh Subramaniam updated an issue Jenkins / JENKINS-61901 Cannot use property value from Folder properties in Jenkinsfile pipeline script Change By: Murugesh Subramaniam Steps to reproduce:1. Create a multibranch pipeline inside a folder 2. Configure Folder properties with Name: "testURL" & Value"http://10.**.**.**:"In Jenkinsfile Script content:{code:java}withFolderProperties{ echo "URL STEP 1: ${env.testURL}" }{code}The following exception is thrown:{noformat}No such field found: field java.lang.String testURL. Administrators can decide whether to approve or reject this signature.[Pipeline] End of Pipelineorg.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: No such field found: field java.lang.String tesURL at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.unclassifiedField(SandboxInterceptor.java:425) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:409) at org.kohsuke.groovy.sandbox.impl.Checker$7.call(Checker.java:353) at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:357) at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.getProperty(SandboxInvoker.java:29) at com.cloudbees.groovy.cps.impl.PropertyAccessBlock.rawGet(PropertyAccessBlock.java:20) at WorkflowScript.run(WorkflowScript:94) at ___cps.transform___(Native Method) at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.get(PropertyishBlock.java:74) at com.cloudbees.groovy.cps.LValueBlock$GetAdapter.receive(LValueBlock.java:30) at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.fixName(PropertyishBlock.java:66) at sun.reflect.GeneratedMethodAccessor461.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72) at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21) at com.cloudbees.groovy.cps.Next.step(Next.java:83) at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174) at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163) at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:129) at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:268) at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$101(SandboxContinuable.java:34) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.lambda$run0$0(SandboxContinuable.java:59) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:237) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:58) at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:174) at
[JIRA] (JENKINS-61901) Cannot use property value from Folder properties in Jenkinsfile pipeline script
Title: Message Title Murugesh Subramaniam updated an issue Jenkins / JENKINS-61901 Cannot use property value from Folder properties in Jenkinsfile pipeline script Change By: Murugesh Subramaniam Steps to reproduce:1. Create a multibranch pipeline inside a folder 2. Configure Folder properties with Name: "testURL" Value"http://10.**.**.**:"In Jenkinsfile Script content:{code:java}withFolderProperties{ echo "URL STEP 1: ${env.testURL}" }{code}The following exception is thrown:{noformat}No such field found: field java.lang.String mapiURL testURL . Administrators can decide whether to approve or reject this signature.[Pipeline] End of Pipelineorg.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: No such field found: field java.lang.String mapiURL tesURL at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.unclassifiedField(SandboxInterceptor.java:425) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:409) at org.kohsuke.groovy.sandbox.impl.Checker$7.call(Checker.java:353) at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:357) at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.getProperty(SandboxInvoker.java:29) at com.cloudbees.groovy.cps.impl.PropertyAccessBlock.rawGet(PropertyAccessBlock.java:20) at WorkflowScript.run(WorkflowScript:94) at ___cps.transform___(Native Method) at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.get(PropertyishBlock.java:74) at com.cloudbees.groovy.cps.LValueBlock$GetAdapter.receive(LValueBlock.java:30) at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.fixName(PropertyishBlock.java:66) at sun.reflect.GeneratedMethodAccessor461.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72) at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21) at com.cloudbees.groovy.cps.Next.step(Next.java:83) at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174) at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163) at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:129) at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:268) at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$101(SandboxContinuable.java:34) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.lambda$run0$0(SandboxContinuable.java:59) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:237) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:58) at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:174) at
[JIRA] (JENKINS-61901) Cannot use property value from Folder properties in Jenkinsfile pipeline script
Title: Message Title Murugesh Subramaniam updated an issue Jenkins / JENKINS-61901 Cannot use property value from Folder properties in Jenkinsfile pipeline script Change By: Murugesh Subramaniam Steps to reproduce:1. Create a multibranch pipeline inside a folder 2. Configure Folder properties with Name: "testURL" Value"http://10.**.**.**:" In Jenkinsfile Script content:{code:java} def someArrayList = []println someArrayList withFolderProperties{ echo "URL STEP 1: ${env . name testURL}" } {code} This works with Sandbox disabled. When enabled, the The following exception is thrown:{noformat} ERROR No such field found : Build step failed with exception field java.lang.String mapiURL. Administrators can decide whether to approve or reject this signature. [Pipeline] End of Pipeline org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: No such field found: field java. util lang . ArrayList name String mapiURL at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.unclassifiedField(SandboxInterceptor.java: 397 425 ) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java: 381 409 ) at org.kohsuke.groovy.sandbox.impl.Checker$ 6 7 .call(Checker.java: 288 353 ) at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java: 292 357 ) at org com . kohsuke cloudbees .groovy. cps. sandbox. SandboxInvoker.getProperty(SandboxInvoker.java:29) at com.cloudbees.groovy.cps. impl. Checker PropertyAccessBlock.rawGet(PropertyAccessBlock.java:20) at WorkflowScript.run(WorkflowScript:94) at ___cps.transform___(Native Method) at com.cloudbees.groovy.cps.impl.PropertyishBlock $ checkedGetProperty ContinuationImpl . callStatic get ( PropertyishBlock.java:74) at com.cloudbees.groovy.cps.LValueBlock$GetAdapter.receive(LValueBlock.java:30) at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.fixName(PropertyishBlock.java:66) at sun.reflect.GeneratedMethodAccessor461.invoke( Unknown Source) at org sun . codehaus reflect . DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.cloudbees. groovy. runtime cps . callsite impl . CallSiteArray ContinuationPtr$ContinuationImpl . defaultCallStatic receive ( CallSiteArray ContinuationPtr .java: 56 72 ) at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21) at com.cloudbees.groovy.cps.Next.step(Next.java:83) at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174) at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163) at org.codehaus.groovy.runtime. callsite GroovyCategorySupport$ThreadCategoryInfo . AbstractCallSite.callStatic use ( AbstractCallSite GroovyCategorySupport .java: 194 129 ) at org.codehaus.groovy.runtime. callsite GroovyCategorySupport . AbstractCallSite use(GroovyCategorySupport . callStatic java:268) at com.cloudbees.groovy.cps.Continuable.run0 ( AbstractCallSite Continuable .java: 230 163 ) at Script1 org .
[JIRA] (JENKINS-61901) Cannot use property value from Folder properties in Jenkinsfile pipeline script
Title: Message Title Murugesh Subramaniam updated an issue Jenkins / JENKINS-61901 Cannot use property value from Folder properties in Jenkinsfile pipeline script Change By: Murugesh Subramaniam Summary: Cannot use property value from Folder properties in Jenkinfile Jenkinsfile pipeline script Add Comment This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-issues/JIRA.205773.1586889897000.11140.1586890266322%40Atlassian.JIRA.