groovy.lang.MissingPropertyException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Jenkins docker pipeline error
    via Stack Overflow by Adam Smith
    ,
  • Jenkinsfile run qmake
    via Stack Overflow by FalseCAM
    ,
  • 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.
    via by Christopher Orr,
  • GitHub comment 411#246590190
    via GitHub by sturmf
    ,
    • groovy.lang.MissingPropertyException: No such property: branch 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)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    1 more bugmates