Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Is there a way to check out a specific branch in "Source Code Checkout" of deployment tasks?


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?

1 answer

0 votes
Victor Debone
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 10, 2019 • edited

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? :)


Hi @Victor Debone

I actually went a different route. I added script tasks to have it do `git checkout <branch>` and that seems to work.

Thank you though!

Like Victor Debone likes this

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.

Like # people like this

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events