Is it possible to dynamically add a file that has build Number and commit message, into the war that will be built?
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.
-Rich
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 test.properties 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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.