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.
- For system-created build jobs, see Creating and Deploying a Component Based on a Container Using UI Configurations and Creating and Deploying a Component Based on a Container Using YAML Configurations.
- For user-created build jobs, see Creating a Source Code Job.
Branch/Tag
- Log in to ServiceStage.
- Choose Continuous Delivery > Build.
- 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.
- Click Branch/Tag and set build parameters.
- Select Branch/Tag.
- Select the corresponding branch or tag from the drop-down list.
- Specify Commit ID for the branch or tag.
The value contains 8 to 40 characters and starts with a lowercase letter or digit.
- Click OK.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot