Sentry-java: Document alternative configuration for the Android Gradle Integration (sentry-cli)

Created on 29 Jun 2017  路  4Comments  路  Source: getsentry/sentry-java

Actually the credentials for the upload step are loaded from a sentry.properties file in the project root, and this file, has and auth.token parameter.

My problem is, I have my project setup on CI, and I want this Token to be configured as an Environment Variable. I cannot commit this token to our Git repo, and Gradle Properties File cannot interpolate Environment Variables.

So I would like an alternate configuration method.

Thanks.

All 4 comments

This makes sense, thanks for the report.

You can already do this. Since the file is loaded by sentry-cli all the sentry-cli environment variables are supported. Just leave the file empty and export SENTRY_AUTH_TOKEN instead.

Ah right, well I'll leave this open to add a note about it in the Android docs.

@mitsuhiko @bretthoerner Tried it right now, solved for me!

Thank you!

Was this page helpful?
0 / 5 - 0 ratings