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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,560,333
Community Members
 
Community Events
185
Community Groups

Referencing Bamboo variables

Edited

I am new to the Bamboo and I am trying to add a bamboo variable value to the email notification that Bamboo sends out when a build is successful or failed.  I have a variable called "branch_name" that I can refer in the bamboo shell scripts as ${bamboo.branch_name}.

But I don't understand how I can add this to the email notification ftl file "notificationCommonsHtml.ftl". Can any one please explain how to achieve this?

I read the following post: https://community.atlassian.com/t5/Bamboo-questions/Customize-Bamboo-email-notification/qaq-p/252956

But I don't get how to map the bamboo variables to the buildSummary or any other variables in the ftl file.

 

Thanks in advance.

1 answer

1 accepted

0 votes
Answer accepted
Steffen Opel _Utoolity_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Dec 08, 2018

I'm afraid Bamboo variables are not (officially) exposed to the Freemarker notification templates - please watch and vote for the following issue to raise Atlassian's awareness of this obvious feature gap:

That being said, please note that the last commenter asks for "a list of variables that are available to the notification templates" because his experiences seems to be that "Some work, some don't. And it merely seems the ones that work are accidental." - I'm not aware of any myself though, maybe you can ask him for clarification and are lucky that the ones you need are available (I wouldn't put my hopes too high here, though, it's pretty unlikely given the lack of official support).

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events