diff --git a/Jenkins/Jenkinsfile b/Jenkins/Jenkinsfile index a0306b018..93c3b5c37 100644 --- a/Jenkins/Jenkinsfile +++ b/Jenkins/Jenkinsfile @@ -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 { diff --git a/Jenkins/Jenkinsfile-Release b/Jenkins/Jenkinsfile-Release index 5957bf81f..57c79d117 100644 --- a/Jenkins/Jenkinsfile-Release +++ b/Jenkins/Jenkinsfile-Release @@ -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 { diff --git a/Jenkins/build-simulator.sh b/Jenkins/build-simulator.sh index 1cbd2fc3d..1edcadb7e 100755 --- a/Jenkins/build-simulator.sh +++ b/Jenkins/build-simulator.sh @@ -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} $@ } diff --git a/Jenkins/docker-compose.yml b/Jenkins/docker-compose.yml index 63467bcde..15e041059 100644 --- a/Jenkins/docker-compose.yml +++ b/Jenkins/docker-compose.yml @@ -17,6 +17,7 @@ services: - GIT_COMMIT - GIT_BRANCH - GIT_TAG + - SENTRY_DSN - UNITY_USERNAME - UNITY_PASSWORD - UNITY_SERIAL