Continuous Integration with Bamboo - reference

Plan => Build => Deployment

Plan 
 Associate a repository, Write a trigger 


SVN:

Dev server:
  1. Points to 'develop' branch
  2. As soon as developer commit the code in 'develop' branch it is automatically deployed in Dev server.
  3. svn switch . (or) svn up
    1. svn up -> has to be run by a cron in few seconds interval
    2. svn switch ? <TODO>
Test server:
  1. Points to a <tag>
  2. A <branch> is created from Dev branch at certain point when the stories are ready for testing.
  3. A <tag> is created from <branch> and deployed in Test server
  4. svn switch <tag>
  5. Testing happens in Test server
  6. When bugs are found, they are fixed in <branch>. 
  7. <tag+1> is created from <branch> when it is ready for deployment in Test server
  8. The cycle continues from steps 3 to 7

UAT server:
  1. Points to a <tag>
  2. When a QA certified <tag> is available from Test server it is deployed in UAT
  3. svn switch <tag> 
  4. Testing happens in UAT server
  5. The bugs are fixed in <branch> 
  6. The testing and deployment cycle continues in Test server
  7. The cycle continues from 2 to 6
Production Server:
  1. Points to a <tag>
  2. When a QA certified <tag> is available from UAT server it is deployed in PROD
  3. svn switch <tag> 
  4. Testing happens in PROD server
  5. The bugs are fixed in <branch> 
  6. The testing and deployment cycle continues in Test &UAT server
  7. The cycle continues from 2 to 6
Practical Issues:
1. Say Production server has <tag1.1.0> and it has got a bug
2. The Test server has <tag1.1.1> (one version ahead). So, we cant fix our issue in <tag1.1.1> and deploy in UAT & Prod. In such cases create a <hotfix_branch> from production <tag>. Fix those issues and deploy in UAT & PROD. Then merge the <hotfix_branch> with 'develop' and Test branch.

GIT:

Dev server:
git checkout <commitid>?
<TODO>
Test server:
git checkout <commitid>?
<TODO>
UAT server:
git checkout <commitid>?
<TODO>
Prod server:
git checkout <commitid>?
<TODO>



Comments

Popular posts from this blog

Programatically create layout builder section in Drupal

Code quality analysis of Drupal. Can I use Sonar?

Set up Drupal7 to Drupal8 migration in simple steps (using Drush)