Copado Branch Management Application: How Does It Work?

Updated 6 days ago by Copado Solutions

The deployment flow (with Git repository and branch information) is set up within Copado. A Copado webhook is also added to your Git repository. Every time a commit is received by the Git repository, the commit information is sent to Copado where the following will occur:

  1. The Git repository is retrieved and the branch divergence will be calculated (commits ahead and behind).
  2. A local merge (ahead) or pull (behind) of the diverged commits will be attempted between a branch (e.g. Dev2) and its parent branch (in this case Staging).
  3. If the merge succeeds, a validation-only deployment of the merged content is created (e.g. validation deployment into the Dev1 org).If it fails, the error information will be displayed.
  4. You will be able to see if the validation deployment succeeded or failed as well as the errors if it failed.
  5. The differences between the branches of the files affected will be available for comparison.
  6. If the validation deployment was successful, you can choose to perform a sync (e.g. Staging content into Dev1). If you click on the Sync button, the deployment is executed (Staging content into the Dev1 org), and only if it is successful, the Staging commit is merged into the destination branch (e.g. Dev1) and the changes are pushed to your Git repository.
Copado Branch Management will continuously check for changes and perform a validation deployment of the merged changes.

Best Practices Tip

Always sync back to lower environments before pushing to production, or once the deployment has been done to production. No new user story feature branch can be created until its environment has been synced. This is to prevent the feature branch from inheriting the latest changes to production into the feature and orgs branch without having actually synced them.


How did we do?