The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I have a build plan that produces a zip file as an artifact. Right now, it is called build.zip. I was wondering if it possible to name it based off the Date or Rev of the build such as build_01_19_18_rev12345.zip. I wanted to try to help avoid people mixing up builds, since currently their download folder will just have a series of generic build.zip files.
You can achieve this by facilitating Bamboo variables in the build step that produces the artifact, in particular you likely want to use ${bamboo.buildTimeStamp} and/or ${bambooBuildNumber}.
The specifics depend on the build step you are using to produce the artifact, but all Bamboo tasks including the Script task should support the required variable substitution at build time just fine - the examples for Maven ant Ant illustrate the general concept.
Thanks for the response. Is there any way to set the value of a bamboo variable from within a script? Or do some string manipulation of other bamboo variables? Example, could I just get the date without the time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, but only with an indirection - you can manipulate the variable values in a script, write them to a file, and then inject them again as new variables by means of one of the following tasks:
You can then refer to the newly injected variables from subsequent tasks.
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.
Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.