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.

  1. On the Main page, click the Project card. You will be taken to the Project Dashboard page.
  2. 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.

  1. Click the Project card on the Main page. You will be taken to the Project Dashboard page.
  2. From the left menu, click the Build/Deploy > Build Pipeline menu. You will be taken to the Build Pipeline page.
  3. On the Build Pipeline page, click the Add Multi-branch Pipeline button at the top right. The Add Multi-branch Pipeline popup will open.
  4. Add Multi-branch Pipeline In the popup window, enter each field and click the Save button.
    ItemExplanation
    CategorySelect development or operation
    Jenkins URLSelect the Jenkins to add a multibranch pipeline from the list.
    Folder typeSelect 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 nameSelect a folder from the list or enter the name of a new folder to create.
    pipeline namePlease enter the pipeline name.
    Git RepositorySelect the code repository to perform builds per branch.
    Only code repositories registered in the DevOps Console project can be selected.
    Branch filteringYou 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 pathEnter 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

ItemExplanation
Multi-branch icon and labelIcons and labels representing a multibranch pipeline are displayed.
URLNavigate to the Jenkins Multibranch Pipeline page.
Scan logMulti-branch pipeline scan log The popup window opens.
ScanScanning the multibranch pipeline.
View moreDisplays additional menu.
  • Edit pipeline
  • Delete pipeline
  • Build history
Table. Multi-branch pipeline list screen items

Scanning a multibranch pipeline

To scan a multibranch pipeline, follow these steps.

  1. On the Build Pipeline page, click the Scan button of the multibranch pipeline card you want to scan.
  2. 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.

  1. 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.
  2. 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.

  1. On the Build Pipeline page, click the More icon of the multibranch pipeline card for which you want to view the build history.
  2. 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.

  1. On the Build Pipeline page, click the More icon of the multibranch pipeline card you want to edit.
  2. 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.

  1. On the Build Pipeline page, click the More icon of the multibranch pipeline card you want to delete.
  2. Click the Delete Pipeline menu. The Delete Pipeline popup window opens.
  3. 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.
Stage
Kubernetes Deployment