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:
200INFO: HTTP Response:
✖ Notification failed.
The responsible code:
if [[ "${response}" = "ok" ]]; then
success "Notification successful."
else
fail "Notification failed."
fi
Hello @Robert Al-Romhein !
Thank you for the reporting, can you tell us for better knowledge, did you meet this problem on earlier versions?
Regards, Galyna
We did not use earlier version as we just started using this pipe. The bug probably occured in earlier versions though, as it seems the response changed from "ok" to "200" as stated by my colleague in the original post.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Galyna, the only other version I've tried was 0.3.6 which I believe has the same code for checking the result of the HTTP request. I've never had a successful deployment since adding this pipe to my pipeline
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Robert Al-Romhein @Erwan d_Orgeville ok, I think the reason might be curl update. But anyway, we'll fix this issue by adapting to any successful response, thanks for reporting
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Galyna, do you have an estimation of when this fix might be released?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.