流水線組件component:流水線任務 job 可調用一個組件 component 執行相關操作。
樣本
以下為一個使用組件任務的配置樣本:
stages:
manual_stage:
name: 人工卡點階段
jobs:
manul_job:
name: 人工卡點任務
component: ManualValidate
with:
validatorType: users
validateMethod: and
validatorUsers:
- <user_id_1>
- <user_id_2>詳細說明
stages.<stage_id>.jobs.<job_id>.component
選擇目標組件,具體查看配置 Flow 的 component 清單。
stages.<stage_id>.jobs.<job_id>.with
當流水線任務為一個組件的調用時,通過with填寫組件所需的執行參數,具體查看配置 Flow 的 component 詳細說明。樣本:
jobs:
deploy_job:
name: 主機群組部署任務
component: VMDeploy # 選擇目標組件
with: # 填寫組件的參數
artifact: $[stages.build_stage.build_job.upload_step.artifacts.default]
machineGroup: <your-machine-group-id>
......