Bamboo Build Notification Email - Customize

For our Bamboo Builds when we have an error the message is not very descriptive.

 

It says no failed tests found even though the build log shows failed tests. It also doesn't show which test failed or the related error.

 

I just wanted to know how we could customize the Build Error Email.

2 answers

0 votes

Unfortunately this is not possible via the Bamboo UI, but can be achieved by Modifying notification templates in principle:

If you want to customise the layout and content of your Bamboo notifications, you can customise the templates for each of the notification types (i.e. HTML email, text email, instant message) and events (e.g. Build Commented). The notification templates are written in Freemarker.

Some content in notifications can also be configured via system properties, such as the number of log lines to include in email notifications that display log information.

warning Changes to notification templates only take effect after a Bamboo restart.

This obviously requires some development efforts, so you might want to be aware of resp. shortcomings in the referenced documentation:

Furthermore, given the information from your failed tests isn't currently reported, it might not be readily available for access from the Freemarker notification templates either.

0 votes

@Shijit Dasgupta - my answer is complete now. Sorry for the iterative approach, but I encountered the odd restriction that "Your post was rejected because it contains blacklisted words", and the resulting post is now word by word identical to the one that I wanted to submit in the first place, alas ...

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Monday in Jira Ops

Jira Ops Early Access Program Update #1: Announcing our next feature and a new integration

Thanks for signing up for Jira Ops! I’m Matt Ryall, leader for the Jira Ops product team at Atlassian. Since this is a brand new product, we’ll be delivering improvements quickly and sharing updates...

491 views 0 9
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you