Jenkins中使用checkstyle, coverage, pmd, findbugs plugin

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的配置

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值