Updated on 2023-06-25 GMT+08:00

Pipelining an Application Component

One-click deployment can be achieved through pipeline. In this way, the entire process of source code pull, compilation, packaging, archiving, and deployment is automatically implemented. This unifies the integration environment and standardizes the delivery process.

In the new pipeline, the "phase/task" model is optimized to the "build/environment" model. Each pipeline includes a group of build jobs and one or more groups of environment (such as development environment, production-like environment, and production environment) tasks, each group of environment tasks contains one or more subtasks (such as deployment and test tasks) and provides templates.

  • Pipelines cannot be created for instances deployed on VMs.
  • Pipelines cannot be created for components whose runtime system is Docker.

Creating a Pipeline

  1. Log in to ServiceStage, choose Application Management > Application List, and click an application to go to the Overview page.
  2. On the Component List tab, click a component to go to the Overview page.
  3. Click the Pipeline tab and click Create Pipeline.
  4. Enter the basic pipeline information.

    1. Enter a pipeline name.
    2. (Optional) Enter Description.

  5. Set pipeline.

    1. Add a build job.

      The build job of the component is automatically loaded.

    2. Add a deploy job.

      Click Add Environment. The deployed components are automatically loaded.

    3. Set pipeline approval.

      Click in the environment area to set the approval mode and approver.

      • Approval Mode: By all and By one person are now supported.
      • Approved By: You can select multiple accounts as approvers. The system automatically loads all subaccounts of the account.

  6. Click Create and Start to start the pipeline.

    Click Create to save the settings and do not execute the pipeline.

Cloning a Pipeline

You can clone a pipeline to generate a new pipeline based on the existing pipeline configuration.

  1. Log in to ServiceStage, choose Application List, and select an application and an application component to go to the application component details page. On the page that is displayed, click Pipeline.
  2. Select a pipeline and click Clone.
  3. ServiceStage automatically loads configurations of the clone pipeline. You can then modify the configurations as required.
  4. Click Create and Start to start the pipeline.

    Click Create to save the settings and do not execute the pipeline.

Related Operations

After the pipeline is started, you can build and upgrade applications in one-click mode. For details about maintenance after application components are upgraded, see Application O&M.