Managing Pipelines
One-click deployment can be achieved through pipeline. In this way, the entire process of source code pull, complication, 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 tasks 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.
Creating a Pipeline
- Log in to ServiceStage, choose Continuous Delivery > Pipeline, and click Create Pipeline.
- Enter the basic pipeline information.
- Enter a pipeline name.
- Specify Enterprise Project.
Provides a cloud resource management mode, in which cloud resources and members are centrally managed by project.
It is available after the enterprise center is enabled.
- (Optional) Enter the Description.
- Select a pipeline template. ServiceStage provides built-in pipeline templates in typical scenarios. After you select a pipeline template, the Build/Environment model is automatically generated. You can directly use the model.
Table 1 Template description Template
Description
Operation Description
Empty template
You need to add the "build/environment" model.
Set this parameter as required. For details, see 3.a, 3.b, and 3.c.
Simple template
The "build" model is automatically added to compile and build the source code of the code library.
For details, see 3.a.
Common template
The "build/environment" model is automatically added to compile and build the source code of the code library, and the generated software package or image is continuously released to the production environment.
- Add a build task.
Click Choose Build, select a created build task, and click OK.
If no build task exists, click New build task to create a build task. For details, see Creating a Common Job.
Repeat this step to add more build tasks.
- Add a deploy task.
Click Add Environment and enter the environment name. Select an application and a deployed application component.
If no application exists, click New application to create an application. For details, see Deployment Mode.
Select the build task added in 3.a.
Select build output.
Repeat this step to add more environments.
- Set pipeline approval.
Click
in the environment area to set the approval mode and approval person.Audit mode: Pass all and Single pass are now supported.
Approver: You can select multiple accounts for approval. The system automatically loads all subaccounts of the account.
- Add a build task.
- Click Create and Start to start the pipeline.
Click Create to save the settings and do not execute the pipeline.
Configuring the Pipeline Triggering Policy
In pipeline Edit, you can set the pipeline triggering policy. The details are as follows:
| Policy | Mode | Description |
|---|---|---|
| Manual | - | After creating a pipeline, click Start to manually start the pipeline. |
| Scheduled | Single-time | Set the triggering time to trigger a single-time pipeline. |
| Periodic | Set the triggering time segment, interval, and period to implement periodic pipeline triggering. |
Cloning a Pipeline
You can clone a pipeline to generate a new pipeline based on the existing pipeline configuration.
- Log in to ServiceStage and choose Continuous Delivery > Pipeline.
- Select a pipeline and choose More > Clone.
- ServiceStage automatically loads configurations of the clone pipeline. You can then modify the configurations as required.
- 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 deploy applications in one-click mode. For details about maintenance operations after application components are deployed, see Application O&M.
Last Article: Creating a Package Job
Next Article: Authorizing a Repository
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.