Jenkins build fails on Crashlytics tasks

前端 未结 2 2045
南笙
南笙 2021-01-21 06:03

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

相关标签:
2条回答
  • 2021-01-21 06:57

    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.

    0 讨论(0)
  • 2021-01-21 06:59

    These are the final commands that you need to follow:

    sudo mkdir -p /Users/Shared/Jenkins/Library/Caches/com.crashlytics
    sudo chown jenkins:jenkins /Users/Shared/Jenkins/Library -R
    

    Here is the relavant debug log for this case:

    13:33:45.133 [ERROR] [org.gradle.BuildExceptionReporter]    at com.crashlytics.tools.gradle.CrashlyticsPlugin.<clinit>(CrashlyticsPlugin.groovy:13)
    13:33:45.135 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.DependencyInjectingInstantiator.newInstance(DependencyInjectingInstantiator.java:48)
    13:33:45.136 [ERROR] [org.gradle.BuildExceptionReporter]    at org.gradle.api.internal.plugins.DefaultPluginRegistry.loadPlugin(DefaultPluginRegistry.java:69)
    13:33:45.136 [ERROR] [org.gradle.BuildExceptionReporter]    ... 55 more
    13:33:45.141 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.lang.RuntimeException: Crashlytics data directory at /Users/Shared/Jenkins/Library/Caches/com.crashlytics could not be created.
    13:33:45.142 [ERROR] [org.gradle.BuildExceptionReporter]    at com.crashlytics.tools.android.DeveloperTools.<clinit>(DeveloperTools.java:116)
    13:33:45.143 [ERROR] [org.gradle.BuildExceptionReporter]    ... 60 more
    13:33:45.143 [ERROR] [org.gradle.BuildExceptionReporter] 
    13:33:45.144 [LIFECYCLE] [org.gradle.BuildResultLogger] 
    13:33:45.145 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED
    13:33:45.146 [LIFECYCLE] [org.gradle.BuildResultLogger] 
    13:33:45.147 [LIFECYCLE] [org.gradle.BuildResultLogger] Total time: 8.362 secs
    
    0 讨论(0)
提交回复
热议问题