Bamboo: copying and modifying email template file does not take effect

Hi,

We're running Bamboo 4.1.1 build 3102.
I've followed what's in the online docs "Modifying notification templates", by copying either only the one file I'm interested in or all the files from:

C:\Program Files\Bamboo\webapp\WEB-INF\classes\notification-templates\

to

C:\bamboo-home\templates\notification-templates\

Specifically modified the file BuildCompletedHtmlEmail.ftl with text that I know it will show up, but it does not work. In my case, the build is successful, and it sends HTML email that contains specifically the following for example: "1234 tests in total." So I added "SSSSS" to the end of the string in line 17 of BuildCompletedHtmlEmail.ftl:

<strong>${testSummary.successfulTestCaseCount}</strong> tests in totalSSSSS.

but no matter what when the new email comes in, it still says "1234 tests in total."

I did verify that the bamboo home directory is set to C:\bamboo-home\ and I've added the notification of "All Builds Completed", "Notify After 10 Consecutive Failures", "Notify On All Build Errors". The last two can't be it as the build is successful.

I also tried modifying "ChainCompletedHtmlEmail.ftl" but the same thing, no changes to emails. According to the docs, you don't have to restart the service...

Atlassian, please help!

Thanks

1 answer

1 accepted

Hi,

We have introduced some template caching between now and writing those docs. I haven't tested it, but its possible that you do need to restart now. Would you mind performing a restart and letting me know whether it works or not?

Thanks,

Brydie

Yes, that did it! Could you make sure to update the docs? I wasted too much time on this...

thanks

Sorry about that. I've raised an issue to get the problem looked at.

https://jira.atlassian.com/browse/BAM-11897

Thanks for validating it for me.

Cheers,

Brydie

Suggest an answer

Log in or Join to answer
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,069 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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot