how to update branch to master in job?

Tester Bankiru
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 10, 2019

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
Daniel Santos
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 14, 2019

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
AUG Leaders

Atlassian Community Events