I am doing deployments using Ansible tasks, which are called in a deployment task on Bamboo as a script. Before this, the Ansible repository needs to be checked out. I'm doing this using a "Source Code Checkout" task to bring it to the current directory. It seems that it only checks out the master branch. I have a deployment plan that needs to use a different branch of this repository. Is there any way to do this?
Hello @Jake Huneau welcome to the Community 🎉
What you are missing is the branch option on the repository side. When you are configuring the "Source Code Checkout" you are able to select a repository, so what you need to do is to create a new repository that is configured to the correct branch.
Did it help? :)
That's what we did, too. Just make sure that your "linked repo" configuration has the "Fetch whole repository" option checked in the Advanced tab. We had issues until we realized that part wasn't checked.
It'd be nice if Bamboo offered a "override default branch" option in the "Source Code Checkout" field in Deployments. Until then, `git checkout <branch>` is the way to do it, as far as we've been able to tell.
Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events