The page has been translated by Gen AI.
Multibranch Pipeline
Reference
For detailed information about Jenkins multibranch pipelines, refer to the official site.
Users can integrate multiple branches of a code repository through a multibranch pipeline and manage them as a single job.
Starting a Multibranch Pipeline
To start using a multibranch pipeline, follow these steps.
- On the Main page, click the Project card. You will be taken to the Project Dashboard page.
- From the left menu, click the Build/Deploy > Build Pipeline menu. You will be taken to the Build Pipeline page.
Add a multibranch pipeline
To add a multibranch pipeline, follow these steps.
- Click the Project card on the Main page. You will be taken to the Project Dashboard page.
- From the left menu, click the Build/Deploy > Build Pipeline menu. You will be taken to the Build Pipeline page.
- On the Build Pipeline page, click the Add Multi-branch Pipeline button at the top right. The Add Multi-branch Pipeline popup will open.
- Add Multi-branch Pipeline In the popup window, enter each field and click the Save button.
Item Explanation Category Select development or operation - The actions that each role can perform differ depending on development or operation.
- Refer to Table. Role-specific permissions within the project (1) for role-specific permissions.
Jenkins URL Select the Jenkins to add a multibranch pipeline from the list. Folder type Select folder type - Existing folder: Add a pipeline under a folder that already exists in Jenkins.
- New folder: Create a new folder in Jenkins and add a pipeline under it.
Folder name Select a folder from the list or enter the name of a new folder to create. pipeline name Please enter the pipeline name. Git Repository Select the code repository to perform builds per branch.
Only code repositories registered in the DevOps Console project can be selected.Branch filtering You can filter the branch names to build among the branches registered in the code repository.
When using filtering, enter the filter condition as a Java regular expression.Jenkinsfile path Enter the path within the code repository of the Jenkinsfile where the pipeline build is defined. Table. Multi-branch pipeline additional information input items
Managing Multi-Branch Pipelines
Multi-branch pipeline list
| Item | Explanation |
|---|---|
| Multi-branch icon and label | Icons and labels representing a multibranch pipeline are displayed. |
| URL | Navigate to the Jenkins Multibranch Pipeline page. |
| Scan log | Multi-branch pipeline scan log The popup window opens. |
| Scan | Scanning the multibranch pipeline. |
| View more | Displays additional menu.
|
Table. Multi-branch pipeline list screen items
Scanning a multibranch pipeline
To scan a multibranch pipeline, follow these steps.
- On the Build Pipeline page, click the Scan button of the multibranch pipeline card you want to scan.
- Click the Confirm button in the confirmation popup.
View multi-branch pipeline scan logs
To view the scan logs of a multibranch pipeline, follow these steps.
- Build Pipeline page, click the Scan Log button of the multibranch pipeline card for which you want to view the scan log. The Multibranch Pipeline Scan Log popup window opens.
- Multi-branch pipeline scan log After reviewing the contents in the popup window, click the Confirm button to exit.
View multi-branch pipeline build history
To view the build history for each branch in a multibranch pipeline, follow these steps.
- On the Build Pipeline page, click the More icon of the multibranch pipeline card for which you want to view the build history.
- Click the Build History menu. You will be taken to the Branch-specific Build History screen of
Jenkins. (This feature is not provided in DevOps Console)
Modify multi-branch pipeline
To modify a multibranch pipeline, follow these steps.
- On the Build Pipeline page, click the More icon of the multibranch pipeline card you want to edit.
- Click the Edit Pipeline menu. You will be taken to the Settings screen of
Jenkins. (Feature not provided in DevOps Console)
Delete Multi-branch Pipeline
To delete a multibranch pipeline, follow these steps.
- On the Build Pipeline page, click the More icon of the multibranch pipeline card you want to delete.
- Click the Delete Pipeline menu. The Delete Pipeline popup window opens.
- In the Delete Pipeline popup, select whether to Delete the pipeline in Jenkins as well, and click the Confirm button.
Reference
Delete the pipeline in Jenkins as well.
- Selection: The pipeline is actually deleted in
Jenkins. - Unselected: Build pipeline is deleted only from the list and remains in
Jenkins.