Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

This section describes how to setup Datical project when you are using multiple branches in your development. You have developers working on multiple releases at the same time. You may have a branch called "release/1.0". You may also have another parallel branch called "release/2.0". 

Step-by-step guide

You will need to create multiple pipelines in your Datical project. For example, you will call them "pipeline1" and "pipeline2".

  1. Each pipeline will have it's own REF database. You may also have dedicated DEV and QA databases for each pipelne. For example:
    1. "pipeline1" will look like this: REF1 → DEV1 → QA1 → STAGE → PROD 
    2. "pipeline2" will look like this: REF2 → DEV2 → QA2 → STAGE → PROD
    3. Notice that STAGE and PROD is where pipelines merge.
  2. You will use these labels for your database environments:
    1. DB Environment in Datical projectLabel for the DB EnvironmentNotes
      REF1pipeline1All pipeline1 changes are deployed here
      DEV1pipeline1 AND !abandoned AND !hold
      QA1pipeline1 AND !abandoned AND !hold
      REF2pipeline2All pipeline2 changes are deployed here
      DEV2pipeline2 AND !abandoned AND !hold
      QA2pipeline2 AND !abandoned AND !hold
      STAGEpipeline1 AND !abandoned AND !hold, pipeline2 AND !abandoned AND !holdBoth pipeline1 and pipeline2 changes are deployed here
      PRODpipeline1 AND !abandoned AND !hold, pipeline2 AND !abandoned AND !holdBoth pipeline1 and pipeline2 changes are deployed here
  3. Based on the table above,  When you package your changes, Daticalyour changelog.xml will include changesets for both pipelines, for example:
  4. Your Datical project becomes an artifact that you publish to your artifacts repository such as Artifactory, Nexus, or artifacts repositories native to your deploy tool.
  5. When you deploy your database changes using your deploy tool Datical will automatically will know what changes to deploy to each environment.
    1. For example, with the above mentioned list of changes

 



  • No labels