groovy.lang.MissingPropertyException: No such property: GRADLE_USER_HOME for class: groovy.lang.Binding

Stack Overflow | Itai Ganot | 3 months ago
  1. 0

    Unable to use a variable within a "sh clause" in a Jenkins pipeline, what could be the reason?

    Stack Overflow | 3 months ago | Itai Ganot
    groovy.lang.MissingPropertyException: No such property: GRADLE_USER_HOME for class: groovy.lang.Binding
  2. 0

    Jenkinsfile run qmake

    Stack Overflow | 7 months ago | FalseCAM
    groovy.lang.MissingPropertyException: No such property: qmake for class: groovy.lang.Binding
  3. 0

    Multi branch pipeline: How to read global environment variables?

    Google Groups | 6 months ago | shan
    groovy.lang.MissingPropertyException: No such property: props for class: groovy.lang.Binding
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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
  6. 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

    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: GRADLE_USER_HOME for 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