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

          主站蜘蛛池模板: 上林县| 泗阳县| 来凤县| 清原| 太康县| 金门县| 中阳县| 巴东县| 合阳县| 夹江县| 中卫市| 讷河市| 石首市| 盐边县| 凤山县| 剑河县| 灵寿县| 鄂尔多斯市| 沂水县| 怀集县| 浦城县| 望江县| 浙江省| 平泉县| 和田市| 怀集县| 普兰店市| 临城县| 时尚| 新津县| 霍林郭勒市| 民乐县| 永仁县| 洪泽县| 河池市| 聂拉木县| 吐鲁番市| 沙坪坝区| 惠安县| 广宁县| 昌宁县|