![]() |
|
|
|
|
Change By:
|
Mirko Friedenhagen
(06/Apr/15 9:43 PM)
|
|
Environment:
|
Java version: 1.8.0_40, vendor: Oracle Corporation Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre Default locale: de_DE, platform encoding: UTF-8 OS name: "mac os x", version: "10.10.2", arch: "x86_64", family: "mac" Jenkins-Core 1.607, job-dsl-plugin-1.31, htmlpublisher-1.3
Running from inside a Jenkins Job
|
|
Description:
|
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('[email protected]', '$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.
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
[email protected].
For more options, visit
https://groups.google.com/d/optout.