[JIRA] (JENKINS-53420) groovy.lang.MissingPropertyException: No such property: node for class: groovy.lang.Binding

2,514 views
Skip to first unread message

halkeye@gmail.com (JIRA)

unread,
Sep 4, 2018, 7:46:03 PM9/4/18
to jenkinsc...@googlegroups.com
Gavin Mogan created an issue
 
Jenkins / Improvement JENKINS-53420
groovy.lang.MissingPropertyException: No such property: node for class: groovy.lang.Binding
Issue Type: Improvement Improvement
Assignee: Andrew Bayer
Components: script-security-plugin
Created: 2018-09-04 23:45
Environment:
Plugin Listace-editor 1.1 true
ansicolor 0.5.2 true
apache-httpcomponents-client-4-api 4.5.5-3.0 true
authentication-tokens 1.3 true
aws-credentials 1.23 true
aws-java-sdk 1.11.341 true
azure-app-service 0.3.1 true
azure-commons 0.2.6 true
azure-credentials 1.6.0 true
blueocean 1.8.2 true
blueocean-autofavorite 1.2.2 true
blueocean-bitbucket-pipeline 1.8.2 true
blueocean-commons 1.8.2 true
blueocean-config 1.8.2 true
blueocean-core-js 1.8.2 true
blueocean-dashboard 1.8.2 true
blueocean-display-url 2.2.0 true
blueocean-events 1.8.2 true
blueocean-git-pipeline 1.8.2 true
blueocean-github-pipeline 1.8.2 true
blueocean-i18n 1.8.2 true
blueocean-jira 1.8.2 true
blueocean-jwt 1.8.2 true
blueocean-personalization 1.8.2 true
blueocean-pipeline-api-impl 1.8.2 true
blueocean-pipeline-editor 1.8.2 true
blueocean-pipeline-scm-api 1.8.2 true
blueocean-rest 1.8.2 true
blueocean-rest-impl 1.8.2 true
blueocean-web 1.8.2 true
bouncycastle-api 2.17 true
branch-api 2.0.20 true
cloudbees-bitbucket-branch-source 2.2.12 true
cloudbees-folder 6.5.1 true
command-launcher 1.2 true
credentials 2.1.18 true
credentials-binding 1.16 true
display-url-api 2.2.0 true
docker-build-publish 1.3.2 true
docker-build-step 2.0 true
docker-commons 1.13 true
docker-java-api 3.0.14 true
docker-plugin 1.1.5 true
docker-workflow 1.17 true
durable-task 1.25 true
ec2 1.39 true
email-ext 2.63 true
favorite 2.3.2 true
git 3.9.1 true
git-client 2.7.3 true
git-server 1.7 true
github 1.29.2 true
github-api 1.92 true
github-autostatus 3.0.1 true
github-branch-source 2.3.6 true
github-oauth 0.29 true
github-pr-comment-build 2.0 true
github-pr-coverage-status 1.10.0 true
github-pullrequest 0.2.3 true
greenballs 1.15 true
handlebars 1.1.1 true
handy-uri-templates-2-api 2.1.6-1.0 true
html5-notifier-plugin 1.5 true
htmlpublisher 1.16 true
http_request 1.8.22 true
icon-shim 2.0.3 true
jackson2-api 2.8.11.3 true
javadoc 1.4 true
jdk-tool 1.1 true
jenkins-design-language 1.8.2 true
jira 3.0.1 true
jquery-detached 1.2.1 true
jsch 0.1.54.2 true
junit 1.24 true
mailer 1.21 true
matrix-auth 2.3 true
matrix-project 1.13 true
maven-plugin 3.1.2 true
mercurial 2.4 true
momentjs 1.1.1 true
node-iterator-api 1.5.0 true
nunit 0.23 true
pipeline-build-step 2.7 true
pipeline-graph-analysis 1.7 true
pipeline-input-step 2.8 true
pipeline-milestone-step 1.3.1 true
pipeline-model-api 1.3.2 true
pipeline-model-declarative-agent 1.1.1 true
pipeline-model-definition 1.3.2 true
pipeline-model-extensions 1.3.2 true
pipeline-rest-api 2.10 true
pipeline-stage-step 2.3 true
pipeline-stage-tags-metadata 1.3.2 true
pipeline-stage-view 2.10 true
plain-credentials 1.4 true
pubsub-light 1.12 true
run-condition 1.2 true
saml 1.0.7 true
sauce-ondemand 1.176 true
scm-api 2.2.7 true
script-security 1.45 true
slack 2.3 true
sse-gateway 1.15 true
ssh-credentials 1.14 true
ssh-slaves 1.28 true
structs 1.14 true
token-macro 2.5 true
variant 1.1 true
workflow-aggregator 2.5 true
workflow-api 2.29 true
workflow-basic-steps 2.10 true
workflow-cps 2.54 true
workflow-cps-global-lib 2.10 true
workflow-durable-task-step 2.21 true
workflow-job 2.24 true
workflow-multibranch 2.20 true
workflow-scm-step 2.6 true
workflow-step-api 2.16 true
workflow-support 2.20 true
Priority: Minor Minor
Reporter: Gavin Mogan

Rebuilt my jenkins server using the latest stable docker image. Tried to build a test pipeline job (the hello world one).

Freestyle worked
Pipeline didn't
Pipeline without sandbox security worked

So I think its the release of script-security that came out today.

Build Log:

Started by user unknown or anonymous
Running in Durability level: MAX_SURVIVABILITY[Pipeline] End of Pipelinegroovy.lang.MissingPropertyException: No such property: node for class: groovy.lang.Binding
at groovy.lang.Binding.getVariable(Binding.java:63)
at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:130)
at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:155)
at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:159)
at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17)
at WorkflowScript.run(WorkflowScript:1)
at __cps.transform__(Native Method)
at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:57)
at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:109)
at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:82)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
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.ClosureBlock.eval(ClosureBlock.java:46)
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:122)
at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:261)
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:108)
at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:58)
at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:174)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:332)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$200(CpsThreadGroup.java:83)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:244)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:232)
at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:64)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:131)
at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Finished: FAILURE

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

halkeye@gmail.com (JIRA)

unread,
Sep 4, 2018, 8:42:02 PM9/4/18
to jenkinsc...@googlegroups.com

andrew.bayer@gmail.com (JIRA)

unread,
Sep 4, 2018, 9:52:03 PM9/4/18
to jenkinsc...@googlegroups.com
Andrew Bayer updated an issue
 
Jenkins / Bug JENKINS-53420

Well, that’s not good at all. I’ll dig into this first thing tomorrow.

Change By: Andrew Bayer
Issue Type: Improvement Bug
Priority: Minor Critical

andrew.bayer@gmail.com (JIRA)

unread,
Sep 4, 2018, 9:56:02 PM9/4/18
to jenkinsc...@googlegroups.com

andrew.bayer@gmail.com (JIRA)

unread,
Sep 4, 2018, 9:58:02 PM9/4/18
to jenkinsc...@googlegroups.com

Ugggggh I see exactly what I did wrong, too. Sorry for the inconvenience.

halkeye@gmail.com (JIRA)

unread,
Sep 4, 2018, 10:00:02 PM9/4/18
to jenkinsc...@googlegroups.com

HA~ its so obvious after the fact eh.

 

Its pretty easy to roll back to a previous version, and hopefully if anyone else gets this bug they'll see this issue, so I think it can easily wait for abit.

thomas.becker00@gmail.com (JIRA)

unread,
Sep 5, 2018, 3:09:02 AM9/5/18
to jenkinsc...@googlegroups.com

Am facing the same error. We rolled back to 1.44 for now. I marked JENKINS-53424 as a duplicate. Thx for the work and fix in advance Andrew.

stephan.leicht@bsiag.com (JIRA)

unread,
Sep 5, 2018, 5:59:03 AM9/5/18
to jenkinsc...@googlegroups.com

Please push version 1.44 as new version or fix soon. Because if one installs a new jenkins instance downgrading plugin versions is not a easy step.

r.fuereder@xortex.com (JIRA)

unread,
Sep 5, 2018, 6:10:02 AM9/5/18
to jenkinsc...@googlegroups.com

andrew.bayer@gmail.com (JIRA)

unread,
Sep 5, 2018, 7:28:03 AM9/5/18
to jenkinsc...@googlegroups.com
Andrew Bayer started work on Bug JENKINS-53420
 
Change By: Andrew Bayer
Status: Open In Progress

andrew.bayer@gmail.com (JIRA)

unread,
Sep 5, 2018, 7:29:05 AM9/5/18
to jenkinsc...@googlegroups.com

andrew.bayer@gmail.com (JIRA)

unread,
Sep 5, 2018, 7:37:04 AM9/5/18
to jenkinsc...@googlegroups.com

andrew.bayer@gmail.com (JIRA)

unread,
Sep 5, 2018, 7:38:02 AM9/5/18
to jenkinsc...@googlegroups.com
 
Re: groovy.lang.MissingPropertyException: No such property: node for class: groovy.lang.Binding

PRs up with the fix in script-security and validation of the fix in workflow-cps.

andrew.bayer@gmail.com (JIRA)

unread,
Sep 5, 2018, 9:09:02 AM9/5/18
to jenkinsc...@googlegroups.com
 

Merged, releasing 1.46 as we speak. Again, I'm very sorry for introducing this!

Change By: Andrew Bayer
Status: In Review Resolved
Resolution: Fixed
Released As: script-security 1.46

andrew.bayer@gmail.com (JIRA)

unread,
Sep 5, 2018, 9:34:03 AM9/5/18
to jenkinsc...@googlegroups.com

jirka.meluzin@seznam.cz (JIRA)

unread,
Sep 5, 2018, 10:31:03 AM9/5/18
to jenkinsc...@googlegroups.com

chenfli@gmail.com (JIRA)

unread,
Sep 6, 2018, 5:15:05 AM9/6/18
to jenkinsc...@googlegroups.com

Still had some issues and had to revert to 1.44 version manually, I am using the Kubernetes-plugin 1.12.4 As part of groovy you can use the following script (define a jenkins-agent as a pod with dockers)

String label="worker-${UUID.randomUUID().toString()}"
podTemplate(label: label, containers: [
containerTemplate(name: 'jnlp', image: 'jenkinsci/jnlp-slave:3.16-1', args: '${computer.jnlpmac} ${computer.name}', workingDir: '/home/jenkins', resourceRequestCpu: '200m', resourceLimitCpu: '800m', resourceRequestMemory: '256Mi', resourceLimitMemory: '2048Mi'),
containerTemplate(name: 'helm', image: 'lachlanevenson/k8s-helm:v2.7.2', command: 'cat', ttyEnabled: true)
]) {

As a result when I am running I got the following excepiton
[Pipeline] End of Pipeline
groovy.lang.MissingPropertyException: No such property: containerTemplate for class: groovy.lang.Binding


at groovy.lang.Binding.getVariable(Binding.java:63)
at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:130)
at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:155)
at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:159)
at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17)

at WorkflowScript.run(WorkflowScript:3)


at __cps.transform__(Native Method)
at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:57)
at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:109)
at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:82)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
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.CollectionLiteralBlock$ContinuationImpl.dispatch(CollectionLiteralBlock.java:55)
at com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.item(CollectionLiteralBlock.java:45)
at sun.reflect.GeneratedMethodAccessor139.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)

Do you know when this will be fixed ?

andrew.bayer@gmail.com (JIRA)

unread,
Sep 13, 2018, 9:40:04 AM9/13/18
to jenkinsc...@googlegroups.com

andrew.bayer@gmail.com (JIRA)

unread,
Sep 13, 2018, 10:19:02 AM9/13/18
to jenkinsc...@googlegroups.com

Chen Fliesher - I reproduced that exact error with Script Security 1.45 installed, but could not reproduce it with Script Security 1.46. You should be fine with 1.46.

ovidiu.b13@gmail.com (JIRA)

unread,
Sep 25, 2019, 4:21:03 AM9/25/19
to jenkinsc...@googlegroups.com

Hello, I'm reproducing these simptoms with 1.62. Could this be the same issue?

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

ovidiu.b13@gmail.com (JIRA)

unread,
Sep 25, 2019, 4:43:03 AM9/25/19
to jenkinsc...@googlegroups.com

It's not the same issue. I was not declaring a scripted variable in a declarative stage, and using it in another script bloc in another declarative stage.

Declaring the variable at the beginning before opening the pipeline block, fixed the issue.

Reply all
Reply to author
Forward
0 new messages