The page has been translated by Gen AI.

Stage

The user can check the description of stage types and each stage item.

You can set up a stage in Add Build Pipeline or Modify Build Pipeline.

Common Items

The Stage Setting page is composed as follows.

ItemDescription
ToolsUsed to select and use specific tools other than the default tools set in the stage
  • JDK
  • Maven
  • Git
  • Ant
  • Go
  • Gradle
  • NodeJS
Stage TypeSelect the required stage from the list and enter the necessary information.
Stage NameEnter the stage name.
Table. Stage Input Item Composition

Checkout

This stage performs the checkout command in the Git repository registered in the code repository.

Select Checkout as the stage type.

ItemDescription
URLSelect the code repository to perform the checkout command.
Branch NameEnter the branch name to checkout.
Table. Checkout Stage Input Items

Build

This stage executes the command to build the application.

Select Build as the stage type.

ItemDescription
LanguageSelect the programming language used by the application.
Build ToolSelect the build tool used to build the application.
A basic shell command is provided depending on the selected build tool.
Shell CommandEnter the command to use for building the application.
All commands available in the shell can be used.
Table. Build Stage Input Items

Docker Build

This stage builds a Docker image.

Select Docker Build as the stage type.

Item
DescriptionExample
Registry URL (docker push)Select the image repository where the completed Docker build result image will be pushed.
IDID value of the account to be used in the image repository
Image Tag PatternThe Docker image tag will be automatically generated based on the selected pattern.
  • {YYYYMMDD}: year, month, day
  • {HHMMSS}: hour, minute, second
  • {BUILD_NUM}: current build pipeline execution number
  • {YYYYMMDD}.{HHMMSS}: 20200414.150938
  • {YYYYMMDD}.{BUILD_NUM}: 20220414.13
Add Base Image RepositoryThe Add Base Image Repository popup window will open.
Registry URL (docker pull)If the image repository providing the base image (Dockerfile’s FROM clause, docker pull) used in the Dockerfile and the image repository of the Registry URL (docker push) are different, select the image repository for docker pull.
Image Build ToolDisplays the image build tool.
Pre-build CommandIf there are commands that must be executed before building the Docker image, write them in Shell command format.cp target/*.jar docker/
Image Build FolderIf the Docker image build needs to be executed in a specific folder, select the checkbox and enter the folder path.docker
DockerfileEnter the Dockerfile file name.Dockerfile
Image Build OptionsIf additional options are required for the image build tool, enter them.--no-cache
Build CommandDisplays the actual image build command to be executed.
Post-build CommandIf there are commands that must be executed after building the Docker image, write them in Shell command format.rm -rf docker/*.jar
Table. Docker Build Stage Input Items

Example Script

The resulting build pipeline script from the example is as follows.

Example Script
Figure. Docker Build Example Script
ItemDescription
Pre-build command
Image build folder
Image build option
Post-build command
Table. Docker Build Example Script Description

Deploy to K8S

This stage deploys to Kubernetes.

Select Deploy to K8S as the stage type.

Item
Description
TypeSelect deployment type
  • Helm Release (Helm Chart Type)
  • Workload
  • ArgoCD
K8S ClusterSelect K8S cluster
  • Helm Release (Helm Chart Type) selection will display a list of Helm releases deployed through DevOps Console.
NamespaceSelect namespace.
Helm ReleaseSelect Helm release.
Deployment MethodSelect deployment method
  • Recreate
  • Rolling Update
Registry URLSelect the image repository where the image to be deployed to Kubernetes is docker pushed.
SecretSelect secret information input method
  • Auto Generation: Automatically generate and use the secret corresponding to the selected image repository in DevOps Console.
  • Use Existing Secret: Use a pre-created secret through K8S secret management.
Table. Deploy to K8S Stage Input Items

Deploy to VM

This stage deploys to a VM.

Select Deploy to VM as the stage type.

ItemDescription
Deployment ConfigurationSelect the deployment configuration method
  • Deployment target setting (using SSH command/Agent): Deploy using SSH command or Agent.
  • Direct script writing: Users directly input all commands for deployment.
Deployment GroupSelect the deployment group
Deployment InformationContents saved in the deployment group are automatically set.
Manual DeploymentSelect the default value for manual deployment
  • Please select the default setting value for manual deployment-related parameters when running the pipeline.
Table. Deploy to VM Stage Input Items

Trigger Build

This stage remotely executes a pipeline.

Select Trigger Build as the stage type.

ItemDescription
Target PipelineSelect the target pipeline to execute remotely.
The available items vary depending on the development/operation distinction of the pipeline.
Parameter InformationExposed depending on the parameter setting of the target pipeline.
The parameter information entered at the time of pipeline execution is used.
Table. Trigger Build Stage Input Items

Remote Execution Information Check

Remote execution information (upper/lower pipeline) through the Trigger Build stage can be checked on the Build Details View screen.

Other Stages

ItemDescription
ArchiveArchives the application build result. The archived file can be downloaded from Jenkins.
Code QualityStage for executing the Code Quality step.
CustomThe user writes the pipeline script directly in the desired format.
Table. Other Stage Setting Items
Build Pipeline
Multibranch Pipeline