Help Center/
CodeArts Repo/
User Guide/
New Version (Recommended)/
Using CodeArts Repo/
Managing MRs/
Detailed Description of Pipeline Gate
Updated on 2023-07-25 GMT+08:00
Detailed Description of Pipeline Gate
Pipeline gate supports only merge requests whose merge mechanism is Approval.
Opening/Closing the Gate
- Go to the target repository and choose Settings > Policy Settings > Merge Requests.
- Click Create to set a branch policy for the target branch.
- Configure the gate.
- Select Enable pipeline gate under the policy and click OK to save the settings. The gate is enabled.
- Deselect Enable pipeline gate under the policy and click OK to save the settings. The gate is closed.
Effect of Gate Triggering
- Merge into pipeline gate: passed: It is displayed when the pipeline is successfully started after the latest commit or pre-merge commit operation is performed.
- Merge into pipeline gate: failed: It is displayed when the repository has no associated pipeline task or the latest commit or pre-merge commit fails to start the pipeline.
Passing of the Gate
- Choose CICD > Pipeline.
- Click Create Pipeline and enter the following information:
- Name: Enter a custom name.
- Pipeline Source: Select Repo.
- Repository: Select the target code repository for which you want to create a merge request.
- Default Branch: Select the target branch of the merge request.
- Click Next, select the target template as required, and click OK.
- After the task is created, the system automatically switches to the Task Orchestration tab page in the task details and switches to the Execution Plan tab page.
- Enable Merge Request Event Triggering and select the following trigger events based on the site requirements:
- Create: triggered when an MR is created.
- Update: triggered when the content or setting of an MR is updated.
- Merge: triggered when an MR is merged. The code submission event will also be triggered.
- Reopen: triggered when an MR is reopened.
- Configure other information about the pipeline task and click Save.
- Return to the CodeArts Repo and trigger the event selected in Execution Plan to enable the repository to start the pipeline task.
Parent topic: Managing MRs
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.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot