I need some guide implementing the bitbucket data send event. From the documentation it should be added to the script part, but I have few questions. From the implementation these are the properties:
ITLE: '<string>' # TEXT: '<string>' # Optional. # PRIORITY: '<string>' # Optional. # ALERT_TYPE: '<string>' # Optional. # TAGS: '<string>' # Optional. # DEBUG: '<boolean>' # Optional. # EU_ENDPOINT: '<boolean>' # Optional.
So how can datadog notify if a build fails?
Hi @Zuberu Abdulraman ,
Thank you for your question!
- <some build logic>
- if [[ $BITBUCKET_EXIT_CODE -ne 0 ]]; then ALERT_TYPE="error" ; fi
- pipe: atlassian/datadog-send-event:1.1.2
Thanks for the information. I really appreciate that :) One more thing about TAGS, I was trying to use the ALERT TYPE as TAG but I was not successful. How can that be done?
So that incase its failure or success the alert will have tags.e.g of alert will be:
This is the title #status:error/success #branch:master #repository:aws #workspace:xxxxx%%% \n Alert sent from [Pipeline #60](https://bitbucket.org/xxxåxxxx/aws/addon/pipelines/home#!/results/60) \n %%%
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 ...
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