-
Type:
Suggestion
-
Resolution: Unresolved
-
None
-
Component/s: Bamboo Specs
-
None
-
0
-
1
We switched one project in Bamboo to Bamboo YAML Specs.
One of the project's plans uses two repositories and we want to be able to modify the branch to be checked out for the non-default repository.
Previously (without "Specs branches") it was possible in the Repositories tab of the "Plan branch configuration".
With Specs branches this is no longer possible.
So either the selection of other branches should be possible even for Specs branches or plan variables should be evaluated before the plan is executed. With the latter option one could run a customized build and modify the plan varialbe that is used as anchor in the repository configuration of the second branch.
Extract from bamboo.yaml
--------------------------
variables:
some_branch: &some-variable-defined-branch develop
repositories:
- bamboospec_tryout:
scope: global
- Other_Repo:
type: bitbucket-server
server: our_bitbucket_server
project: project
branch: *some-variable-defined-branch
slug: repo
clone-url: ssh://git@blahBlubb.com:7999/project/repo.git
public-key: ssh-rsa XXX http://dsfa.com:8085
private-key: secret@something
command-timeout-minutes: '180'
use-shallow-clones: 'false'
cache-on-agents: 'false'
submodules: 'false'
verbose-logs: 'true'
fetch-all: 'true'
lfs: 'true'
viewer: com.atlassian.bamboo.plugins.stash.atlassian-bamboo-plugin-stash:bbServerViewer
--------------------------