Reputation: 91
I'm trying to generate a random release-name by using the Bamboo Server's deployment project / plan.
I was able to generate a dynamic version number by using variables (defined the bamboo.release_number, bamboo.release_major, etc.)
resulting a release name of "StaticName-1.2"
I would like to define on each release that the StaticName will be generated randomly, based on predefined array or list. The wanted result is by giving it the list of: ["NameA", "NameB", "NameC"] Bamboo will generate something else on every run, like:
Any ideas how can I preform such thing?
Upvotes: 1
Views: 415
Reputation: 116
Generally, you can add a build task to write the release name to a file in the project in the format of KEY=VALUE. You would then add an inject variables task to read that file, adding the variables to the plan. You can then reference that variable when creating the release just as you did for the build number.
Upvotes: 3