GIT Tag

Overview

GIT tags are a simple and effective way to keep track of your code's different versions and the important quality of Git's version control. GIT Tag operation allows giving meaningful names to a specific version in the repository. Suppose Timon and Rumba decide to tag their project code so that they can later access it easily.

Creating a new Git Tag

A. Create GIT Tag in your Version Control Branch

  1. Log in to your AutoRABIT account.

  2. Select your Version Control Repository under Repository List.

  3. Go to the Tags tab and click on the Create button.

  1. In the Create Tag screen, select the VC branch from the drop-down. The branch that was registered with AutoRABIT for your Version Control repository will be populated here.

Get Latest HEAD points out the last commit in the current checkout branch.

  1. Give a name for the tag and any additional info in the Message section. Click Create.

  2. A newly created tag will be displayed under the Tags section.

B. Create GIT Tag during Merge

Once the merge process is completed and pushed to the remote branch, AutoRABIT will create the GIT tag based on your configuration. To do so,

  1. From the top navigation pane, navigate to Create New > New EZ-Merge.

  2. On the New Merge screen, select your GIT Version Control Repository, Base Branch, and the Target Branch.

  1. Scroll a bit below and you can see the option: Create Git Tag. Select this checkbox.

  2. Give a name for the tag and any additional info in the message box.

  3. Fill in the remaining fields as per your convenience and click on Merge/ Validate & Merge. Once the merge process is completed, the GIT tag gets auto-created.

C. Create GIT Tag via CI Job

AutoRABIT will create the GIT tag while CI Job is triggered and is successfully build.

  1. Go to the New CI Job screen.

  1. The new CI Job screen gives the job a descriptive name in the CI Job Name field.

  2. Under Build, select your Version Control Systems, your Repository, and the Branch.

  3. Go to the Deploy section.

  4. Under the Deploy section, select your Destination org.

  5. Select the checkbox: On Successful Deployment.

  6. Now, select the checkbox: Run Merge Process. This allows running the merge operation automatically once the build is triggered successfully in CI Job. For merge to run, you need to select the Version Control type, source and destination branch, merge type, and how you like to resolve the merge conflicts that may arise during the merge process.

  7. Next, select the 'Create GIT Tag' checkbox and enter any tag message for your reference.

  8. Fill in other details as per your wish and click Save. When the build is triggered successfully and the merge process is run, a tag will be created based on the Project_Buildnumber.

Deployment via GIT Tag

  1. In the New Deployment screen, choose Tag as a dropdown in the Deployment From field.

  2. Select the Version Control Repository and the Tag from the drop-down.

  3. Choose the Destination org for your deployment.

  4. The Deployment Type is auto-selected to Full Deployment by default. Full Deployment transfers all objects in the source org to the destination org.

  5. Once you are done with the selection, click on Deploy.

  1. The remaining steps are similar to other deployments methods, do refer to the article: Create and Deploy Changes

Last updated