Merging From RushDev to Main Dev Branch
Credits
The following guide was written in collaboration with Ruben Mercado
SourceTree
Committing Changes
After having all changes completed in local dev branch (PSPayrollRushDev), open SourceTree,
Stage the files that need to be pushed
Verify the changes on the right side:
When providing the commit message, make sure to mention the Jira ticket and select the "Push changes immediately to origin/<YOUR REMOTE BRANCH NAME>"
After committing, click on Log / History tab:
Click on the most recent commit and you will notice that the file(s) you committed show separately with respect to other commits:
Bamboo
Updating the Release Number
- Next, go to Bamboo and login
- Click on Deploy menu and select "All Deployment Projects"
- Scroll down to your project and for the deployment environment, click on the pencil icon:
- Click on Release Versioning tab
If releasing to TEST, make sure to amend/edit the "rc" (release candidate) number and decrement the minor revision number:
BEFORE AFTER - Finally, copy the whole version string (pspayroll_rc02-v3.11, in my case as shown above) and click on "Save" button
Stash
Creating a Tag
- Next, go to Stash and login
- Click on Repositories and select your repository
- Under Source dropdown list, change to your own branch (where you committed your change through SourceTree)
- Click on "Commits" and then select the commit for which you would like to create a tag for
- Click on Tag this commit" on the right
- Provide the tag name that was copied from Bamboo along with a brief description and then click on "Create tag"
- Click on Tags on the left and you can verify the newly created tag
Merge from your branch to TEST branch
- Click on "Create pull request" on the left
Select the appropriate branch FROM and TO---
If releasing to TEST
BEFORE AFTER - Verify the commits... these are the changes that will be merging in the TEST environment
- Click on Continue
- Provide a description (optional) and then click on "Create"
- On the resulting page, click on "Merge" button
Finally, you will get a modal confirmation... click on Merge to complete the process
CAUTION
DO NOT Select "Delete..." checkbox/option... otherwise, you will lose your dev (own) branch and will have to re-create!
You can now go back to Bamboo and verify that it built and deployed correctly...
Build:
Deploy:
Change Log
Amend the Change Log to reflect the updates