joshuapoehls
joshuapoehls

Reputation: 35267

How do you update the Bamboo build number from the build script?

When I run my build script from TeamCity I can output ##teamcity[buildNumber '<new build number>'] and TeamCity will update the build number accordingly.

How can I do this in Bamboo?

Upvotes: 0

Views: 4250

Answers (1)

Marty
Marty

Reputation: 7522

You can't - at least not in a supported way. Even ignoring the build script portion of your question, Bamboo simply doesn't support editing of build numbers like TeamCity does.

Here's the feature request

If you really want to edit the build number, you may be able to do it manually (at your own risk!) with a few SQL queries. This post from Atlassian's forums should help you get started.

Upvotes: 2

Related Questions