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

Multibranch push not working

Aswin Satish October 16, 2018

Hi all,

 

I've been working to copy some code automatically from bitbucket to server, when a push is triggered to either master or branch.

Scenario: I've 2 branches - master and production. So, when a push occurs at master the entire repo code will be copied to server via Codedeply at a location specified by appspec.yml. Similarly, any changes at production branch causes the code in this particular branch to be copied  over to another location via a different appspec.yml at this branch.

Issue: After a push to one branch, contents get copied over to the server, but the contents of directory specified for other branch gets cleared off. That is, code in master branch gets copied to the specified directory, however at the same time the directory specified for production branch will be deleted.

Not sure why this happens. I'm using same bitbucket-pipeline file for both the branches with branches specifed as master and production. Deploy to codedeploy is via environment variables described in bitbucket

Any help is much appreciated. Let me know if any further details are required.

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events