Jenkins + Gradle + pgyer + Android自動發布

來源:互聯網
上載者:User

標籤:uil   env   環境   sdk   jdk   www.   and   one   span   

Jenkins配置與必要的環境配置

一:Jenkins服務端(Linux系統為例說明):

1.jdk安裝與配置

2.SDK安裝與配置

3.安裝配置對應的gradle版本(建議gradle版本在4.1版本以上)

服務端配置注意問題:

1.如果系統報錯:Parsing the SDK, no caching allowed。

   需要在系統設定ANDROID_HOME以及ANDROID_NDK_HOME(如果有的話)環境變數。(點擊左邊的系統管理——>系統設定——>找到全域屬性——>點擊添加勾選環境變數 )

2.如果運行報錯:A problem occurred evaluating project ‘:NativeComponents‘.

   需要配置對應的NDK,並且安裝與gradle檔案裡面相匹配的版本

3.如果運行報錯:Can‘t retrieve the Gradle executable

  需要安裝配置對應的gradle版本

二:Jenkins client配置詳情如下:

1.建立job類型

2.General配置

3.Source Code Management

4.Build Triggers

 

5. Build Environment

6.build

 

 

推薦博文:50820308

https://www.jianshu.com/p/441e75f527f2

 

Jenkins + Gradle + pgyer + Android自動發布

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.