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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Agreed. Examples are certainly lacking in use of variables.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.