Skip to content

Commit

Permalink
Jenkins: Provide SENTRY_DSN build-time environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
eagafonovlge committed Mar 17, 2021
1 parent 7c81dac commit 0961c10
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions Jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ pipeline {
GIT_BRANCH = "${sh(script:"echo ${env.BRANCH_NAME} | sed 's#^refs/heads/##g' | tr / - | tr [:upper:] [:lower:]", returnStdout: true).trim()}"
OUTPUT_SUFFIX = "${GIT_BRANCH}-${JENKINS_BUILD_ID}"
CODE_SIGNING_FILE = "/dev/urandom"
SENTRY_DSN = credentials("SIMULATOR_SENTRY_DSN")
}

stages {
Expand Down
1 change: 1 addition & 0 deletions Jenkins/Jenkinsfile-Release
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ pipeline {
OUTPUT_SUFFIX = "${sh(script:"echo ${env.GIT_TAG} | sed 's#^refs/tags/##g' | tr / - | tr [:upper:] [:lower:]", returnStdout: true).trim()}"
CODE_SIGNING_FILE = "/dev/urandom"
FORCE_REBUILD = "${FORCE_REBUILD}"
SENTRY_DSN = credentials("SIMULATOR_SENTRY_DSN_RELEASE")
}

stages {
Expand Down
6 changes: 6 additions & 0 deletions Jenkins/build-simulator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ else
NPCS=
fi

if [ -n ${SENTRY_DSN} ]; then
echo "SENTRY_DSN=${SENTRY_DSN}"
else
echo "Warning: SENTRY_DSN is not set"
fi

function check_unity_log {
${CHECK_UNITY_LOG} $@
}
Expand Down
1 change: 1 addition & 0 deletions Jenkins/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ services:
- GIT_COMMIT
- GIT_BRANCH
- GIT_TAG
- SENTRY_DSN
- UNITY_USERNAME
- UNITY_PASSWORD
- UNITY_SERIAL
Expand Down

0 comments on commit 0961c10

Please sign in to comment.