天天看點

CI實踐_Android持續內建

之前已經實作了Android的持續內建,并在項目中應用了一段時間。恰逢現在有幾分鐘時間,把之前的一些零散的點滴記錄和整理一下,供有需要的朋友參考,或後續複用。

需要的準備知識:gitlab、Jenkins、各種plugins、shell等;

另外,推薦一個seafiles,相當于雲存儲網盤,大家可以把建構的apk包,發送至,供團隊内部使用;

當然,你也可以采用ftp為team共享也可以。

一.總體的全局配置:

配置相關plugin,如果需要進行代碼檢測的話,也需要安裝Sonar,部配置設定置如下:

Sonar installations:

Name :sonar

Server URL:http://192.168.0.100:9000/

Sonar account login:admin

Sonar account password:*****

Database URL:jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true

Database login:root

Database password:****

郵件通知

     SMTP伺服器        smtp.exmail.qq.com        

     使用者預設郵件字尾    @aituyou.com

二.單個Project中的配置:

觸發建構器:

Build after other projects are built

Projects to watch:TSD-Common

源碼管理:

Git Repositories: http://121.201.13.32:9000/xiaobao/tsd-navigation.git

Build periodically:日程表

Pull SCM:

Command Shell:

<a></a>

其實沒有過多解釋,如果需要了解細節的朋友,可以聯系我。

本文轉自 念槐聚 部落格園部落格,原文連結:http://www.cnblogs.com/haochuang/p/4766491.html,如需轉載請自行聯系原作者