I've added a pipeline to send a slack notification once the latest commit has been deployed:
- step: name: "Notify Mrs Wonderful"
script:
- pipe: atlassian/slack-notify:0.3.7
variables:
WEBHOOK_URL: $WEBHOOK_URL
MESSAGE: "Deploy complete"
The Slack Webhook works fine, the person receives the message. However, this pipe expects "ok" but receives "200" instead so it fails:
<span>✖ Notification failed.</span><span>200</span><span>INFO: HTTP Response:<br></span>
The responsible code:
if [[ "${response}" = "ok" ]]; then
success "Notification successful."
else
fail "Notification failed."
fi