You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pipelines/process/includes/parameter-data-types.md
+18-3Lines changed: 18 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ ai-usage: ai-assisted
11
11
| Data type | Notes |
12
12
|-----------|-------|
13
13
| `string` | string
14
+
| `stringList` | a list of items, multiple can be selected
14
15
| `number` | may be restricted to `values:`, otherwise any number-like string is accepted
15
16
| `boolean` | `true` or `false`
16
17
| `object` | any YAML structure
@@ -23,7 +24,7 @@ ai-usage: ai-assisted
23
24
| `stage` | a single stage
24
25
| `stageList` | sequence of stages
25
26
26
-
The step, stepList, job, jobList, deployment, deploymentList, stage, and stageList data types all use standard YAML schema format. This example includes string, number, boolean, object, step, and stepList.
27
+
The step, stepList, job, jobList, deployment, deploymentList, stage, stringList, and stageList data types all use standard YAML schema format. This example includes string, number, boolean, object, step, and stepList.
27
28
28
29
```yaml
29
30
parameters:
@@ -33,11 +34,22 @@ parameters:
33
34
34
35
- name: myMultiString # Define a parameter named 'myMultiString'
35
36
type: string # The parameter type is string
36
-
default: default # Default value is 'default'
37
+
default: default # Default value is 'default', only one default
37
38
values: # Allowed values for 'myMultiString'
38
39
- default
39
40
- ubuntu
40
41
42
+
- name: myStringlist # Define a parameter named 'myStringlist'
43
+
type: stringList # The parameter type is stringList
44
+
displayName: Regions
45
+
values: # Allowed values for 'myStringlist'
46
+
- WUS
47
+
- CUS
48
+
- EUS
49
+
default: # Default values
50
+
- WUS
51
+
- CUS
52
+
41
53
- name: myNumber # Define a parameter named 'myNumber'
42
54
type: number # The parameter type is number
43
55
default: 2# Default value is 2
@@ -76,7 +88,7 @@ parameters:
76
88
default: # Default value is a list of steps
77
89
- script: echo step one
78
90
- script: echo step two
79
-
91
+
80
92
trigger: none
81
93
82
94
jobs:
@@ -86,4 +98,7 @@ jobs:
86
98
- job: myStep # Define a job named 'myStep'
87
99
steps:
88
100
- ${{ parameters.myStep }} # Use the step from the 'myStep' parameter
0 commit comments