Android潜修者程序员Android知识

使用Jenkins持续集成Android项目遇到的坑

2017-03-25  本文已影响784人  姜家志

在使用Jenkins配置Android项目的时候遇到了一些坑,总结下:

没有gradle.properties文件

example/bulid.gradle
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/Shared/Jenkins/Home/jobs/android- crop/workspace/build.gradle' line: 12
* What went wrong:
A problem occurred evaluating root project 'workspace'.
> Could not find property 'VERSION' on root project 'workspace'.

无法使用.ssh中的private key

构建项目权限不足

  • What went wrong:
    java.io.IOException: Permission denied
    Permission denied

没有设置sdk的目录

请使用插件

Jenkins提供各种强大的插件比如:

上一篇下一篇

猜你喜欢

热点阅读