mibexsoftware / bamboo-plan-dsl-plugin

Configuration as code with a Groovy-based DSL or YAML for Atlassian Bamboo.
https://marketplace.atlassian.com/plugins/ch.mibex.bamboo.plandsl/
Other
40 stars 16 forks source link

Updating branch plan's VCS branch name does not work on existing branches #81

Open sohrab- opened 6 years ago

sohrab- commented 6 years ago

The following snippet works fine when creating a new branch plan:

branch (name: 'something') {
   enabled: true
   vcsBranchName: 'release/something'
}

But once the branch plan is created, changing vcsBranchName to something else, e.g. vcsBranchName: 'release/somethingElse' in subsequent seed task executions is not reflected in Bamboo.

I am not seeing any relevant logs to do with branch plan configurations even with verbose logging turned on; so I am not sure how to investigate this further.

Our SCM in the main plan is configured as linkedRepository(), pointing to a Bitbucket Server repo.

Atlassian Bamboo version 6.1.1 build 60104 - 10 Aug 17 Plan DSL for Bamboo 1.9.11

strakh-alex commented 5 years ago

I have the same issue. Plan, built from DSL contains Bamboo branch referenced to 'uat-prod' branch instead of 'uat_cd'. While I trying to rename the branch name stay the same.

Example of code: branch(name: 'uat-prod') { vcsBranchName 'uat_cd' }