我是 jenkins 服务器的新手,想为此寻求一些帮助和指导,我目前有一个应用程序正在使用 firebase 应用程序分发功能正常工作和构建,它在本地工作并且可以分发我的应用程序我按照他们的设置使用这个https ://firebase.google.com/docs/app-distribution/android/distribute-gradle?authuser=0#authenticate_using_a_service_account。
问题是我想在 jenkins 中自动分发我的应用程序,我已经使用 jenkins 成功构建了一个 apk,但是当我将任务 appDistributionUpload 放在 Gradle Wrapper 任务上时发生了这个错误。
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:appDistributionUploadAngelDebug'.
> Could not find credentials. To authenticate, you have a few options:
1. Set the `serviceCredentialsFile` property in your gradle plugin
2. Set a refresh token with the FIREBASE_TOKEN environment variable
3. Log in with the Firebase CLI
4. Set service credentials with the GOOGLE_APPLICATION_CREDENTIALS environment variable
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2m 57s
211 actionable tasks: 209 executed, 2 up-to-date
Build step 'Invoke Gradle script' changed build result to FAILURE
Build step 'Invoke Gradle script' marked build as failure
Archiving artifacts
Finished: FAILURE
有没有办法可以在我的 Gradle Wrapper 上添加 GOOGLE_APPLICATION_CREDENTIALS 或如何在我的环境变量上设置服务凭据?谢谢