groovy.lang.MissingPropertyException: No such property: jobManagement for class: javaposse.jobdsl.dsl.helpers.publisher.MavenPublisherContext

Jenkins JIRA | Mirko Friedenhagen | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I am creating {{mavenJob}} s which should only store a Sonar Preview report (this is for all git branches except of master). I use htmlpublisher, the IMO relevant section is: {code} mavenJob("project1-branches") { publishers { jacocoCodeCoverage() publishHtml { report("target/sonar/issues-report/") { // since 1.28 reportName("Sonar Preview") reportFiles("issues-report.html") // defaults to 'index.html' if omitted allowMissing(true) // defaults to false if omitted keepAll(true) // defaults to false if omitted } } extendedEmail('foo@example.com', '$DEFAULT_SUBJECT', '$DEFAULT_CONTENT') } } {code} With job-dsl-plugin 1.30 all works fine, however with version 1.31 I get the following stack trace (complete output attached): {code} groovy.lang.MissingPropertyException: No such property: jobManagement for class: javaposse.jobdsl.dsl.helpers.publisher.MavenPublisherContext at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50) at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231) at javaposse.jobdsl.dsl.helpers.publisher.PublisherContext$_publishHtml_closure9_closure67_closure68_closure69.doCall(PublisherContext.groovy:281) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:903) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141) at {code} I just reverted to 1.30 and this version works fine again.

    Jenkins JIRA | 2 years ago | Mirko Friedenhagen
    groovy.lang.MissingPropertyException: No such property: jobManagement for class: javaposse.jobdsl.dsl.helpers.publisher.MavenPublisherContext
  2. 0

    I am creating {{mavenJob}} s which should only store a Sonar Preview report (this is for all git branches except of master). I use htmlpublisher, the IMO relevant section is: {code} mavenJob("project1-branches") { publishers { jacocoCodeCoverage() publishHtml { report("target/sonar/issues-report/") { // since 1.28 reportName("Sonar Preview") reportFiles("issues-report.html") // defaults to 'index.html' if omitted allowMissing(true) // defaults to false if omitted keepAll(true) // defaults to false if omitted } } extendedEmail('foo@example.com', '$DEFAULT_SUBJECT', '$DEFAULT_CONTENT') } } {code} With job-dsl-plugin 1.30 all works fine, however with version 1.31 I get the following stack trace (complete output attached): {code} groovy.lang.MissingPropertyException: No such property: jobManagement for class: javaposse.jobdsl.dsl.helpers.publisher.MavenPublisherContext at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50) at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231) at javaposse.jobdsl.dsl.helpers.publisher.PublisherContext$_publishHtml_closure9_closure67_closure68_closure69.doCall(PublisherContext.groovy:281) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:903) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141) at {code} I just reverted to 1.30 and this version works fine again.

    Jenkins JIRA | 2 years ago | Mirko Friedenhagen
    groovy.lang.MissingPropertyException: No such property: jobManagement for class: javaposse.jobdsl.dsl.helpers.publisher.MavenPublisherContext
  3. 0

    Exceptions on resolving transient dependencies

    GitHub | 2 years ago | Burbaka
    groovy.lang.MissingPropertyException: No such property: baseDir for class: setup_device_types_api
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Titan 0.3.1 doesn't work with examples in /wiki/Graph-Configuration

    GitHub | 4 years ago | yvesx
    groovy.lang.MissingPropertyException: No such property: conf for class: groovysh_evaluate
  6. 0

    MissingPropertyException: No such property: Error in Groovy script

    Stack Overflow | 3 years ago | MPH
    groovy.lang.MissingPropertyException: No such property: XmlExamples for class: Script1

  1. stigkj 8 times, last 2 days ago
  2. johnxfly 1 times, last 4 days ago
  3. musketyr 5 times, last 2 weeks ago
  4. tvrmsmith 1 times, last 4 weeks ago
  5. andyglick 4 times, last 2 months ago
9 more registered users
19 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: jobManagement for class: javaposse.jobdsl.dsl.helpers.publisher.MavenPublisherContext

    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap()
  2. Groovy
    AbstractCallSite.callGroovyObjectGetProperty
    1. org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
    2. org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)
    3. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:231)
    3 frames
  3. javaposse.jobdsl.dsl
    PublisherContext$_publishHtml_closure9_closure67_closure68_closure69.doCall
    1. javaposse.jobdsl.dsl.helpers.publisher.PublisherContext$_publishHtml_closure9_closure67_closure68_closure69.doCall(PublisherContext.groovy:281)
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:497)
    4 frames
  5. Groovy
    AbstractCallSite.callCurrent
    1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
    2. groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
    3. org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
    4. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:903)
    5. org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
    6. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
    6 frames