Parameter | Required | Description |
tasks.task | Yes | Task ID. ID must meet the following requirements:
|
tasks.displayName | No | Task display name, shown in the pipeline Console interface. The displayName length must be 1–50 characters. |
tasks.timeout | Yes | Default is 2h. The timeout time for task execution. Supports m (minutes), h (hours), and d (days) units. The maximum is 3 days. |
tasks.retries | No | Number of task retries, value range is 1–5. If not specified, no retry will be performed. |
tasks.resourcesPolicy | No | Whether to download the code source. The following values are supported:
|
tasks.steps | No | List of steps for task execution. If there is no component in the task, steps are required. |
tasks.component | No | Specify the target Addon. If there are no steps in the task, component is required. |
tasks.inputs | No | Input parameters passed to the Addon. Required when tasks.component exists. Parameters differ among Addons. For detailed parameter description, see Add-on list. |
Parameter | Required | Description |
tasks.workspace | No | The workspace ID. The ID must meet the following requirements:
|
tasks.workspace.resources | No | Workspace resource reference list.Required when workspace is not specified or resourcesPolicy is set to all. |
tasks.workspace.resources.ref | No | Name of the referenced code source, corresponding to sources.name.Required when workspace is not specified or resourcesPolicy is set to all. |
tasks.workspace.resources.directory | No | Code download directory, typically use the $(CP_WORKSPACE) variable.Required when workspace is not specified or resourcesPolicy is set to all. |
Parameter | Required | Description |
tasks.workspace.caches.key | No | Cached ID. ID must meet the following requirements:
|
tasks.workspace.caches.path | No | Directory path to be cached. |
Parameter | Required | Description |
tasks.resources.limits.cpu | Yes | CPU LimitRange (default: 1C). |
tasks.resources.limits.memory | Yes | Memory LimitRange (default: 2Gi). |
Parameter | Required | Description |
tasks.dependsOn | No | List of identifiers for dependent tasks. This task is executed only after all preceding dependent tasks succeed. |