Jenkins Android自动构建配置(SVN)

进入系统管理,插件管理

 

需要安装的插件有:Android Lint Plugin,Gradle Plugin,Subversion Plug-in

打开全局工具配置界面 

Jenkins Android自动构建配置(SVN)_第1张图片

设置jdk配置

Jenkins Android自动构建配置(SVN)_第2张图片

设置gradle配置

Jenkins Android自动构建配置(SVN)_第3张图片

设置maven配置

Jenkins Android自动构建配置(SVN)_第4张图片

 

设置完成保存

到这里整个打包环境就搭建完毕了。

进入系统设置

Jenkins Android自动构建配置(SVN)_第5张图片

 

创建打包任务

Jenkins Android自动构建配置(SVN)_第6张图片

 

Jenkins Android自动构建配置(SVN)_第7张图片

 

Jenkins Android自动构建配置(SVN)_第8张图片

 

Jenkins Android自动构建配置(SVN)_第9张图片

 

Jenkins Android自动构建配置(SVN)_第10张图片

 

Jenkins Android自动构建配置(SVN)_第11张图片

构建输出报错

* What went wrong: A problem occurred configuring project ':zdb_android'. > You have not accepted the license agreements of the following SDK components: [Android SDK Build-Tools 25.0.2, Android SDK Platform 25]. Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager. Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

没有安装[Android SDK Build-Tools 25.0.2, Android SDK Platform 25].

查看所有sdk

android list sdk --all

按照序号更新

android update sdk -u --all --filter 15,48

Installing Archives:
Preparing to install archives
Downloading Android SDK Build-tools, revision 25.0.2
Installing Android SDK Build-tools, revision 25.0.2
Installed Android SDK Build-tools, revision 25.0.299%)
Downloading SDK Platform Android 7.1.1, API 25, revision 3
Installing SDK Platform Android 7.1.1, API 25, revision 3
Installed SDK Platform Android 7.1.1, API 25, revision 396%)
Done. 2 packages installed.

转载于:https://my.oschina.net/u/170771/blog/3066452

你可能感兴趣的:(移动开发,运维,java)