为了使项目代码的质量更高,于是用jenkins集成了几个java代码分析工具,并没有使用jenkins中的ant或者maven来调用工具(网上搜到的全是这些),而是使用bash shell来调用。
环境 ubuntu 10.0.4 + jenkins
需要单独下载的工具:
1.findbugs
2.checkstyle
3.PMD
4. SKD
jenkins 插件
1.
2.
3.
4. (使用谷歌SDK中自带的lint工具来分析整个android项目)
所有以上安装好后,并且配置好jenkins中相应的job,build即可。附调用工具的shell代码。
由于对这几个工具的命令还不是很熟悉,故代码还没有相应的优化。
阅读(1387) | 评论(0) | 转发(0) |