mavenJob('TMPL-maven-project') {
// snip
publishers {
violations(100) {
checkstyle(10, 999, 999)
cpd(10, 999, 999)
findbugs(10, 999, 999)
jslint(10, 999, 999)
pmd(10, 999, 999)
}
cobertura("**/target/site/cobertura/coverage.xml") {
classTarget(100, 0, 0)
conditionalTarget(70, 0, 0)
lineTarget(80, 0, 0)
methodTarget(80, 0, 0)
packageTarget(100, 0, 0)
}
}
}
However nothing is being reported. I noticed that in the config.xml the generated XML is:
<publishers> <hudson.plugins.violations.ViolationsPublisher> <config> <suppressions class="tree-set"> <no-comparator/> </suppressions> <typeConfigs> <no-comparator/> <entry> <string>checkstyle</string>
When I enable violations manually via the Jenkins config web page, it creates XML like this:
<reporters>
<hudson.plugins.violations.hudson.maven.ViolationsMavenReporter plugin="viola...@0.7.11">
<config>
<suppressions class="sorted-set"/>
<typeConfigs>
<entry>
<string>checkstyle</string>
<hudson.plugins.violations.TypeConfig>
<type>checkstyle</type>
<min>10</min>
<max>999</max>
<unstable>999</unstable>
<usePattern>false</usePattern>
<pattern></pattern>
</hudson.plugins.violations.TypeConfig>
</entry>
--
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-plugi...@googlegroups.com.
To post to this group, send email to job-dsl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/a6a54525-1beb-49b6-a3d3-238444933d40%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks Matt. I'll check it out.
Regards
Andrew
You received this message because you are subscribed to a topic in the Google Groups "job-dsl-plugin" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/job-dsl-plugin/ZoiUTUPUgC8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to job-dsl-plugi...@googlegroups.com.
To post to this group, send email to job-dsl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/CAKZH%3DdY%3DzDx97m7aT3d3h%3Dq_AnVcx0ZW8F6C%3DnFV2zw3LBWxwQ%40mail.gmail.com.