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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.