Bug 1702257: Prepend Sentry releases with "hg-rev-" r=sheehan

The Sentry CI task versioning scheme should match the
generated Sentry issues.

Differential Revision: https://phabricator.services.mozilla.com/D110422
This commit is contained in:
Mitchell Hentges 2021-03-31 15:52:02 +00:00
parent 2f20de2945
commit 2f478c641c

View File

@ -7,7 +7,7 @@ run() {
revisions=$(curl "$HG_PUSHLOG_URL" | jq -c -r ".pushes[].changesets | @sh" | tr -d \') || return 1
sentry_api_key=$(curl "http://taskcluster/secrets/v1/secret/$SENTRY_SECRET" | jq -r ".secret.sentryToken") || return 1
for revision in $revisions; do
SENTRY_API_KEY=$sentry_api_key SENTRY_ORG=operations sentry-cli --url https://sentry.prod.mozaws.net/ releases --project mach new "$revision" || return 1
SENTRY_API_KEY=$sentry_api_key SENTRY_ORG=operations sentry-cli --url https://sentry.prod.mozaws.net/ releases --project mach new "hg-rev-$revision" || return 1
done
}