Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-10332

flex-pmd output not picked up when running as build plugin

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: pmd-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          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.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - 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.
          Hide
          dogfood dogfood added a comment -

          Integrated in plugins_pmd #119
          [FIXED JENKINS-10332] Listen also to check and report maven goals.

          Ulli Hafner :
          Files :

          • pom.xml
          • .classpath
          • src/main/java/hudson/plugins/pmd/PmdReporter.java
          • .settings/org.eclipse.core.resources.prefs
          Show
          dogfood dogfood added a comment - Integrated in plugins_pmd #119 [FIXED JENKINS-10332] Listen also to check and report maven goals. Ulli Hafner : Files : pom.xml .classpath src/main/java/hudson/plugins/pmd/PmdReporter.java .settings/org.eclipse.core.resources.prefs

            People

            • Assignee:
              drulli Ulli Hafner
              Reporter:
              rec Richard Eckart de Castilho
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: