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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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 Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,323 views 0 3
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