Skip to content

Commit e16a483

Browse files
authored
fix(gocd): proper releases for ST other than S4S (#4811)
This PR fixes debug files upload on ST environments other than S4S, thus fixing stacktraces. _#skip-changelog_
1 parent 66cd41f commit e16a483

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

gocd/templates/pipelines/processing.libsonnet

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
local utils = import '../libs/utils.libsonnet';
22
local gocdtasks = import 'github.com/getsentry/gocd-jsonnet/libs/gocd-tasks.libsonnet';
33

4+
// List of single tenant regions that use sentry-st organization
5+
local single_tenants = ['disney', 'geico', 'goldmansachs', 'ly', 's4s'];
6+
47
// The purpose of this stage is to let the deployment soak for a while and
58
// detect any issues that might have been introduced.
69
local soak_time(region) =
@@ -114,12 +117,12 @@ local deploy_primary(region) = [
114117
jobs: {
115118
create_sentry_release: {
116119
environment_variables: {
117-
SENTRY_ORG: if region == 's4s' then 'sentry-st' else 'sentry',
118-
SENTRY_PROJECT: if region == 's4s' then 'sentry-for-sentry' else 'relay',
119-
SENTRY_URL: if region == 's4s' then 'https://sentry-st.sentry.io/' else 'https://sentry.my.sentry.io/',
120+
SENTRY_ORG: if std.member(single_tenants, region) then 'sentry-st' else 'sentry',
121+
SENTRY_PROJECT: if std.member(single_tenants, region) then (if region == 's4s' then 'sentry-for-sentry' else region) else 'relay',
122+
SENTRY_URL: if std.member(single_tenants, region) then 'https://sentry-st.sentry.io/' else 'https://sentry.my.sentry.io/',
120123
// Temporary; self-service encrypted secrets aren't implemented yet.
121124
// This should really be rotated to an internal integration token.
122-
SENTRY_AUTH_TOKEN: if region == 's4s' then '{{SECRET:[devinfra-temp][relay_sentry_st_auth_token]}}' else '{{SECRET:[devinfra-temp][relay_sentry_auth_token]}}',
125+
SENTRY_AUTH_TOKEN: if std.member(single_tenants, region) then '{{SECRET:[devinfra-temp][relay_sentry_st_auth_token]}}' else '{{SECRET:[devinfra-temp][relay_sentry_auth_token]}}',
123126
},
124127
timeout: 1200,
125128
elastic_profile_id: 'relay',

0 commit comments

Comments
 (0)