findbugs使用方式:
目的:進行代碼走查的自動化,能夠提示垃圾代碼或者提供代碼最佳化的建議
1.首先下載findbugs
http://findbugs.sourceforge.net/downloads.html
2.其次在ant中配置findbugs
http://www.51testing.com/?uid-265524-action-viewspace-itemid-200942
3.再次在jenkins內下載findbugs外掛程式
無需配置,如果是ant調用會在項目內自動產生findbugs.xml檔案並且在jenkins在繪製findbugs曲線
emma使用方式:
目的:進行測試程式碼涵蓋範圍檢查
如果使用maven那麼只要指定target目標位emma:emma即可
如果使用ant那麼請繼續看
1.首先下載emma
http://emma.sourceforge.net/downloads.html
2.其次在ant中配置emma
一個ant實用例子http://ouzhong.blog.hexun.com/32369273_d.html
ibm ant-emma配置:http://www.ibm.com/developerworks/cn/java/j-lo-emma/
3.下載emma-jenkins外掛程式
https://wiki.jenkins-ci.org/display/JENKINS/Emma+Plugin
其他做簡單介紹需要的時候可以使用:
1.ant外掛程式
2.disk usage plugin 這個外掛程式可以監控每次build項目所花費的物理空間
3.thinbackup 這個外掛程式可以備份你job的配置
4.jenkins workspace cleanup plugin 這個外掛程式可以再每次build之前清空workspace
5.build-name-setter 這個外掛程式可以設定每次build顯示的名字
6.git外掛程式
7.PMD外掛程式 這個外掛程式
8.python plugin 這個外掛程式支援你像寫shell一樣寫python代碼
9.email-ext plugin 這個外掛程式提供你發送HTML格式的郵件
10.hudson next build number plugin 如果你想把hudson每次build的版本號碼放到你的產品版本號碼中你可以使用這個外掛程式
11.HTML publisher plugin 支援HTML格式的report
12.android lint plugin 支援android項目檢查
13.Copy Artifact Plugin 支援把build後產生的結果copy到其他項目去
14.promoted 支援手工測實驗證,或者發布產品,在build結束後手動執行
15.Jenkins description setter plugin 這個外掛程式可以支援在Job的描述修改,例如二維碼
16.Hudson Port Allocator Plug-in 開啟關閉連接埠,或者選擇一個自由的連接埠來進行build
17.Android Emulator Plugin
18.JobConfigHistory Plugin 這個外掛程式用於查看jobconfig記錄
19.Jenkins Sounds plugin 這個外掛程式用於結束build後會給出聲音提示
20.JIRA Plugin 這個外掛程式用來和Jira配合使用