groovy.lang.MissingPropertyException: No such property: androidLint <span class="code-keyword" style="color: #000091">for</span> class: groovy.lang.Binding

Google Groups | ch...@orr.me.uk (JIRA) | 3 months ago
  1. 0

    [JIRA] (JENKINS-37736) $class-less syntax doesn't work as expected for build steps with no-args ctor

    Google Groups | 3 months ago | ch...@orr.me.uk (JIRA)
    groovy.lang.MissingPropertyException: No such property: androidLint <span class="code-keyword" style="color: #000091">for</span> class: groovy.lang.Binding
  2. 0

    Possibly working-as-intended / could be (somehow?) fixed by me in my plugin implementation, but thought I'd mention it… I upgraded Android Lint to use the {{@Symbol}} annotation (which is an excellent feature!), and it has been working great. However, the class that this applies to, {{LintPublisher}}, has a no-args {{@DataBoundConstructor}} — if no other parameters are specified, a default file {{pattern}} is used. So I saw that while "{{androidLint pattern: '**/foo.xml'}}" works fine, the no-args variant "{{androidLint}}" does not work at all, as Pipeline looks for a global binding with that name: {code} groovy.lang.MissingPropertyException: No such property: androidLint 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 org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:221) at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.getProperty(SandboxInvoker.java:24) at com.cloudbees.groovy.cps.impl.PropertyAccessBlock.rawGet(PropertyAccessBlock.java:20) at WorkflowScript.run(WorkflowScript:3) at ___cps.transform___(Native Method) {code} I discovered that in order to get the default behaviour, I have to use the syntax "{{androidLint()}}", which is not quite as nice as simply "{{androidLint}}", which I expected should work.

    Jenkins JIRA | 3 months ago | Christopher Orr
    groovy.lang.MissingPropertyException: No such property: androidLint for class: groovy.lang.Binding
  3. 0

    How do I use Jenkins Pipeline properties step?

    Stack Overflow | 10 months ago | izzekil
    groovy.lang.MissingPropertyException: No such property: properties for class: groovy.lang.Binding
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Jenkins workflow remote loader error

    Stack Overflow | 9 months ago | Toon Borgers
    groovy.lang.MissingPropertyException: No such property: rundeck for class: groovy.lang.Binding
  6. 0

    I am encountering an unclear exception when executing "checkout scm". As far as I know, all plugins (workflow, git) should be up-to-date and compatible (see Environment). I am running the following workflow script from SCM (git). {noformat} stage 'Build' node('slave2') { checkout scm } {noformat} which fails with the following trace. {noformat} groovy.lang.MissingPropertyException: No such property: scm for class: groovy.lang.Binding at groovy.lang.Binding.getVariable(Binding.java:62) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:141) at org.kohsuke.groovy.sandbox.impl.Checker$4.call(Checker.java:241) at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:238) at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:221) at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.getProperty(SandboxInvoker.java:23) at com.cloudbees.groovy.cps.impl.PropertyAccessBlock.rawGet(PropertyAccessBlock.java:17) at WorkflowScript.run(WorkflowScript:3) at Unknown.Unknown(Unknown) at ___cps.transform___(Native Method) at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.get(PropertyishBlock.java:62) at com.cloudbees.groovy.cps.LValueBlock$GetAdapter.receive(LValueBlock.java:30) at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.fixName(PropertyishBlock.java:54) at sun.reflect.GeneratedMethodAccessor1121.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) 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:58) at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:145) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:19) 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:106) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:30) at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:164) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:271) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$000(CpsThreadGroup.java:71) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:180) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:178) at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:47) at java.util.concurrent.FutureTask.run(FutureTask.java:262) 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:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) {noformat}

    Jenkins JIRA | 1 year ago | Chris Willmore
    groovy.lang.MissingPropertyException: No such property: scm for class: groovy.lang.Binding

    5 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. groovy.lang.MissingPropertyException

      No such property: androidLint <span class="code-keyword" style="color: #000091">for</span> class: groovy.lang.Binding

      at groovy.lang.Binding.getVariable()
    2. Groovy
      Binding.getVariable
      1. groovy.lang.Binding.getVariable(Binding.java:63)
      1 frame
    3. org.jenkinsci.plugins
      SandboxInterceptor.onGetProperty
      1. org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:224)
      1 frame
    4. org.kohsuke.groovy
      Checker.checkedGetProperty
      1. org.kohsuke.groovy.sandbox.impl.Checker$4.call(Checker.java:241)
      2. org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:238)
      3. org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:221)
      3 frames
    5. com.cloudbees.groovy
      PropertyAccessBlock.rawGet
      1. com.cloudbees.groovy.cps.sandbox.SandboxInvoker.getProperty(SandboxInvoker.java:24)
      2. com.cloudbees.groovy.cps.impl.PropertyAccessBlock.rawGet(PropertyAccessBlock.java:20)
      2 frames
    6. Unknown
      ___cps.transform___
      1. WorkflowScript.run(WorkflowScript:3)
      2. ___cps.transform___(Native Method)
      2 frames