The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

how can i get notified on failure?

movstox
July 2, 2016

would like to receive an email or webhook on build failure / success

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Ramkumar K R
July 2, 2016

I would suggest you to use curl and store your keys/secrets as secret variables in pipelines.

I use curl to send notifications to slack.

My code is something like this -

curl -X POST -H 'Content-type: application/json' \
--data '{"text":"Build Successful"}' \
 $SLACK_URL

Link to slack documentation  - https://api.slack.com/incoming-webhooks#sending_messages

Alex Soto
Contributor
July 8, 2016

In addition to the above, you would need to wrap your build steps to catch the failure in the first place

TAGS
AUG Leaders

Atlassian Community Events