1. 安装启动Jenkins之后,在manage jenkins里,选择manage plugin,在available tab里面安装相关plugins
FindBugs Plug-in
This plug-in collects the FindBugs analysis results of the project modules and visualizes the found warnings.
If you like this open source plug-in please consider supporting my work by buying my Android game Inca Trails.
Jenkins Cobertura Plugin
This plugin integrates Cobertura coverage reports to Jenkins.
PMD Plug-in
This plug-in collects the PMD analysis results of the project modules and visualizes the found warnings.
If you like this open source plug-in please consider supporting my work by buying my Android game Inca Trails.
Checkstyle Plug-in
This plug-in collects the Checkstyle analysis results of the project modules and visualizes the found warnings.
If you like this open source plug-in please consider supporting my work by buying my Android game Inca Trails.
Jenkins Sonar Plugin
Quickly benefit from Sonar, an open-source dashboard based on many analysis tools like Checkstyle, PMD and Cobertura.
实际就是把对应的 *.hpi/*.jpi 文件下载到本地的$JENKINS_HOME/plugins目录。
如果在available里面看不到东西,记得去Advanced看看是不是proxy,update都ok。也可以手动下载对应的plugin然后把文件下载到$JENKINS_HOME/plugins目录。
如果你对plugin的消息有兴趣,可以关注 plugin版本的RSS(orhere) or Twitter.
2. 在manage jenkins里面,configure system,配置sonar信息
3. 创建新的job,或者在已经的job(这里我创建的是freestyle的job)里面点击configure
3.1 配置maven generate site report,项目pom本身确保有report的配置