[Jenkins]詳解jenkins幾個有用的外掛程式如何使用(emma,findbugs)

來源:互聯網
上載者:User
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配合使用 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.