It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to version a build?

Senthil R Mar 03, 2014

I have 2 questions,

  1. When a build is started, I would like to capture the date and time in certain format, create version number and pass it to my build script, For example, if a build is started Jan-1-2014 12:05:05, I would like my version to be "2.0.0.20140101_120505", how can I do that?
  2. In Bamboo dashboard, how can I diplay this instead of just build number?

1 answer

0 votes
Jason Monsorno Mar 03, 2014
  1. ${bamboo.buildTimeStamp}
  2. Not without changing the javascript
Senthil R Mar 04, 2014

I did take a look at that variable, format is different thatn what I am looking for. Any idea how to change the format?

Jason Monsorno Mar 04, 2014

The computer's globalization format could be set, not sure if Bamboo uses that or not. You said you wanted to pass it into your build script so I figured you could reformat it.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Opsgenie

Handling Opsgenie Alerts

Hi everyone, welcome to the kb articles for Opsgenie FAQs. I'm one of the Technical Support Engineers for Opsgenie who will be providing weekly posts on FAQs from customers.   All alerts are ...

66 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you