groovy.lang.MissingPropertyException:无此类属性:类的节点:groovy.lang.Binding

时间:2018-09-05 14:19:32

标签: node.js jenkins jenkins-pipeline

我需要一些帮助,我在jenkins上启动了构建,并且出现以下错误:

从fbc5e195a176b64d916adf6430669734a80cb9bc获得的Jenkinsfile 以耐久性级别运行:MAX_SURVIVABILITY [管道]管道末端 groovy.lang.MissingPropertyException:没有此类属性:类的节点:groovy.lang.Binding     在groovy.lang.Binding.getVariable(Binding.java:63)     在org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:130)     在org.kohsuke.groovy.sandbox.impl.Checker $ 1.call(Checker.java:155)     在org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:159)     在com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17)     在WorkflowScript.run(WorkflowScript:1)     在 cps.transform (本机方法)     在com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:57)     在com.cloudbees.groovy.cps.impl.FunctionCallBlock $ ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:109)     在com.cloudbees.groovy.cps.impl.FunctionCallBlock $ ContinuationImpl.fixArg(FunctionCallBlock.java:82)     在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处     在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     在java.lang.reflect.Method.invoke(Method.java:498)     在com.cloudbees.groovy.cps.impl.ContinuationPtr $ ContinuationImpl.receive(ContinuationPtr.java:72)     在com.cloudbees.groovy.cps.impl.ClosureBlock.eval(ClosureBlock.java:46)     在com.cloudbees.groovy.cps.Next.step(Next.java:83)     在com.cloudbees.groovy.cps.Continuable $ 1.call(Continuable.java:174)     在com.cloudbees.groovy.cps.Continuable $ 1.call(Continuable.java:163)     在org.codehaus.groovy.runtime.GroovyCategorySupport $ ThreadCategoryInfo.use(GroovyCategorySupport.java:122)     在org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:261)     在com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163)     在org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access $ 101(SandboxContinuable.java:34)     在org.jenkinsci.plugins.workflow.cps.SandboxContinuable.lambda $ run0 $ 0(SandboxContinuable.java:59)     在org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108)     在org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:58)     在org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:174)     在org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:332)     在org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access $ 200(CpsThreadGroup.java:83)     在org.jenkinsci.plugins.workflow.cps.CpsThreadGroup $ 2.call(CpsThreadGroup.java:244)     在org.jenkinsci.plugins.workflow.cps.CpsThreadGroup $ 2.call(CpsThreadGroup.java:232)     在org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService $ 2.call(CpsVmExecutorService.java:64)     在java.util.concurrent.FutureTask.run(FutureTask.java:266)     在hudson.remoting.SingleLaneExecutorService $ 1.run(SingleLaneExecutorService.java:131)     在jenkins.util.ContextResettingExecutorService $ 1.run(ContextResettingExecutorService.java:28)     在jenkins.security.ImpersonatingExecutorService $ 1.run(ImpersonatingExecutorService.java:59)     在java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:511)     在java.util.concurrent.FutureTask.run(FutureTask.java:266)     在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)     在java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:624)     在java.lang.Thread.run(Thread.java:748) 完成:失败

我的Jenkinsfile包含以下代码:

节点{

stage('checkout'){
    echo "hello"
}

}

我正在使用多分支管道 我的詹金斯版本:2.136

1 个答案:

答案 0 :(得分:0)

检查您在Jenkins上安装的Script Security插件版本。 1.45版本(https://issues.jenkins-ci.org/browse/JENKINS-53420)出现问题。