Peter L
Peter L

Reputation: 51

Use pom version to create git tag in Bamboo

The customer for the current project I'm working on uses Bamboo for building. I'm new to Bamboo. I'm creating a build plan for a Java/maven project. I want the build to add a tag to the git branch, which combines the version number from pom.xml (e.g. 1.0.1) and the Bamboo build numbe (e.g 53). The example would create a tag 1.0.1.53.

The build number is easy, it just the ${bamboo.buildNumber} variable, but how can I construct the tag using the pom.xml?

Upvotes: 0

Views: 473

Answers (1)

Istvan
Istvan

Reputation: 232

You could try to parse pom version and use git to tag the current revision in a script task.

Upvotes: 1

Related Questions