This topic describes how to orchestrate pipeline stages, jobs, and steps to allow you to tailor and streamline your continuous integration or continuous delivery (CI/CD) workflow.
Alibaba Cloud DevOps Flow provides the process configuration feature to allow you to customize your CI/CD process. This way, you can orchestrate component capabilities such as building, deployment, testing, and control to automate your business processes from development to release.
Flow provides the following orchestration capabilities:
Stage: a collection of jobs to be executed in a pipeline. A stage can be executed manually or automatically. Execution between stages is serial.
Job: the action to be completed during a stage. Multiple jobs can be executed in sequence or in parallel. Typical job types include code scanning, unit testing, building, deployment, merge request, and manual approval.
Step: the core underlying capability in Flow. A pipeline consists of a series of orchestrated steps.
Stage orchestration
-
On the pipeline configuration page, click + to add a stage. In the Select Job Group panel that appears, select a job template to quickly create jobs for the current stage.
After a job is created, click the job card to configure the job.
Job orchestration
Add a parallel job
On the pipeline editor page, hover over a stage and click the + Parallel Jobs button that appears. In the Select Job Group panel, choose a suitable job group template to add parallel jobs.
The left side of the panel lists job categories, such as static code scan, test, build, and deployment. The right side shows the job templates available in the selected category. For example, the build category includes templates like Java build, Python build, Go build, Node.js build, .NET Core build, GCC build, and PHP build.
Add a serial job
On the pipeline editor page, hover over a job and click the + button that appears before or after it. In the Select Job Group panel, choose a job group template to add a sequential job.
Step orchestration
On the pipeline editor page, click a job to open its configuration panel. Click Add Step to add steps as needed to complete the job.
The following table describes the steps that Flow provides.
Step classification | Step |
Static code scan |
|
Test |
|
Build |
|
Code |
|
Coverage |
|
Tool |
|
Deploy |
|
Upload |
|
Download |
|
Custom step | Custom organizational steps with Flow-CLI tools |