-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathblock.yml
117 lines (96 loc) · 2.31 KB
/
block.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
steps:
# Different nesting formats
- block
- block: "A label"
- block:
fields:
- text: "Field 1"
key: "field-1"
- type: "block"
label: "A label"
fields:
- text: "Field 1"
key: "field-1"
# All the options
- block: "A label"
- block: "A label"
branches: master
- block: "A label"
id: "an-id"
- block: "A label"
identifier: "an-id"
- block: "A label"
prompt: "A prompt"
- block: "A label"
prompt: "A prompt"
fields:
- text: "Field 1"
key: "field-1"
- text: "Field 2"
key: "field-2"
required: false
default: "Field 2 Default"
hint: "Field 2 Hint"
- select: "Select 1"
key: "select-1"
options:
- label: "Select 1 Option 1"
value: "select-1-option-1"
- label: "Select 1 Option 2"
value: "select-1-option-2"
- select: "Select 2"
key: "select-2"
hint: "Select 2 Hint"
required: false
default: "select-2-option-1"
options:
- label: "Select 2 Option 1"
value: "select-2-option-1"
- block: "A label"
if: build.message !~ /skip tests/
- block: "A label"
key: important-step
- block: "A label"
depends_on: depend-on-me
- block: "A label"
depends_on:
- depend-on-me-1
- depend-on-me-2
- block: "A label"
depends_on:
- step: depend-on-me-1
- step: depend-on-me-2
- block: "A label"
depends_on:
- depend-on-me-1
- step: depend-on-me-2
- block: "A label"
depends_on:
- step: depend-on-me
allow_failure: true
- block: "A label"
allow_dependency_failure: true
- block: "A label"
fields:
- select: "Multiple fields"
key: "multiple-fields"
multiple: true
options:
- label: "Option 1"
value: option-1
- label: "Option 2"
value: option-2
- block: "A label"
fields:
- select: "Multiple fields with multiple default"
key: "multiple-fields"
multiple: true
default: ["option-1", "option-2"]
options:
- label: "Option 1"
value: option-1
- label: "Option 2"
value: option-2
- group: "Tests"
steps:
- block: "A label"