After update to 1.64: addStaticAnalysisContextAndPattern not found?

23 views
Skip to first unread message

Tobias Gruetzmacher

unread,
Jul 20, 2017, 11:28:07 AM7/20/17
to job-dsl-plugin
Hi,

I recently updated from 1.63 to 1.64 and now get this error when adding the "tasks" step to the publishers on a maven project:

No signature of method: javaposse.jobdsl.dsl.helpers.publisher.MavenPublisherContext.addStaticAnalysisContextAndPattern()
is applicable for argument types: (groovy.util.NodeBuilder, javaposse.jobdsl.dsl.helpers.publisher.TaskScannerContext, java.lang.String)
 values: [groovy.util.NodeBuilder@529010cb, javaposse.jobdsl.dsl.helpers.publisher.TaskScannerContext@22f45c5f, ...]
The same happens for the "warnings" step:

No signature of method: javaposse.jobdsl.dsl.helpers.publisher.MavenPublisherContext.addStaticAnalysisContext() is applicable
for argument types: (groovy.util.NodeBuilder, javaposse.jobdsl.dsl.helpers.publisher.WarningsContext)
values: [groovy.util.NodeBuilder@3a7e05b, javaposse.jobdsl.dsl.helpers.publisher.WarningsContext@6b8de5c9]

I looked at the code and can't understand how that happens... Here is a minimal example:


mavenJob("test") {
publishers {
tasks('**/*.java', '', 'FIXME, XXX', 'TODO', '', true)
warnings(['Maven', 'Java Compiler (javac)'])
}
}

Since it does work when replacing "mavenJob" with "job", maybe something is wrong when
MavenPublisherContext is in use?

Regards, Tobias

Daniel Spilker

unread,
Sep 7, 2017, 4:11:37 PM9/7/17
to job-dsl...@googlegroups.com
This has been fixed in 1.65:
https://issues.jenkins-ci.org/browse/JENKINS-46042

Daniel

--
You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugin+unsubscribe@googlegroups.com.
To post to this group, send email to job-dsl-plugin@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/2a5f4cc9-6249-4279-9867-2d6208631d17%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages