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


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 阅读(396) 评论(0)  编辑  收藏 所属分类: JENKINS