Code Pipeline
Parameter | Type | Required | Sample Value | Description |
Action | String | Yes | CreateTrigger | The API name. The name of the current API is CreateTrigger. |
Version | String | Yes | 2023-05-01 | The API version. The current version of the API is 2023-05-01. |
WorkspaceId | String | Yes | 7d494e18ee414936c3d189a311676**** | Workspace ID of the trigger. |
PipelineId | String | Yes | 0f7ca5a42f4ce414933cfd116**** | Pipeline ID of the trigger |
Name | String | Yes | Webhook-demo-update | Trigger name |
Type | String | Yes | Webhook | Trigger type
|
Configuration | Yes | - | Trigger configuration. | |
Description | String | no | Description | Trigger description. |
Parameters | no | - | Pipeline variables used when the pipeline is triggered by a trigger. | |
Resources | no | - | The code source used when the pipeline is triggered by a trigger. |
Parameter | Type | Required | Sample Value | Description |
Schedule | no | - | Timed trigger configuration. | |
Webhook | no | - | Configuration of webhook triggers. |
Parameter | Type | Required | Sample Value | Description |
ScheduleConfig | String | Yes | 44 17 * * 1 | Configure the scheduled trigger time using Crontab expressions. For configuration instructions, refer to the official documentation. Crontab expressions use the UTC +8 time zone by default. |
Parameter | Type | Required | Sample Value | Description |
Git | no | - | The Webhook configuration for the code source trigger. | |
CR | no | - | The image source trigger webhook configuration | |
URL | String | Yes | https://cp.volces.com/v2/webhook/scm/eQKcyKfa702maKXrR_VoJi**** | The webhook URL can be generated using the CreatePipelineWebhookURL API. |
Parameter | Type | Required | Sample Value | Description |
ResourceId | String | Yes | c3e06107e5edcb4fb5329d9b**** | Associated code source ID. |
Filters | no | - | Trigger events and filters supported by the code source trigger If no configuration is set, all events will trigger pipeline execution by default. |
Parameter | Type | Required | Sample Value | Description |
EventType | String | Yes | Push | Trigger event types:
|
Config | no | - | Trigger event configuration, used for secondary filtering of trigger events that meet the criteria. |
Parameter | Type | Required | Sample Value | Description |
References | Array of String | no | ["main" ] | Filtered branches or tags.
|
Parameter | Type | Required | Sample Value | Description |
Filter | no | - | Supported trigger actions and trigger conditions for image source triggers. By default, if no configuration is set, all events trigger the pipeline to run. |
Parameter | Type | Required | Sample Value | Description |
CREventType | String | no | CRPush | Trigger actions
|
Condition | String | no | "volcregion":"xxx" | Trigger conditions are used to further filter trigger events. Supports regular expressions. |
Parameter | Type | Required | Sample Value | Description |
Key | String | Yes | key | The dynamic variable Key. |
Value | String | Yes | value | Dynamic variable Value |
Parameter | Type | Required | Sample Value | Description |
ResourceId | String | Yes | 60cb460122422352a334**** | Code source ID. |
Reference | String | Yes | master | Code reference for pipeline execution: can be a Commit ID, tag, or branch. |
Parameter | Type | Sample Value | Description |
Id | String | 007a85e4ac034eb790b096705694**** | Trigger ID |