Accessing bamboo.buildnumber

Greetings from a Bamboo newbie. Background: I'm a developer on a project that uses Bamboo to build releases. The administration of Bamboo is handled on another continent.

I'd like to display the Bamboo build number in my .NET application, e.g. 'About' dialiog and event logging. As an example of what I'm seeking, in the past I've created postbuilds scripts that fetch SVN info and insert it into a file used by the application (AssemblyInfo.cs for you .NET types!). Could anyone point me in the right direction? I've seen some web posts about Bamboo providing a REST API; could I go that route? Suggestions and examples welcome.

Thanks very much for your help.

1 answer

1 accepted

This widget could not be displayed.

Hi John,

You can use the default build specific variable: "bamboo.buildNumber". The usage format for all build-specific variables is: ${bamboo.varName}. You can find more information about using global, plan or build specific variables on this page:

https://confluence.atlassian.com/display/BAMBOO/Using+global,+plan+or+build-specific+variables

Hope this helps.

Best,

Sepideh

Hello Sepideh,

Thanks for your prompt reply and suggestions. Before I posted my question I had read the page you pointed to and it seemed to be exactly what I want.

To follow up, do you have a suggestion on how I might run a DOS script to access the bamboo.buildNumber variable? My only interface to Bamboo at the present time is the web interface; it's not running on a system I administrate. I'm just a 'web customer' at the present time.8^) An example would be wonderful. Thanks.

Best regards,

John

Agreed. Examples are certainly lacking in use of variables.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

81 views 1 0
Join discussion

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