diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 85ac69b2bb7..24d4950f399 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -518,7 +518,7 @@ jobs: curl -XPOST \ -i \ -H 'Content-Type: application/json' \ - --data "{\"text\":\"<@${pr_handler}> Release \`$(release_tag)\` is ready for testing. (, , )\"}" \ + --data "{\"text\":\"<@${pr_handler}> Release \`$(release_tag)\` is ready for testing. See . (, , )\"}" \ $(Slack.team-daml) - template: ci/tell-slack-failed.yml parameters: @@ -799,7 +799,19 @@ jobs: # the PR. Hence the `|| echo ""`. PR_HANDLER=$(head -1 release/rotation | awk '{print $1}') - tell_slack "<@${PR_HANDLER}> for release PR has completed with status $(status). See for what to do next." + case "$(status)" in + Succeeded*) + msg="has succeeded! Next step is to approve & merge." + ;; + Failed*) + msg="has failed. Please investigate." + ;; + *) + # Should not be reached, but who knows? + msg="has completed with status $(status). See for what to do next." + ;; + esac + tell_slack "<@${PR_HANDLER}> for release PR $msg" - job: notify_user condition: and(eq(variables['Build.Reason'], 'PullRequest'), not(canceled()))