Deploying Branch Plan in Bamboo - How to define arbitrary release version for automatic deployments

StackOverflow https://stackoverflow.com/questions/20760542

  •  21-09-2022
  •  | 
  •  

Domanda

We are using Bamboo 5.2 for continuous integration.

Source plan has several additional branches. Each branch is triggered by commits in git repo.

Deployment project is configured with separate environment for each branch, deployment happens automatically on successful build of source plan.

When default branch is deployed automatically - new release is created correctly with naming schema defined in "Release versioning" (we use source plan variables to create release version).

The problem appears when any other branch is deployed automatically - we get new release with default version. As bamboo states: "Releases from branches will default to using the branch name suffixed with the build number of the build result."

Is there any possibility to override this approach? Target is to set release version from plan's variables (no matter default plan variables or branch plan variables), reason is that we have single plan with several stable branches configured.

È stato utile?

Soluzione

In Bamboo 6.1.0 Atlassian has solved the problem! Please see https://jira.atlassian.com/browse/BAM-14422. Since now on naming for releases created on non-default branches follow defined naming rules.

Altri suggerimenti

There is an option to select which branch to use. Under Triggers:

  • Branch to trigger this deployment
  • Use the main plan branch
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top