Add artifacts to Bamboo notifications?

I'd like to add some log files that are currently artifacts in a build plan to either the plan or job level emails. We are behind a VPN and it would be nice to have this non-sensitive data in the notification so it is not necessary to log in to see if we need to fix something in a build. Is this possible?

  1. If so, can anyone suggest how to add artifacts as attachments – assuming it's possible? Details needed would be whether it's plan/job, which template file, where in the file to modify, etc.
  2. Regarding modifying emails in general, is there any other documentation on customizing emails, such as what the include structure is and which emails are used for what notifications?

I've seen this page: and a post about trying to modify emails: but have not been able to figure out exactly what files and where to modify them and put the pieces together regarding 1) which file to modify for which emails (considering all the includes and macros as well as main template files), 2) where to modify the file and 3) what data is available in each context, which seems to be documented only in the Bamboo Java API. I can probably work through #3 if I have a better idea of #1 and #2.



2 answers

0 vote
Timothy Chin Community Champion May 28, 2015

With Bamboo itself, no. But if you think out of the box, something like this can help (

Thanks, Timothy. We do have an existing offline (non-Bamboo) email that contains the log file attachments, because our application is a preexisting command line test app that I coded to email the developers. Now we are trying to centralize our test reporting in Bamboo, so I modified the test app to output a .trx file, then trigger Bamboo using the web API to read it and email the results.

An alternative would be to include the stack trace from the MSTest .trx file in the email. I am speaking of the trace that appears on the Bamboo website on the build results page, on the "Tests" tab, below a failed test. We are using the "Failed Jobs And First Successful" and "Failed Builds And First Successful" emails, which have the failed test list but not the stack trace.

I think I have traced it to notificationCommonsHtml.ftl/macro: @displayTest), now I need to find out whether there is actually a failed test object available for those emails with a stacktrace (trying to research this in the java docs), and then what code to put where (learn/reverse engineer the Freemarker/Java variable syntax).


Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Renan Battaglin
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,485 views 0 5
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