Note: All these steps can be done through Visual Studio 2019 Git Flow tabbut I am documenting how they can be done through command line.
1. Clone the repository of the solution that needs to be released to Prod. For example, OPP:
Code Block |
---|
git clone https://transport-canada@dev.azure.com/transport-canada/Dynamics/_git/oppses |
...
2. Checkout the master branch:
Code Block |
---|
git checkout master |
3. Create a release branch with the correct release version
Code Block |
---|
git checkout -b release/<0.103.0> <-- Add correct release version number |
4. Merge changes from develop branch to newly created release branch:
Code Block |
---|
git merge develop |
5. Merge release branch to master branch:
At this point, the release pipelines will be automatically triggered to deploy the solution into Prod.
5. Wait and see if the release pipeline succeeds:
6. Repeat above steps for all solutions that must be released.
SCEM Release with GitFlow
NOTE:: Download GitFlow in Visual studio & take the latest code before starting Release.
Go to GitFlow and start Release
Paste the Branch name & click Create Release
Finish the Release & add tag which is same as Branch name
Make sure all 4 check boxes (shown below) are selected and click OK
Delete branch
Force deletion
Push changes to remote
No back merge
Screen Shot
Go to Pipeline and Release must be in Progress.