android - 如何在 Jenkins 上使用 google api 创建多配置矩阵项目?

标签 android jenkins google-api emulation

我正在尝试配置矩阵项目以在不同的模拟器配置上运行我的 apk,但是当我尝试使用 "Google Inc.:Google APIs:16" 作为我的操作系统目标时,项目没有构建.当我尝试在 Android 4.1 上构建时它可以工作,但我需要使用 google api 在其上运行 monkey。我应该使用 os 参数向矩阵输入什么以使用 google API 创建模拟器 ??

Triggering ldpi,Google Inc.:Google APIs:16,WVGA ldpi,Google Inc.:Google APIs:16,WVGA completed with result FAILURE

  • java.io.IOException: Failed to mkdirs: ...\MatrixProject\density\ldpi\os\Google Inc.:Google APIs:16\resolution\WVGA at hudson.FilePath.mkdirs(FilePath.java:973) at hudson.model.AbstractProject.checkout(AbstractProject.java:1323) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581) at hudson.model.Run.execute(Run.java:1516) at hudson.matrix.MatrixRun.run(MatrixRun.java:146) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) [FINDBUGS] Skipping publisher since build result is FAILURE

最佳答案

看起来您使用的是 Windows,它不支持其中包含冒号的文件名,因此 Jenkins 在尝试为每个构建组合创建唯一目录时失败。

当前您的操作系统版本轴包含类似“Google Inc.:Google APIs:16”的值,“Android 操作系统”字段可能包含类似“${os}”的值。

相反,尝试将轴更改为仅包含 API 级别,例如“16 ”,并将“Android 操作系统”字段更改为“Google Inc.:Google APIs:${os} ”。

这样,Jenkins 创建的目录名称将不包含冒号。

关于android - 如何在 Jenkins 上使用 google api 创建多配置矩阵项目?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13271361/

相关文章:

android - 无法启动 AVD 模拟器 : PANIC: Could not open:/home/baldur/. android/avd/AVD_for_Nexus_7_by_Google.ini

jenkins - jenkins 环境变量中的三元运算符

Jenkins:groovy DSL:使用三元运算符来区分 FreeStyleJob 和 MatrixJob

angularjs - POST 请求 405 错误 (AngularJS $http)

android - 下载后自动安装apk

android - 在 Nativescript 中哪里可以找到默认的系统图标?

git - 正确配置下游的 Jenkins GitHub Pull Request Builder

java - 语音转文本 api 其他语言 android

android - 如何将 Android 应用程序与 Google 表格电子表格相关联?

android - 如何更改 alertdialog 上肯定按钮的颜色?