Build Pipeline
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.
- Click the Project card on the Main page. 1. Navigates to the Project Dashboard page.
- 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.
- On the Main page, click the Project card. You will be taken to the Project Dashboard page.
- In the left menu, click the Build/Deploy > Build Pipeline menu. You will be taken to the Build Pipeline page.
- Build Pipeline page, click the Add Pipeline button at the top right. You will be taken to the Add Pipeline page.
- Add Pipeline Enter or configure each field on the page.
- Click the Next button.
Item Explanation Category Select Development or Operations - The actions that each role can perform differ depending on development or operations.
- Refer to Table. Role-specific permissions within the project (1) for role-specific permissions.
Jenkins URL Select Jenkinsfrom the list to add a build pipeline.Build Agent Select 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 OS Displays the OS information of the environment where the build agent runs. Folder type Select the folder type. - Existing folder: Add a pipeline under an already created folder in
Jenkins. - New folder: Create a new folder in
Jenkinsand add a pipeline under it.
folder Select a folder from the list or enter the name of a new folder to create. Pipeline name Please enter the pipeline name. Parameter setting Set the parameters to be used in the pipeline. Environment variable configuration Set the environment variables to be used in the pipeline. Stage Settings Configure the stage to be used in the pipeline. Configure email recipients for build results Set 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.
- Click the Parameter card.
- Click the Add button to add a parameter.
- Click the Apply button to complete the parameter settings.
Setting Environment Variables
Follow these steps to set environment variables for use in the pipeline.
- Click the Environment Variable area. The Environment Variable Registration page opens on the right.
- A list of pre-registered environment variables appears, and select the checkboxes for the environment variables you want to use.
- 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.
- Click the New Stage card. 1. The Stage area appears on the right.
- In the Stage area, select the Tool and Stage types.
- Enter the required information based on the stage type, and click the Apply button to complete the stage configuration.
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.
- Click the Mail Recipient area. The Add Mail Recipient page opens on the right.
- In the Search area, search for the recipient and add them.
- Click the Apply button to complete the mail recipient settings.
Reviewing the final pipeline script
- Check the build pipeline script that will actually be generated. If needed, edit the script directly.
- Click the Complete button to finish adding the pipeline.
Pipeline Addition Result
- The added results appear on the Build Pipeline page.
Managing Build Pipelines
Build pipeline list
| Item | Description |
|---|---|
| Status | Displays the build pipeline status.
|
| URL | Navigate to the Build Pipeline page of Jenkins. |
| URL of recent build execution history | Go to the Build History page for Jenkins. |
| Log | The Pipeline Log popup window opens. |
| Run | Runs the build pipeline. |
| See more | Displays the additional menu.
|
| View pipeline stages | Click the Expand icon to expand the stage view. |
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.
- Click the Run button for the build pipeline to run on the Build Pipeline page.
- If parameters are present, the Pipeline Execution Parameters popup opens.
- Enter the required fields and click the Confirm button.
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.
- On the Build Pipeline page, click the Logs button for the build pipeline you want to run.
- The Pipeline Log popup opens, allowing you to view the execution logs.
Build Pipeline Build History
To view the full build history of a build pipeline, follow these steps.
- On the Build Pipeline page, click the More icon for the build pipeline you want to view.
- Click the Build History menu. 2. The Build History page opens.
Item Description Config Diff The Config Diff popup window opens. Log The Pipeline Log popup window opens. Additional menu Navigates to the Build Details page. View pipeline stages Click 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.
- On the Build Pipeline page, click the More icon for the build pipeline you want to modify.
- Click the Modify Pipeline button. 2. Pipeline Edit
Modifying the Script Directly
To modify the pipeline script directly, follow these steps.
- In the script editor window on the Pipeline Edit page, enter a script that follows the syntax supported by
Jenkins. - After entering the input, click the Save button to complete the pipeline modification.
Edit using the Script Generator feature
To modify a pipeline script using the Script Generator feature, follow these steps.
- On the Pipeline Edit page, change Script Generator to ON.
- Select a build agent and a script type.
- After completing Stage Configuration, click the Generate Script button to generate the script.
- Refer to the generated script to modify the pipeline, and click the Save button to complete the pipeline modification.
Item Description Script Generator Turn the Script Generator feature ON/OFF. Script Basic Information Select the basic information for script generation. Existing script This is an existing script. New script This is a new script generated through the Script Generator. Edit Script Refer to the newly generated script and directly modify the existing script on the left. Update Jenkins Credentials If the newly created script contains new authentication information, click the Jenkins CredentialUpdate button. This updates (saves) the authentication information in Jenkins.Update K8S Secret For 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.
- Click the More icon for the build pipeline you want to duplicate.
- Click the Pipeline Replication menu. 2. The Pipeline Replication popup window opens.
- After entering the information, click the Save button to complete the pipeline duplication.
Item Description Pipeline replication information Enter the information for the pipeline to be duplicated. Edit Pipeline Modify the pipeline to be replicated. Table. Clone Build Pipeline Feature
Deleting a build pipeline
To delete a build pipeline, follow these steps.
- On the Build Pipeline page, click the More icon for the build pipeline you want to delete.
- Click the Delete Pipeline menu. 2. The Delete Pipeline popup window opens.
- Click the Confirm button in the Delete Pipeline dialog box to complete the pipeline deletion.
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.