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 閱讀(528) 評論(0)  編輯  收藏 所屬分類: JENKINS

          主站蜘蛛池模板: 安阳县| 江北区| 大姚县| 丰都县| 扶风县| 宝应县| 额尔古纳市| 仙游县| 鞍山市| 牙克石市| 巴彦淖尔市| 晋宁县| 五寨县| 德州市| 兰州市| 赤城县| 宜宾市| 乃东县| 天峨县| 沙田区| 秦皇岛市| 兰考县| 阳春市| 雷山县| 皋兰县| 巴青县| 马山县| 合山市| 大宁县| 都兰县| 武威市| 乐山市| 获嘉县| 四平市| 望城县| 庆安县| 屏山县| 奎屯市| 和平县| 教育| 广德县|