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
4,367,576
Community Members
 
Community Events
168
Community Groups

how to update branch to master in job?

Hello.

Please help. Use bamboo 5.x I have to create job for  update branch last version of origin/master. How do it?

I tried to use sub directory & script with command line (git command). Example of my script

git fetch origin master
git checkout branch1
git merge origin/master
git push

1 answer

0 votes

Hi @Tester Bankiru,

Bamboo has a repository cache to run and update builds faster. For this reason, if you need to do this using a script, you will have to perform some adjustments in the local source repository used for the build as described in the following documents:

I hope it helps.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events