如何使用Jenkins前端从git调试android项目? [英] How to debug android project from git using Jenkins frontend?
问题描述
我已经使用命令apt-get install jenkins"在我的 ubuntu 11.04 系统上安装了 Jenkins.我能够很好地从 linux 命令行执行ant debug"命令并成功完成但是当我尝试使用 jenkins 前端从 git hub 调试 Android 项目时,通过设置具有属性sdk.dir=/opt"的构建目标Invoke ant"/android-sdk-linux-ics".它给出了以下错误控制台输出:
I have installed Jenkins on my ubuntu 11.04 system using command "apt-get install jenkins". I am able to executes "ant debug" command from linux command line well and completed successfully But when i am trying to debug Android project from git hub using jenkins frontend by setting build target "Invoke ant" with properties "sdk.dir=/opt/android-sdk-linux-ics". It is giving following error Console Output :
########################################################################################
Started by user anonymous
Building in workspace /var/lib/jenkins/workspace/touchanimtn
Checkout:touchanimtn / /var/lib/jenkins/workspace/touchanimtn - hudson.remoting.LocalChannel@72cd429b
Using strategy: Default
Last Built Revision: Revision 3e4b580644fad8b059fb5c13925d3d86fa402187 (origin/HEAD, origin/master)
Fetching changes from 1 remote Git repository
Fetching upstream changes from https://github.com/ssamar/touchanimtn.git
Seen branch in repository origin/HEAD
Seen branch in repository origin/master
Commencing build of Revision 3e4b580644fad8b059fb5c13925d3d86fa402187 (origin/HEAD, origin/master)
Checking out Revision 3e4b580644fad8b059fb5c13925d3d86fa402187 (origin/HEAD, origin/master)
Warning : There are multiple branch changesets here
[touchanimtn] $ ant -Dsdk.dir=/opt/android-sdk-linux-ics clean debug
Buildfile: /var/lib/jenkins/workspace/touchanimtn/build.xml
BUILD FAILED
/var/lib/jenkins/workspace/touchanimtn/build.xml:83: Cannot find /opt/android-sdk-linux-ics/tools/ant/build.xml imported from /var/lib/jenkins/workspace/touchanimtn/build.xml
Total time: 0 seconds
Build step 'Invoke Ant' marked build as failure
Finished: FAILURE
###################################################################################
我也尝试将android-sdk-linux-ics"放入主文件夹,但出现了同样的错误.
I also tried by putting "android-sdk-linux-ics" into home folder but gave same error.
请给我这个错误的正确解决方案.
Please, Give me the correct solution for this error.
推荐答案
可能会帮助某人.
ANDROID_HOME/platforms 指向的任何地方
Wherever ANDROID_HOME/platforms pointing to
- 到达取景器
- 获取信息
- 添加Jenkins用户和
- 授予读取权限.
这解决了我的 build.xml not found 错误问题.
This solved my problem of build.xml not found error.
这篇关于如何使用Jenkins前端从git调试android项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!