Jenkins Build Triggered by GitLab
GitLab triggers Jenkins build in either of the following methods:
- Method 1: Use the configured webhook to push events and trigger Jenkins build task.
- Method 2: Modify the file of the specified branch in the build configuration to push events and trigger Jenkins build task.
This section uses method 1 as an example.
Procedure
- Log in to GitLab and go to the code repository.
- Click Settings, select Webhooks, and select Push events from the Test drop-down list.
- Enter http://{IP address of the Linux VM where Jenkins is installed}:8080 in the address box of the browser to log in to Jenkins.
In the build execution status on the left, you can view the build tasks that have been triggered.
- Click the build task ID and choose Console Output to view the build output logs.
- Log in to ServiceStage.
- Choose Component Management.
- In the Component List area, click the target component. The component overview page is displayed.
On the Overview page, check whether the component version and component package code source have been updated.
- Click Deployment Record to view the corresponding deployment record.
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