Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

bitbucketpipelines/slack-notify:0.3.7 fails on status 200

Edited

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

 

1 answer

0 votes

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.

Like Galyna Zholtkevych likes this

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

@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

Like # people like this

Hey Galyna, do you have an estimation of when this fix might be released?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

329 views 3 14
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you