Skip to content

Commit

Permalink
ci: enable sentry for releases
Browse files Browse the repository at this point in the history
referenced issue: #21706

Signed-off-by: markoburcul <marko@status.im>
  • Loading branch information
markoburcul committed Dec 5, 2024
1 parent 7b85bfb commit 058f244
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ci/Jenkinsfile.android
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env groovy
library 'status-jenkins-lib@v1.9.13'
library 'status-jenkins-lib@v1.9.15'

/* Options section can't access functions in objects. */
def isPRBuild = utils.isPRBuild()
Expand Down Expand Up @@ -41,6 +41,7 @@ pipeline {
BUILD_ENV = 'prod'
NIX_CONF_DIR = "${env.WORKSPACE}/nix"
FASTLANE_DISABLE_COLORS = 1
SENTRY_PRODUCTION = "${utils.isReleaseBuild() ? 'true' : 'false'}"
}

stages {
Expand Down
3 changes: 2 additions & 1 deletion ci/Jenkinsfile.ios
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env groovy
library 'status-jenkins-lib@v1.9.13'
library 'status-jenkins-lib@v1.9.15'

/* Options section can't access functions in objects. */
def isPRBuild = utils.isPRBuild()
Expand Down Expand Up @@ -41,6 +41,7 @@ pipeline {
NIX_CONF_DIR = "${env.WORKSPACE}/nix"
FASTLANE_DISABLE_COLORS = 1
BUNDLE_PATH = "${HOME}/.bundle"
SENTRY_PRODUCTION = "${utils.isReleaseBuild() ? 'true' : 'false'}"
}

stages {
Expand Down
4 changes: 4 additions & 0 deletions nix/mobile/android/build.nix
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ in stdenv.mkDerivation rec {
export ANDROID_NDK_ROOT="${androidPkgs.ndk}"
export STATUS_NIX_MAVEN_REPO="${deps.gradle}"
# Sentry vars relevant for release
export SENTRY_CONTEXT_NAME="status-mobile"
export SENTRY_CONTEXT_VERSION=$(cat VERSION)
'';

unpackPhase = ''
Expand Down

0 comments on commit 058f244

Please sign in to comment.