This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

VM Deployment

    Users can register and manage VM deployment through DevOps Console.
    Before registering a VM deployment, an available VM server group(VM server group) must exist, and the registered VM deployment can be used in the build pipeline (Deploy to VM).
    Users can differentiate deployment methods using icons.

    • (SSH 방식) VM 배포 (SSH method) VM deployment
    • (Agent 방식) VM 배포 (Agent mode) VM deployment
    Note
    Differences by deployment method: Table. SSH method vs Agent method

    Start VM deployment

    To start VM deployment, 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 > VM Deploy menu. You will be taken to the VM Deploy page.
      ItemExplanation
      Deployment group nameDisplays the name of the deployment group.
      VM deployment result(Success)/(Total): Displays the number of VM servers targeted for deployment and the number of VM servers successfully deployed.
      • Green: All successful
      • Blue: In progress
      • Red: Partial failure
      • Gray: Ready, Stopped
      Deployment timeDisplays the deployment time.
      DeleteDelete the VM deployment.
      Table. VM deployment display items

    Add VM deployment

    To add a VM deployment, 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 > VM Deploy menu. You will be taken to the VM Deploy page.
    3. VM Deployment page, click the Add VM Deployment button in the top right. The Add VM Deployment popup opens.
    4. Add VM deployment After entering the information in the popup window, click the Save button.
      ItemExplanation
      deployment groupPlease enter the deployment group name.
      Execution methodSelect the execution mode.
      • File transfer and command execution: Choose this when you typically deploy files to a VM.
      • Execute command only: Choose this when you run only commands without transferring files to the VM (e.g., Docker commands).
      Deployment methodSelect deployment method
      Deployment orderIf there are multiple target servers, choose whether to deploy in parallel or sequentially.
      Deployment target VMSet the deployment target server.
      • Click the Settings button to open the Configure Deployment Target VM popup.
      Command before file deploymentWrite the commands that need to be executed before file distribution.
      File to send
      • Source: Enter the file path after the build pipeline execution directory (Jenkins workspace).
      • Target: Enter the path where the file will be deployed on the VM server.
      • Add button can be used to add files.
      Command after file distributionWrite the commands to be executed after file deployment.
      Automatic restore settingSelect whether to enable automatic rollback
      • If the deployment fails, it will be rolled back to the most recent successful deployment.
      • Deployment method is enabled when it is Agent.
      Artifact repositorySelect whether to use the artifact repository for rollback.
      • deployment method is activated when it is Agent.
      Repository nameOnly exposed when using an artifact repository.
      • A list of already registered artifact repository is displayed
      Table. Additional Input Items for VM Deployment
    Note

    Deployment Target VM Settings The popup window displays the server groups you have access to.

    For more details, refer to the VM Server Group.

    VM Deployment Details

    To view the detailed information of the VM deployment, 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 > VM Deploy menu. You will be taken to the VM Deploy page.
    3. On the VM deployment page, in the VM deployment list, click the VM deployment you want to view in detail. You will be taken to the VM deployment details page.
    4. In the History tab, click the server list. The Deployment Details popup opens.
    5. Deployment Details You can view the detailed history in the popup window.
    6. When you click the Log button of the execution pipeline, the Pipeline Log popup window opens.
    7. Pipeline Log You can view detailed logs in the popup window.
    8. In the history list for each deployment server, click the Log button of the server whose logs you want to view, and the VM Agent Log popup window will open.
    9. VM Agent log You can view detailed logs in the popup window.
      ItemExplanation
      Stop / Start DeploymentStop, Start Deployment button becomes active.
      rollbackYou can roll back to a previous version.
      History tabDeployment history is displayed.
      Pipeline Information tabThe build pipeline information associated with this VM deployment is displayed.
      logYou can view the logs of the build pipeline.
      Table. VM deployment detail screen items
      ItemExplanation
      Execution pipeline logYou can view the logs of the build pipeline.
      History logs per deployment serverYou can view the deployment agent’s logs.
      • Only displayed for AGENT type
      Table. Deployment Detail Screen Items

    Delete VM deployment

    Delete from list

    To delete a VM deployment, 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 > VM Deploy menu. You will be taken to the VM Deploy page.
    3. On the VM deployment page, click the X icon of the VM deployment you want to delete from the list.
    4. In the confirmation popup, click the Confirm button to complete the deletion of the VM deployment.

    Delete on the detail page

    To delete a VM deployment, follow these steps.

    1. Main page, click the Project card. You will be taken to the Project Dashboard page.
    2. From the left menu, click the Build/Deploy > VM Deploy menu. You will be taken to the VM Deploy page.
    3. On the VM deployment page, click the VM deployment you want to delete from the VM deployment list. You will be taken to the VM deployment details page.
    4. On the VM Deployment Details page, click the Delete button.
    5. Click the Confirm button in the confirmation popup to complete the VM deployment deletion.

    Using environment variables in VM deployment commands

    You can use environment variables in the pre‑deployment command, post‑deployment command, source path of the file to be transferred, and target path of the file to be transferred.

    You can use the $ placeholder or ${} placeholder within commands to access environment variables in the build pipeline.

    Color mode
    echo ${BUILD_NUMBER}
    echo $JOB_NAME
    echo ${BUILD_NUMBER}
    echo $JOB_NAME
    Example of using environment variables

    If you want to refer to the environment variables of the VM server where the command runs, add a \.

    Color mode
    echo \${PATH}
    echo \$LANG
    echo \${PATH}
    echo \$LANG
    Reference example of environment variables for a VM server

    Stop VM deployment

    On the Deployment Details page, you can stop a VM deployment that is in progress. Clicking the Stop button in the recent deployment status area of the Deployment Details page will stop the VM deployment.

    The states in which deployment can be halted are listed in the table below, and the Stop button is displayed only when in those states.

    method
    status value
    Explanation
    SSHrequestThe build pipeline is running.
    AGENTrequestThe build pipeline is running.
    AGENTBuild completeWhen the build pipeline is completed
    • When running the build pipeline, you must set the manual_deploy parameter value to use and execute it. If not used, it will immediately change to the ready state.
    • The Start Deployment button becomes active, and clicking it changes the state to ready.
    • In Release Management, you can change to the ready state using the VM deployment task.
    AGENTReadyAfter the build pipeline completes, the AGENT is ready to perform deployment.
    AGENTIn progressAGENT is currently executing a deployment.
    Table. State where deployment can be paused

    Understanding VM deployment status values

    Deployment Details page lets you check the current status of the VM deployment.

    status value
    Explanation
    Not executedNever run since its initial creation
    requestThe build pipeline is running.
    SuccessBuild/deployment succeeded
    FailureFailed state during build or deployment
    Table. Description of SSH deployment status values
    status value
    Explanation
    Not executedNever executed after initial creation
    requestThe build pipeline is running.
    Build completeWhen the build pipeline is completed
    • When running the build pipeline, you must set the manual_deploy parameter value to use and execute it. If not used, it will immediately change to the ready state.
    • Start Deployment button becomes active, and clicking it changes to the ready state.
    • In Release Management, you can change to the ready state using the VM deployment task.
    ReadyAfter the build pipeline completes, the AGENT is ready to perform deployment.
    In progressAGENT is currently executing a deployment.
    SuccessBuild/deployment succeeded
    FailureFailed state during build or deployment
    StopBuild or deployment is in a paused state
    • Pause button can be clicked to pause when it is enabled.
    Table. AGENT deployment status value description