hooks: Remove --project from sentry when not necessary.

This commit is contained in:
Alex Vandiver
2023-02-13 19:49:03 +00:00
committed by Tim Abbott
parent 08251ac53b
commit fc40d74cda
2 changed files with 3 additions and 3 deletions

View File

@@ -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" echo "sentry: Adding deploy of '$ENVIRONMENT' and finalizing release"
export SENTRY_AUTH_TOKEN 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" \ --env "$ENVIRONMENT" \
--started "$(stat -c %Y ./sentry-release)" \ --started "$(stat -c %Y ./sentry-release)" \
--finished "$(date +%s)" \ --finished "$(date +%s)" \
--name "$(hostname --fqdn)" --name "$(hostname --fqdn)"
sentry-cli releases --org="$SENTRY_ORG" --project="$SENTRY_PROJECT" finalize "$SENTRY_RELEASE" sentry-cli releases --org="$SENTRY_ORG" finalize "$SENTRY_RELEASE"

View File

@@ -55,5 +55,5 @@ sentry-cli releases --org="$SENTRY_ORG" --project="$SENTRY_PROJECT" new "$SENTRY
if [ -n "$MERGE_BASE" ]; then if [ -n "$MERGE_BASE" ]; then
echo "sentry: Setting commit range based on merge-base to upstream of $MERGE_BASE" 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 fi