Issue Type: Bug Bug
Assignee: Daniel Spilker
Attachments: job-dsl-plugin-1.31-htmlpublisher.txt
Components: job-dsl-plugin
Created: 06/Apr/15 9:41 PM
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:

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')
      }
}

With job-dsl-plugin 1.30 all works fine, however with version 1.31 I get the following stack trace (complete output attached):

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

I just reverted to 1.30 and this version works fine again.

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
Project: Jenkins
Priority: Major Major
Reporter: Mirko Friedenhagen
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.

Reply via email to