Explain a good branching structural strategy that you have used for your project code development.

Devops Devops in Devops . 3 years ago

  1   0   0   0   0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

A good BRANCHING strategy is the one that adapts to your PROJECT and business needs. Every organization has a set of its own defined SDLC processes.
An example branching STRUCTURAL strategy that I have used in my project:

  • Diagram: Branching strategy
  • Clone the project available at github:
  • git clone http://github.com/divyabhushan/structuralStrategy.git structuralStrategy

 Guidelines: 

  • “master-prod”: Accepts merges/code/commits only from the “prod” branch
  • “prod”: Perform only a merge --squash from “release” branch.
  • Merge only when approved by “QA”
  • Tag every merge in the format: v1.0, v1.1 … v1.*
  • “release”: merge from the branches “dev”, “uat”, “QA”.
  • Every release commit/project code version has to be approved by “QA”.
  • Tag every merge in the format: r1.0, r1.1 … r1.*
  • “dev” and “uat” NEVER merge with each other.
  • “hotfix” branch commits are shared among any feature branches such as “dev” and “uat”
  • “feature” branch is private to “dev” alone and is dropped after merging.
  • CI/CD DevOps tools can be used to automate the above development and deployment to master_prod.
  • Every project release: r1.0 .. r1.x on the ‘release’ branch can be tracked by Jenkins CI TOOL and will trigger a build, on a successful build continuous testing suite 
  • cases will be triggered on the code. If the test passes the release will be delivered to ‘prod’ branch.
  • Every source code delivered to ‘prod’ branch will be automatically deployed to ‘master_prod’ branch.

All the steps will be mentioned in a Jenkins file on a branch ‘name’ condition.

Posted on 31 May 2022, this text provides information on Devops related to Devops in Devops. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Tuteehub forum answer Answers

Post Answer

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.