The page has been translated by Gen AI.

Build Pipeline

Reference
For a detailed explanation of Jenkins pipelines, refer to the official site.

Users can group consecutive tasks into a pipeline. The pipeline configured here is generated as a Jenkins pipeline.

Start the build pipeline

To get started with using the build pipeline, follow these steps.

  1. Click the Project card on the Main page. 1. Navigates to the Project Dashboard page.
  2. In the left menu, click Build/Deploy > Build Pipeline. 2. Go to the Build Pipeline page.

Add a build pipeline

To add a build pipeline, follow these steps.

  1. On the Main page, click the Project card. You will be taken to the Project Dashboard page.
  2. In the left menu, click the Build/Deploy > Build Pipeline menu. You will be taken to the Build Pipeline page.
  3. Build Pipeline page, click the Add Pipeline button at the top right. You will be taken to the Add Pipeline page.
  4. Add Pipeline Enter or configure each field on the page.
  5. Click the Next button.
    ItemExplanation
    CategorySelect Development or Operations
    Jenkins URLSelect Jenkins from the list to add a build pipeline.
    Build AgentSelect the agent (build environment) on which the build pipeline will run.
    Click the Info icon to view the list of tools provided by the agent.
    Build environment OSDisplays the OS information of the environment where the build agent runs.
    Folder typeSelect the folder type.
    • Existing folder: Add a pipeline under an already created folder in Jenkins.
    • New folder: Create a new folder in Jenkins and add a pipeline under it.
    folderSelect a folder from the list or enter the name of a new folder to create.
    Pipeline namePlease enter the pipeline name.
    Parameter settingSet the parameters to be used in the pipeline.
    Environment variable configurationSet the environment variables to be used in the pipeline.
    Stage SettingsConfigure the stage to be used in the pipeline.
    Configure email recipients for build resultsSet the recipients who will receive the result email after the pipeline completes (success/failure).
    Table. Additional Build Pipeline Settings

Setting Parameters

Follow these steps to set the parameters used when running the pipeline.

  1. Click the Parameter card.
  2. Click the Add button to add a parameter.
  3. Click the Apply button to complete the parameter settings.

Setting Environment Variables

Follow these steps to set environment variables for use in the pipeline.

  1. Click the Environment Variable area. The Environment Variable Registration page opens on the right.
  2. A list of pre-registered environment variables appears, and select the checkboxes for the environment variables you want to use.
  3. Check the selected environment variable and click the Apply button to complete the environment variable configuration.

Configure the stage

To configure the stages to use in a pipeline, follow these steps.

  1. Click the New Stage card. 1. The Stage area appears on the right.
  2. In the Stage area, select the Tool and Stage types.
  3. Enter the required information based on the stage type, and click the Apply button to complete the stage configuration.
Reference
Click the Add icon to add a stage.
For details on stage settings, see Stage.

Configure build result email recipients

To set the recipients who will receive the build results by email, follow these steps.

  1. Click the Mail Recipient area. The Add Mail Recipient page opens on the right.
  2. In the Search area, search for the recipient and add them.
  3. Click the Apply button to complete the mail recipient settings.

Reviewing the final pipeline script

  1. Check the build pipeline script that will actually be generated. If needed, edit the script directly.
  2. Click the Complete button to finish adding the pipeline.

Pipeline Addition Result

  1. The added results appear on the Build Pipeline page.
Note
The added pipeline does not run automatically. If execution is required, run the pipeline manually.

Managing Build Pipelines

Build pipeline list

ItemDescription
StatusDisplays the build pipeline status.
  • Green: Completed successfully
  • Blue (blinking): Running
  • Red: Failed
  • Gray: Other
URLNavigate to the Build Pipeline page of Jenkins.
URL of recent build execution historyGo to the Build History page for Jenkins.
LogThe Pipeline Log popup window opens.
RunRuns the build pipeline.
See moreDisplays the additional menu.
  • Edit Pipeline
  • Duplicate Pipeline
  • Delete Pipeline
  • Build History
View pipeline stagesClick the Expand icon to expand the stage view.
Table. View build pipeline list feature

Build pipeline credentials

When performing build pipeline operations (such as running, stopping, modifying, or deleting), user authentication information is required, so you may be prompted for it depending on the situation.

For Jenkins integrated with an IDP

If you are not registered as a Jenkins user, click the Go to Jenkins link in the User Registration Guide popup to proceed with User Sign-up or Jenkins First Login.

For Jenkins instances not integrated with IDP

If Jenkins credentials are not saved, select Existing User or Create New User for Account Type in the Add Account popup to add the credentials.

Run the build pipeline

To run the build pipeline, follow these steps.

  1. Click the Run button for the build pipeline to run on the Build Pipeline page.
  2. If parameters are present, the Pipeline Execution Parameters popup opens.
  3. Enter the required fields and click the Confirm button.
Warning

If the Number of executors for the Built-In Node in Jenkins system settings is set to 1 or higher, a security issue may occur, and pipeline execution will not proceed.

  • In this case, contact the Jenkins administrator to change the configuration.
    • You can use this feature by setting the Number of executors for the Built-In Node to 0 in the Jenkins management menu.
  • Note Jenkins officially guides against running builds on the Controller Node.

View build pipeline execution logs

To view the build pipeline execution logs, follow these steps.

  1. On the Build Pipeline page, click the Logs button for the build pipeline you want to run.
  2. The Pipeline Log popup opens, allowing you to view the execution logs.
Reference
If a build pipeline is running, the Pipeline Logs popup window refreshes periodically to display the latest logs.

Build Pipeline Build History

To view the full build history of a build pipeline, follow these steps.

  1. On the Build Pipeline page, click the More icon for the build pipeline you want to view.
  2. Click the Build History menu. 2. The Build History page opens.
    ItemDescription
    Config DiffThe Config Diff popup window opens.
    LogThe Pipeline Log popup window opens.
    Additional menuNavigates to the Build Details page.
    View pipeline stagesClick the Expand icon to expand the stage view.
    Table. View build pipeline list feature

Comparing Configuration Information

You can compare configuration information with previous build history using the Config Diff button.

View Logs

You can view build history logs by using the Log button.

Build Details

You can view build details through the More icon.

Modifying the build pipeline

To modify the build pipeline, follow these steps.

  1. On the Build Pipeline page, click the More icon for the build pipeline you want to modify.
  2. Click the Modify Pipeline button. 2. Pipeline Edit

Modifying the Script Directly

To modify the pipeline script directly, follow these steps.

  1. In the script editor window on the Pipeline Edit page, enter a script that follows the syntax supported by Jenkins.
  2. After entering the input, click the Save button to complete the pipeline modification.

Edit using the Script Generator feature

Reference
The Script Generator feature allows you to configure only one stage at a time. To modify multiple stages, run the process multiple times.

To modify a pipeline script using the Script Generator feature, follow these steps.

  1. On the Pipeline Edit page, change Script Generator to ON.
  2. Select a build agent and a script type.
  3. After completing Stage Configuration, click the Generate Script button to generate the script.
  4. Refer to the generated script to modify the pipeline, and click the Save button to complete the pipeline modification.
    ItemDescription
    Script GeneratorTurn the Script Generator feature ON/OFF.
    Script Basic InformationSelect the basic information for script generation.
    Existing scriptThis is an existing script.
    New scriptThis is a new script generated through the Script Generator.
    Edit ScriptRefer to the newly generated script and directly modify the existing script on the left.
    Update Jenkins CredentialsIf the newly created script contains new authentication information, click the Jenkins Credential Update button. This updates (saves) the authentication information in Jenkins.
    Update K8S SecretFor the Deploy to K8S stage, if you modify a K8S Secret, click the K8S Secret Update button. This updates (saves) the Secret for use when creating and deploying it.
    Table. Script Generator feature

Duplicate Build Pipeline

To duplicate a build pipeline, follow these steps.

  1. Click the More icon for the build pipeline you want to duplicate.
  2. Click the Pipeline Replication menu. 2. The Pipeline Replication popup window opens.
  3. After entering the information, click the Save button to complete the pipeline duplication.
    ItemDescription
    Pipeline replication informationEnter the information for the pipeline to be duplicated.
    Edit PipelineModify the pipeline to be replicated.
    Table. Clone Build Pipeline Feature

Deleting a build pipeline

To delete a build pipeline, follow these steps.

  1. On the Build Pipeline page, click the More icon for the build pipeline you want to delete.
  2. Click the Delete Pipeline menu. 2. The Delete Pipeline popup window opens.
  3. Click the Confirm button in the Delete Pipeline dialog box to complete the pipeline deletion.
Reference

Also delete the pipeline in Jenkins.

  • Selection: The pipeline is actually deleted in Jenkins.
  • Unselected: Removed only from the Build Pipeline list and remains in Jenkins.
Project Members
Stage