我使用以下提示在 Jenkins(带有模拟器插件)上使用 Android 创建了一个多重配置项目:
wiki.jenkins-ci.org/display/JENKINS/Android+Emulator+Plugin
和
wiki.jenkins-ci.org/display/JENKINS/Building+an+Android+app+and+test+project
他们很有帮助,但我在成功运行我的项目时遇到了问题。当我查看控制台时,我只有这个:
Triggering 160,2.3.3,FWVGA
160,2.3.3,FWVGA completed with result FAILURE
Triggering 160,2.3.3,WVGA
160,2.3.3,WVGA completed with result NOT_BUILT
Triggering 160,2.2,FWVGA
160,2.2,FWVGA completed with result FAILURE
但是当我收到电子邮件通知时,我会收到:
ERROR: Timeout after 5 seconds Process leaked file descriptors. See
http://wiki.jenkins-ci.org/display/JENKINS/Spawning+processes+from+build
for more information
$ "E:\server\Android SDK\android-sdk/platform-tools/adb.exe" connect localhost:38454
[android] Waiting for emulator to finish booting...
$ "E:\server\Android SDK\android-sdk/platform-tools/adb.exe" -s localhost:38454 shell getprop dev.bootcomplete
$ "E:\server\Android SDK\android-sdk/platform-tools/adb.exe" -s localhost:38454 logcat -v time
$ "E:\server\Android SDK\android-sdk/platform-tools/adb.exe" connect localhost:38454
[android] Emulator is ready for use (took 26 seconds) [QVGA]
$ cmd.exe /C '"E:\server\ant\bin\ant.bat -Dos=2.2 -Ddensity=169 -Dresolution=QVGA clean emma debug install test && exit %%ERRORLEVEL%%"'
Buildfile:
<.../jenkins/job/AndroidTestCalculatorTest3/./density=169,os=2.2,resolution=QVGA/ws/build.xml>
BUILD FAILED
我从构建中阅读了带有生成过程的页面,但我不明白:(任何人都可以写“如何为白痴做这件事?”。
编辑:当我点击我拥有的第一个孩子时,我重新配置了我的项目:
[android] 模拟器等待 180 秒后超时... [android] 停止 Android 模拟器有没有办法改变超时长度?