paulwong

          PMD for Jenkins

          PMD jenkins plugin is only displaying the PMD check results. You need to run PMD using Maven as part of your build triggered by Jenkins. For example this could look like that in your pom.xml

          <reporting>
              <plugins>
                  <plugin>
                      <groupId>org.apache.maven.plugins</groupId>
                      <artifactId>maven-pmd-plugin</artifactId>
                      <version>2.7.1</version>
                      <configuration>
                          <linkXRef>false</linkXRef>
                          <targetJdk>1.6</targetJdk>
                          <rulesets>
                              <ruleset>/rulesets/basic.xml</ruleset>
                          </rulesets>
                      </configuration>
                  </plugin>
              </plugins>
          </reporting>

          Then PMD-jenkins will know where to pick up the results and publish them for you.

          To get the results you will need to add this code to your pom.xml and execute the according target in Jenkins, yes.

          Note that this is not related to PMD-plugin in Eclipse. The Eclipse PMD plugin just shows the result of the local analysis, not related to Jenkins.

          posted on 2014-07-12 15:04 paulwong 閱讀(523) 評論(0)  編輯  收藏 所屬分類: JENKINS

          主站蜘蛛池模板: 昭平县| 青州市| 普格县| 卢龙县| 桃园县| 科尔| 丰镇市| 滁州市| 安岳县| 天峨县| 龙川县| 温泉县| 香港 | 无棣县| 固镇县| 湖北省| 永顺县| 都安| 南木林县| 衡南县| 景德镇市| 迁西县| 太白县| 竹溪县| 澜沧| 昌宁县| 永定县| 思南县| 全南县| 鄯善县| 云安县| 策勒县| 广丰县| 渝北区| 乌拉特中旗| 观塘区| 太仆寺旗| 伊川县| 什邡市| 双流县| 台江县|