All Products
Search
Document Center

Alibaba Cloud DevOps:Component

Last Updated:Jun 10, 2026

A component is a job implementation that a pipeline job can call to execute a specified job. Reference a component by name and pass the required parameters using a with block.

Example

The following example calls the ManualValidate component to set up a manual approval step:

stages:
  manul_stage:
    name: Approval Stage
    jobs:
      manul_job: 
        name: Manual Validate Job
        component: ManualValidate
        with:
          validatorType: users
          validateMethod: and
          validatorUsers: 
            - <user_id_1>
            - <user_id_2>

Parameter reference

stages.<stage_id>.jobs.<job_id>.component

Required. The component to use. For the full list of available components and their names, see the component list in Flow.

stages.<stage_id>.jobs.<job_id>.with

The execution parameters to pass to the component. Each component defines its own required parameters. For each component's parameter details, see the component list in Flow.

The following example calls the VMDeploy component and passes the artifact path and target machine group:

jobs:
  deploy_job:
    name: VM Deploy Job
    component: VMDeploy             
    with:                           # Specify component execution parameters.
      artifact: $[stages.build_stage.build_job.upload_step.artifacts.default]
      machineGroup: <your-machine-group-id>
      # ...