Updated on 2024-09-27 GMT+08:00

Branch or Tag Build

In software development and version control systems, branches and tags are different:

  • A branch is an independent development line in the version control system. It allows developers to create a backup from the main or master branch to develop or repair new functions without affecting the stability of the main or master branch. Branch build is usually used for continuous integration (CI). Each time code is pushed to a branch, the CI system automatically pulls the latest code and performs build and test.
  • A tag is for a specific commit, and is usually used to mark a released version. Tag build is usually used for continuous deployment (CD). When the code is marked as a new version, the CD system can automatically build and deploy the code from that tag.

This section describes how to complete branch or tag build.

Prerequisites

The source code job is available.

Branch/Tag

  1. Log in to ServiceStage.
  2. Choose Continuous Delivery > Build.
  3. On the Build page, use either of the following methods to search for a build job:

    • Select the CCE cluster where the component is deployed and the build job status, and select the specified build job in the build list.
    • Search for the build job in the search box.

  4. Click Branch/Tag and set build parameters.

    1. Select Branch/Tag.
    2. Select the corresponding branch or tag from the drop-down list.
    3. Specify Commit ID for the branch or tag.

      The value contains 8 to 40 characters and starts with a lowercase letter or digit.

  5. Click OK.