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

          主站蜘蛛池模板: 辽阳市| 贺兰县| 太湖县| 吉水县| 呼玛县| 澄迈县| 迭部县| 鞍山市| 福贡县| 宜宾市| 新疆| 浦城县| 章丘市| 神农架林区| 上杭县| 南康市| 海安县| 海门市| 曲阳县| 唐海县| 台湾省| 措勤县| 乐平市| 西青区| 于田县| 原平市| 称多县| 连江县| 永靖县| 横峰县| 伽师县| 仙游县| 云南省| 和静县| 万年县| 新安县| 桂东县| 江永县| 施甸县| 仪陇县| 达州市|