Pass arguments with YAML
List of YAML parameters and examples for the "Pass Arguments" action.
提示
YAML parameters for Pass arguments
名称 | 类型 | 描述 |
---|---|---|
action 必填 | String | 操作名称 |
type 必填 | String | The type of the action. Should be set to WAIT_FOR_VARIABLES . |
variables 必填 | Variable[] | The list of variables to set as parameters for the pipeline. At least one parameter is required. |
key 必填 | String | The name of the parameter. |
defaults | String | The value of the parameter. |
encrypted | Boolean | Encrypted values will not be visible once saved. Can be used for things like passwords. |
init_path | String | Path to the file with options. |
comment | String | The custom comment that will be displayed upon passing arguments. |
YAML example for Pass parameters
actions:
- action: "Pass arguments"
type: "WAIT_FOR_VARIABLES"
trigger_time: "ON_EVERY_EXECUTION"
comment: "Version should be like X.Y.Z"
variables:
- key: "key1"
encrypted: true
defaults: "param1"
- key: "key2"
defaults: "param2"
- key: "key3"
init_path: "file"
- key: "param1"
defaults: "option1\noption2\noption3"