Updated on 2024-12-16 GMT+08:00

Editing a Pipeline

This section describes how to edit a pipeline.

Prerequisites

The pipeline has been created and is not in the Running state. To view the pipeline status, see Viewing Pipeline Details.

Editing a Pipeline

  1. Log in to ServiceStage.
  2. Choose Continuous Delivery > Pipeline.
  3. Use either of the following methods to go to the Edit Pipeline page:

    • Directly edit: Select the pipeline and click Edit.
    • View details and then edit: Click the pipeline. On the Pipeline Details page displayed, view the details by referring to Viewing Pipeline Details and then click Edit.

  4. Edit the basic pipeline information by referring to the following table. Parameters marked with an asterisk (*) are mandatory.

    Parameter

    Description

    *Pipeline

    Pipeline name.

    Enter 1 to 99 characters. Start with a letter. Only use letters, digits, periods (.), at signs (@), and hyphens (-).

    Description

    Pipeline description. Enter up to 255 characters.

  5. Modify the pipeline configuration based on the pipeline template selected in Creating a Pipeline.

    Operation

    Procedure

    Edit a build job

    1. Move the cursor to the build job.
      • Click to select another build job.
      • Click to delete the build job.
    2. Click OK.

    Add a build job

    1. Click Select Build Job.
    2. Select a build job.

      If there is no build job, create one by referring to Creating a Source Code Job or Creating a Package Job.

    3. Click OK.

    Repeat this procedure to add more build jobs. The build job must belong to the enterprise project set in Creating a Pipeline.

    Edit a deployment environment

    1. Move the cursor to the deployment environment.
    2. Click . The Add Environment dialog box is displayed.
    3. Click and enter an environment name.
    4. Select the deployed application component in the build job and click OK.
    5. Select Build Job: Select the added build job for build.
    6. Build Output: Set the archive path of the image generated by the build job.
    7. Click OK.

    Add a deployment environment

    1. Click Add Environment.
    2. Click and enter an environment name.
    3. Click to save the environment name.
    4. Select the deployed application component in the build job and click OK.
    5. Select Build Job: Select the added build job for build.
    6. Build Output: Set the archive path of the image generated by the build job.
    7. Click OK.

    Repeat this procedure to add more deployment environments.

    Edit pipeline approval information

    1. Click on an environment card.
    2. Set Approval Mode.

      By all: The pipeline can be executed only after all selected approvers approve the deployment.

      By one person: The pipeline can be executed after any approver approves the deployment.

    3. Set Approved By.

      You can select multiple approvers. The system automatically loads all subaccounts of the account.

    4. Click OK.

  6. Determine whether to start the pipeline:

    • If yes, click Save and Execute to save the settings and start the pipeline. After the pipeline is started, its status is Successful .

      If the pipeline need to be approved, it is in the To be confirmed state during component deployment. The pipeline can continue to run only after you notify the approvers for approval. For details, see Approving a Pipeline.

    • If no, click Save to save the settings only. After the pipeline is created, its status is Not executed.

    To view the pipeline, see Viewing Pipeline Details.