-
Bug
-
Resolution: Fixed
-
Major
-
None
I am running flex-pmd as part of the build, not of the reporting:
<plugin> <groupId>com.adobe.ac</groupId> <artifactId>flex-pmd-maven-plugin</artifactId> <executions> <execution> <phase>package</phase> <goals> <goal>report</goal> </goals> </execution> </executions> </plugin>
Unfortunately the Jenkins PMD plugin does not trigger then because it seems to trigger only on the "pmd" and "site" goals, but not on "report" or "check" which are the two supported by the flex-pmd plugin. I would prefer not having to run an extra "site" step for the output to be picked up. Would it be possible to accept the "report" and "check" goals?
@Override protected boolean acceptGoal(final String goal) { return "pmd".equals(goal) || "site".equals(goal) || "report".equals(goal) || "check".equals(goal); }
I assume that fixes it, but I didn't test it. However, I didn't find any place where the plugin actually looks out for the name of Mojo.
Code changed in jenkins
User: Ulli Hafner
Path:
.classpath
.settings/org.eclipse.core.resources.prefs
pom.xml
src/main/java/hudson/plugins/pmd/PmdReporter.java
http://jenkins-ci.org/commit/pmd-plugin/2e5d81fdac0e2ef0ef20cfeadf503eefca24e419
Log:
[FIXED JENKINS-10332] Listen also to check and report maven goals.