如何使用詹金斯从前端混帐调试Android项目? [英] How to debug android project from git using Jenkins frontend?
问题描述
我已经在我的Ubuntu安装使用詹金斯命令和apt-get安装詹金斯11.04制度。
我能够从Linux命令行以及执行蚁调试命令成功完成但是,当我试图通过设置构建目标援引蚁族具有属性sdk.dir = / opt下调试通过詹金斯从前端混帐枢纽Android项目/ Android的SDK-Linux的芯片。这是给下面的错误控制台输出:
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的芯片到主文件夹尝试,但给了同样的错误。
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 /平台
Wherever ANDROID_HOME/platforms pointing to
- 在取景器覆盖率
- 带来获取信息
- 添加詹金斯用户和
- 提供读取权限。
这解决了我的build.xml的问题没有发现错误。
This solved my problem of build.xml not found error.
这篇关于如何使用詹金斯从前端混帐调试Android项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!