fix: sentry release
Pyxis/fieldnotes/pipeline/head This commit has test failures Details

This commit is contained in:
wpetit 2021-07-17 15:00:15 +02:00
parent b6208b8d06
commit 6f5021e626
2 changed files with 11 additions and 8 deletions

11
Jenkinsfile vendored
View File

@ -69,10 +69,13 @@ pipeline {
sed -i "s|^ENVIRONMENT=.*|ENVIRONMENT=production|" .env
# Create Sentry release properties
cp android/sentry.properties.dist android/sentry-release.properties
sed -i "s|^defaults.org=.*|defaults.org=${SENTRY_ORG}|" android/sentry-release.properties
sed -i "s|^defaults.project=.*|defaults.project=${SENTRY_PROJECT}|" android/sentry-release.properties
sed -i "s|^auth.token=.*|auth.token=${SENTRY_AUTH_TOKEN}|" android/sentry-release.properties
SENTRY_PROPERTIES=android/sentry-release.properties
cp -f android/sentry.properties.dist ${SENTRY_PROPERTIES}
sed -i "s|^defaults.org=.*|defaults.org=${SENTRY_ORG}|" ${SENTRY_PROPERTIES}
sed -i "s|^defaults.project=.*|defaults.project=${SENTRY_PROJECT}|" ${SENTRY_PROPERTIES}
sed -i "s|^auth.token=.*|auth.token=${SENTRY_AUTH_TOKEN}|" ${SENTRY_PROPERTIES}
cat android/sentry-release.properties
# Create new keystore and configure gradle to use it
# See containers/ci/configure-gradle-keystore.sh

View File

@ -77,16 +77,16 @@ project.ext.react = [
enableHermes: true
]
apply from: "../../node_modules/react-native/react.gradle"
apply from: "../../node_modules/@sentry/react-native/sentry.gradle"
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
/* Sentry configuration */
project.ext.sentryCli = [
logLevel: "debug",
flavorAware: true
]
apply from: "../../node_modules/react-native/react.gradle"
apply from: "../../node_modules/@sentry/react-native/sentry.gradle"
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
/**
* Set this to true to create two separate APKs instead of one:
* - An APK that only works on ARM devices