mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 12:33:40 +00:00
hooks: Remove --project from sentry when not necessary.
This commit is contained in:
committed by
Tim Abbott
parent
08251ac53b
commit
fc40d74cda
@@ -42,9 +42,9 @@ ENVIRONMENT=$(crudini --get /etc/zulip/zulip.conf machine deploy_type || echo "d
|
||||
echo "sentry: Adding deploy of '$ENVIRONMENT' and finalizing release"
|
||||
|
||||
export SENTRY_AUTH_TOKEN
|
||||
sentry-cli releases --org="$SENTRY_ORG" --project="$SENTRY_PROJECT" deploys "$SENTRY_RELEASE" new \
|
||||
sentry-cli releases --org="$SENTRY_ORG" deploys "$SENTRY_RELEASE" new \
|
||||
--env "$ENVIRONMENT" \
|
||||
--started "$(stat -c %Y ./sentry-release)" \
|
||||
--finished "$(date +%s)" \
|
||||
--name "$(hostname --fqdn)"
|
||||
sentry-cli releases --org="$SENTRY_ORG" --project="$SENTRY_PROJECT" finalize "$SENTRY_RELEASE"
|
||||
sentry-cli releases --org="$SENTRY_ORG" finalize "$SENTRY_RELEASE"
|
||||
|
||||
@@ -55,5 +55,5 @@ sentry-cli releases --org="$SENTRY_ORG" --project="$SENTRY_PROJECT" new "$SENTRY
|
||||
|
||||
if [ -n "$MERGE_BASE" ]; then
|
||||
echo "sentry: Setting commit range based on merge-base to upstream of $MERGE_BASE"
|
||||
sudo -u zulip --preserve-env=SENTRY_AUTH_TOKEN sentry-cli releases --org="$SENTRY_ORG" --project="$SENTRY_PROJECT" set-commits "$SENTRY_RELEASE" --commit="zulip/zulip@$MERGE_BASE"
|
||||
sudo -u zulip --preserve-env=SENTRY_AUTH_TOKEN sentry-cli releases --org="$SENTRY_ORG" set-commits "$SENTRY_RELEASE" --commit="zulip/zulip@$MERGE_BASE"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user