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

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

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 July 8, 2016

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events