Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-42830

No such property: ci for class: groovy.lang.Binding when updating Multibranch plugins

      After updating "Pipeline: Multibranch" (1.11.1 -> 2.0.8) and "Branch API Plugin" (2.9.2 -> 2.14), I get the following error:

      Seen 45 remote branches
      Obtained Jenkinsfile from 3d130723653bda531006ae85801a10eed5fc6249
      [Pipeline] End of Pipeline
      groovy.lang.MissingPropertyException: No such property: ci for class: groovy.lang.Binding
           at groovy.lang.Binding.getVariable(Binding.java:63)
           at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:224)
           at org.kohsuke.groovy.sandbox.impl.Checker$4.call(Checker.java:241)
           at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:238)
           at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.getProperty(SandboxInvoker.java:28)
           at com.cloudbees.groovy.cps.impl.PropertyAccessBlock.rawGet(PropertyAccessBlock.java:20)
           at WorkflowScript.run(WorkflowScript:1)
           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.GeneratedMethodAccessor313.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:74)
           at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:154)
           at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
           at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:33)
           at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:30)
           at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108)
           at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:30)
           at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:165)
           at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:328)
           at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$100(CpsThreadGroup.java:80)
           at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:240)
           at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:228)
           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:112)
           at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
           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:1142)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
           at java.lang.Thread.run(Thread.java:745)
       Finished: FAILURE

      UPDATE: As suggested by tsbnunes, this is due to the Jenkinsfile being a symlink. A workaround is to simply not use a symlink there.

          [JENKINS-42830] No such property: ci for class: groovy.lang.Binding when updating Multibranch plugins

          Jonas created issue -
          Jonas made changes -
          Description Original: After updating "Pipeline: Multibranch" (1.11.1 -> 2.0.8) and "Branch API Plugin" (2.9.2 -> 2.14), I get the following error:

          Seen 45 remote branches
          Obtained Jenkinsfile from 3d130723653bda531006ae85801a10eed5fc6249\{color:#9a9999}[Pipeline] End of Pipeline\{color}groovy.lang.MissingPropertyException: No such property: ci for class: groovy.lang.Binding
              at groovy.lang.Binding.getVariable(Binding.java:63)
              at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:224)
              at org.kohsuke.groovy.sandbox.impl.Checker$4.call(Checker.java:241)
              at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:238)
              at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.getProperty(SandboxInvoker.java:28)
              at com.cloudbees.groovy.cps.impl.PropertyAccessBlock.rawGet(PropertyAccessBlock.java:20)
              at WorkflowScript.run(WorkflowScript:1)
              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.GeneratedMethodAccessor313.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:74)
              at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:154)
              at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
              at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:33)
              at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:30)
              at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108)
              at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:30)
              at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:165)
              at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:328)
              at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$100(CpsThreadGroup.java:80)
              at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:240)
              at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:228)
              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:112)
              at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
              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:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:745)
          Finished: FAILURE
          New: After updating "Pipeline: Multibranch" (1.11.1 -> 2.0.8) and "Branch API Plugin" (2.9.2 -> 2.14), I get the following error:
          {quote}Seen 45 remote branches
           Obtained Jenkinsfile from 3d130723653bda531006ae85801a10eed5fc6249\{color:#9a9999}[Pipeline] End of Pipeline\{color}groovy.lang.MissingPropertyException: No such property: ci for class: groovy.lang.Binding
               at groovy.lang.Binding.getVariable(Binding.java:63)
               at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:224)
               at org.kohsuke.groovy.sandbox.impl.Checker$4.call(Checker.java:241)
               at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:238)
               at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.getProperty(SandboxInvoker.java:28)
               at com.cloudbees.groovy.cps.impl.PropertyAccessBlock.rawGet(PropertyAccessBlock.java:20)
               at WorkflowScript.run(WorkflowScript:1)
               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.GeneratedMethodAccessor313.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:74)
               at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:154)
               at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
               at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:33)
               at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:30)
               at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108)
               at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:30)
               at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:165)
               at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:328)
               at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$100(CpsThreadGroup.java:80)
               at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:240)
               at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:228)
               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:112)
               at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
               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:1142)
               at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
               at java.lang.Thread.run(Thread.java:745)
           Finished: FAILURE
          {quote}
          Jesse Glick made changes -
          Description Original: After updating "Pipeline: Multibranch" (1.11.1 -> 2.0.8) and "Branch API Plugin" (2.9.2 -> 2.14), I get the following error:
          {quote}Seen 45 remote branches
           Obtained Jenkinsfile from 3d130723653bda531006ae85801a10eed5fc6249\{color:#9a9999}[Pipeline] End of Pipeline\{color}groovy.lang.MissingPropertyException: No such property: ci for class: groovy.lang.Binding
               at groovy.lang.Binding.getVariable(Binding.java:63)
               at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:224)
               at org.kohsuke.groovy.sandbox.impl.Checker$4.call(Checker.java:241)
               at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:238)
               at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.getProperty(SandboxInvoker.java:28)
               at com.cloudbees.groovy.cps.impl.PropertyAccessBlock.rawGet(PropertyAccessBlock.java:20)
               at WorkflowScript.run(WorkflowScript:1)
               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.GeneratedMethodAccessor313.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:74)
               at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:154)
               at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
               at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:33)
               at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:30)
               at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108)
               at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:30)
               at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:165)
               at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:328)
               at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$100(CpsThreadGroup.java:80)
               at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:240)
               at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:228)
               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:112)
               at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
               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:1142)
               at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
               at java.lang.Thread.run(Thread.java:745)
           Finished: FAILURE
          {quote}
          New: After updating "Pipeline: Multibranch" (1.11.1 -> 2.0.8) and "Branch API Plugin" (2.9.2 -> 2.14), I get the following error:

          {code:none}
          Seen 45 remote branches
          Obtained Jenkinsfile from 3d130723653bda531006ae85801a10eed5fc6249
          [Pipeline] End of Pipeline
          groovy.lang.MissingPropertyException: No such property: ci for class: groovy.lang.Binding
               at groovy.lang.Binding.getVariable(Binding.java:63)
               at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:224)
               at org.kohsuke.groovy.sandbox.impl.Checker$4.call(Checker.java:241)
               at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:238)
               at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.getProperty(SandboxInvoker.java:28)
               at com.cloudbees.groovy.cps.impl.PropertyAccessBlock.rawGet(PropertyAccessBlock.java:20)
               at WorkflowScript.run(WorkflowScript:1)
               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.GeneratedMethodAccessor313.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:74)
               at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:154)
               at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
               at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:33)
               at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:30)
               at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108)
               at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:30)
               at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:165)
               at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:328)
               at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$100(CpsThreadGroup.java:80)
               at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:240)
               at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:228)
               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:112)
               at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
               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:1142)
               at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
               at java.lang.Thread.run(Thread.java:745)
           Finished: FAILURE
          {code}

          Jesse Glick added a comment -

          Presumably your Jenkinsfile was trying to use some variable named ci, which was not defined. Without steps to reproduce the problem from scratch it is impossible to help you.

          Jesse Glick added a comment - Presumably your Jenkinsfile was trying to use some variable named ci , which was not defined. Without steps to reproduce the problem from scratch it is impossible to help you.

          Please reopen when you have steps to reproduce

          Stephen Connolly added a comment - Please reopen when you have steps to reproduce
          Stephen Connolly made changes -
          Resolution New: Incomplete [ 4 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Stephen Connolly made changes -
          Component/s Original: branch-api-plugin [ 18621 ]
          Stephen Connolly made changes -
          Assignee Original: Stephen Connolly [ stephenconnolly ] New: Jesse Glick [ jglick ]

          Jonas added a comment -

          I just double-checked, and I don't have any "ci" variable. I call `load "ci/path/to/script"` sometimes, though.

          Moreover, I get this error when I update the two plugins, and Jenkins works again when I rollback to my previous versions.

          In other words, my `Jenkinsfile` works for normal pipelines and for one multibranch pipeline, and only stops working when I update the multibranch plugins, which is why I thought it might be related to them.

          I'll try to find a minimal `Jenkinsfile` to reproduce the issue.

          Jonas added a comment - I just double-checked, and I don't have any "ci" variable. I call `load "ci/path/to/script"` sometimes, though. Moreover, I get this error when I update the two plugins, and Jenkins works again when I rollback to my previous versions. In other words, my `Jenkinsfile` works for normal pipelines and for one multibranch pipeline, and only stops working when I update the multibranch plugins, which is why I thought it might be related to them. I'll try to find a minimal `Jenkinsfile` to reproduce the issue.

          Tiago Nunes added a comment -

          Just experienced this same issue, which I found out was actually caused by JENKINS-42882.

          As a workaround until that one is fixed, I had to replace the symbolic link to my Jenkinsfile by the actual file contents.

          Tiago Nunes added a comment - Just experienced this same issue, which I found out was actually caused by  JENKINS-42882 . As a workaround until that one is fixed, I had to replace the symbolic link to my Jenkinsfile by the actual file contents.

            Unassigned Unassigned
            jones Jonas
            Votes:
            5 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: