Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,298,441
Community Members
 
Community Events
165
Community Groups

How to get the build number into a jar?

I'm new to Bamboo and I'm asked to make sure the build number is displayed in the about dialog of a web application. The server is .java and I want the build number to be present in a resource file in the generated fat jar.

How can I do this (or is there a better practice)?

1 answer

0 votes

Hello @Peter Laman

In your build, use the environment variable bamboo.buildNumber or (bamboo_buildNumber if running from a Shell script).

More information:

Eduardo Alvarenga
Atlassian Support APAC

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo Data Center on Kubernetes

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...

961 views 3 8
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