Can Bamboo Build Plan create a simple file with build number, commit message and add it to the war/jar file?

Is it possible to dynamically add a file that has build Number and commit message, into the war that will be built?

1 answer

Any of the environment variables that are available can be used in a shell script task to create a file. They can also be used by Ant/Maven/Gradle builds to put them in the jar's manifest.




Thanks Rich for the response.

The required environment variables that can be used are in the deprecated section of bamboo documentation so they can be removed with new release of Bamboo. 

I am trying to add a new file or better edit an existing file that is already in the war and not the jar's manifest file. Eg. Say is one of the file in the repository and when bamboo runs the build plan, I want to add few lines to this file and add it back to the war. (Edit the file and generate war, or generate war and then edit the file in war. Either approach is okay)

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,321 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