在Crashlytics任务詹金斯构建失败 [英] Jenkins build fails on Crashlytics tasks
问题描述
我是新来的詹金斯和构建服务器一般。我工作在詹金斯设置一个Android项目和应用程序使用Crashlytics。使用摇篮,我把我的任务,为干净的构建,但任何时候我打了Crashlytics的任务,我得到这个错误:
I'm new to Jenkins and Build Servers in general. I am working on setting an Android project up on Jenkins and the app uses Crashlytics. Using Gradle, I set my tasks to "clean build", but anytime I hit a Crashlytics task, I get this error:
java.lang.Error: Classloader conflict in your Gradle environment,
please verify you are running the latest Android plugin.
和
Crashlytics data directory at /Users/Shared/Jenkins/Library/Caches/com.crashlytics
could not be created.
我想我的设置与-x crashlyticsGenerateResourecesAlpha(即任务失败)摇篮任务跳过任务,但是这似乎并没有擦出火花。
I tried setting my Gradle tasks with "-x crashlyticsGenerateResourecesAlpha" (that task that is failing) to skip the task, but that doesn't seem to work either.
我检查了,我已经安装了最新的Android工具,仿真器,等等。我现在已经下载了Android的插件是Android模拟器插件和摇篮插件(两者都是最新的版本)。我使用Git拉在我的项目。我开始一个仿真器之前,我构建项目。我指着詹金斯目录内的Android的SDK文件夹。我还配置JDK 1.7和指针在我的本地主机的JDK目录(我运行詹金斯本地)。
I've checked that I have installed the latest Android tools, emulators, etc. The Android plugins that I currently have downloaded are the Android Emulator Plugin and Gradle plugin (both are the latest releases). I'm using Git to pull in my project. I'm starting an emulator before I build the project. I'm pointing to the android-sdk folder within the Jenkins directory. I'm also configured JDK 1.7 and that's pointing to the JDK directory on my local box (I'm running Jenkins locally).
下面是我收到的时候我跑的内部版本的摇篮-v
Here are the build versions I received when I ran gradle -v:
------------------------------------------------------------
Gradle 1.11
------------------------------------------------------------
Groovy: 1.8.6
Ant: Apache Ant(TM) version 1.9.2 compiled on July 8 2013
Ivy: 2.2.0
JVM: 1.7.0_55 (Oracle Corporation 24.55-b03)
OS: Mac OS X 10.9.2 x86_64
有没有别的东西,可能是导致此错误?是否有一个插件Crashlytics我可能不知道的?此外,如果有任何詹金斯调试提示,我可能不知道的,请让我知道,我会更新什么,我觉得这个问题。
Is there something else that could be causing this error? Is there a plugin for Crashlytics I may not be aware of? Also, if there are any Jenkins debug tips that I may not be aware of, please let me know and I'll update the question with what I find.
推荐答案
我有同样的错误,因为 /用户/共享/詹金斯/库
目录不存在。如果您创建的目录和 /用户/共享/詹金斯/库/缓存
,该crashlytics任务应该完成。
I had the same error, because the /Users/Shared/Jenkins/Library
directory doesn't exist. If you create that directory and /Users/Shared/Jenkins/Library/Caches
, the crashlytics tasks should complete.
这篇关于在Crashlytics任务詹金斯构建失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!