@intentius/chant-lexicon-gitlab 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +27 -0
- package/src/codegen/__snapshots__/snapshot.test.ts.snap +33 -0
- package/src/codegen/docs-cli.ts +3 -0
- package/src/codegen/docs.ts +962 -0
- package/src/codegen/fetch.ts +73 -0
- package/src/codegen/generate-cli.ts +41 -0
- package/src/codegen/generate-lexicon.ts +53 -0
- package/src/codegen/generate-typescript.ts +144 -0
- package/src/codegen/generate.ts +166 -0
- package/src/codegen/naming.ts +52 -0
- package/src/codegen/package.ts +64 -0
- package/src/codegen/parse.test.ts +195 -0
- package/src/codegen/parse.ts +531 -0
- package/src/codegen/patches.test.ts +99 -0
- package/src/codegen/patches.ts +100 -0
- package/src/codegen/rollback.ts +26 -0
- package/src/codegen/snapshot.test.ts +109 -0
- package/src/coverage.test.ts +39 -0
- package/src/coverage.ts +52 -0
- package/src/generated/index.d.ts +248 -0
- package/src/generated/index.ts +23 -0
- package/src/generated/lexicon-gitlab.json +77 -0
- package/src/generated/runtime.ts +4 -0
- package/src/import/generator.test.ts +151 -0
- package/src/import/generator.ts +173 -0
- package/src/import/parser.test.ts +160 -0
- package/src/import/parser.ts +282 -0
- package/src/import/roundtrip.test.ts +89 -0
- package/src/index.ts +25 -0
- package/src/intrinsics.test.ts +42 -0
- package/src/intrinsics.ts +40 -0
- package/src/lint/post-synth/post-synth.test.ts +155 -0
- package/src/lint/post-synth/wgl010.ts +41 -0
- package/src/lint/post-synth/wgl011.ts +54 -0
- package/src/lint/post-synth/yaml-helpers.ts +88 -0
- package/src/lint/rules/artifact-no-expiry.ts +62 -0
- package/src/lint/rules/deprecated-only-except.ts +53 -0
- package/src/lint/rules/index.ts +8 -0
- package/src/lint/rules/missing-script.ts +65 -0
- package/src/lint/rules/missing-stage.ts +62 -0
- package/src/lint/rules/rules.test.ts +146 -0
- package/src/lsp/completions.test.ts +85 -0
- package/src/lsp/completions.ts +18 -0
- package/src/lsp/hover.test.ts +60 -0
- package/src/lsp/hover.ts +36 -0
- package/src/plugin.test.ts +228 -0
- package/src/plugin.ts +380 -0
- package/src/serializer.test.ts +309 -0
- package/src/serializer.ts +226 -0
- package/src/testdata/ci-schema-fixture.json +2184 -0
- package/src/testdata/create-fixture.ts +46 -0
- package/src/testdata/load-fixtures.ts +23 -0
- package/src/validate-cli.ts +19 -0
- package/src/validate.test.ts +43 -0
- package/src/validate.ts +125 -0
- package/src/variables.ts +27 -0
|
@@ -0,0 +1,2184 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {
|
|
3
|
+
"job_template": {
|
|
4
|
+
"type": "object",
|
|
5
|
+
"additionalProperties": false,
|
|
6
|
+
"properties": {
|
|
7
|
+
"image": {
|
|
8
|
+
"$ref": "#/definitions/image"
|
|
9
|
+
},
|
|
10
|
+
"services": {
|
|
11
|
+
"$ref": "#/definitions/services"
|
|
12
|
+
},
|
|
13
|
+
"before_script": {
|
|
14
|
+
"$ref": "#/definitions/before_script"
|
|
15
|
+
},
|
|
16
|
+
"after_script": {
|
|
17
|
+
"$ref": "#/definitions/after_script"
|
|
18
|
+
},
|
|
19
|
+
"hooks": {
|
|
20
|
+
"$ref": "#/definitions/hooks"
|
|
21
|
+
},
|
|
22
|
+
"rules": {
|
|
23
|
+
"$ref": "#/definitions/rules"
|
|
24
|
+
},
|
|
25
|
+
"variables": {
|
|
26
|
+
"$ref": "#/definitions/jobVariables"
|
|
27
|
+
},
|
|
28
|
+
"cache": {
|
|
29
|
+
"$ref": "#/definitions/cache"
|
|
30
|
+
},
|
|
31
|
+
"id_tokens": {
|
|
32
|
+
"$ref": "#/definitions/id_tokens"
|
|
33
|
+
},
|
|
34
|
+
"identity": {
|
|
35
|
+
"$ref": "#/definitions/identity"
|
|
36
|
+
},
|
|
37
|
+
"inputs": {
|
|
38
|
+
"$ref": "#/definitions/jobInputs"
|
|
39
|
+
},
|
|
40
|
+
"secrets": {
|
|
41
|
+
"$ref": "#/definitions/secrets"
|
|
42
|
+
},
|
|
43
|
+
"script": {
|
|
44
|
+
"$ref": "#/definitions/script",
|
|
45
|
+
"markdownDescription": "Shell scripts executed by the Runner. The only required property of jobs. Be careful with special characters (e.g. `:`, `{`, `}`, `&`) and use single or double quotes to avoid issues. [Learn More](https://docs.gitlab.com/ci/yaml/#script)"
|
|
46
|
+
},
|
|
47
|
+
"run": {
|
|
48
|
+
"$ref": "#/definitions/steps",
|
|
49
|
+
"markdownDescription": "Specifies a list of steps to execute in the job. The `run` keyword is an alternative to `script` and allows for more advanced job configuration. Each step is an object that defines a single task or command. Use either `run` or `script` in a job, but not both, otherwise the pipeline will error out."
|
|
50
|
+
},
|
|
51
|
+
"stage": {
|
|
52
|
+
"description": "Define what stage the job will run in.",
|
|
53
|
+
"anyOf": [
|
|
54
|
+
{
|
|
55
|
+
"type": "string",
|
|
56
|
+
"minLength": 1
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"type": "array",
|
|
60
|
+
"minItems": 1,
|
|
61
|
+
"items": {
|
|
62
|
+
"type": "string"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
"only": {
|
|
68
|
+
"$ref": "#/definitions/filter",
|
|
69
|
+
"description": "Job will run *only* when these filtering options match."
|
|
70
|
+
},
|
|
71
|
+
"extends": {
|
|
72
|
+
"description": "The name of one or more jobs to inherit configuration from.",
|
|
73
|
+
"oneOf": [
|
|
74
|
+
{
|
|
75
|
+
"type": "string"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"type": "array",
|
|
79
|
+
"items": {
|
|
80
|
+
"type": "string"
|
|
81
|
+
},
|
|
82
|
+
"minItems": 1
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
"needs": {
|
|
87
|
+
"description": "The list of jobs in previous stages whose sole completion is needed to start the current job.",
|
|
88
|
+
"type": "array",
|
|
89
|
+
"items": {
|
|
90
|
+
"oneOf": [
|
|
91
|
+
{
|
|
92
|
+
"type": "string"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"type": "object",
|
|
96
|
+
"additionalProperties": false,
|
|
97
|
+
"properties": {
|
|
98
|
+
"job": {
|
|
99
|
+
"type": "string"
|
|
100
|
+
},
|
|
101
|
+
"artifacts": {
|
|
102
|
+
"type": "boolean"
|
|
103
|
+
},
|
|
104
|
+
"optional": {
|
|
105
|
+
"type": "boolean"
|
|
106
|
+
},
|
|
107
|
+
"parallel": {
|
|
108
|
+
"$ref": "#/definitions/parallel_matrix"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"required": [
|
|
112
|
+
"job"
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"type": "object",
|
|
117
|
+
"additionalProperties": false,
|
|
118
|
+
"properties": {
|
|
119
|
+
"pipeline": {
|
|
120
|
+
"type": "string"
|
|
121
|
+
},
|
|
122
|
+
"job": {
|
|
123
|
+
"type": "string"
|
|
124
|
+
},
|
|
125
|
+
"artifacts": {
|
|
126
|
+
"type": "boolean"
|
|
127
|
+
},
|
|
128
|
+
"parallel": {
|
|
129
|
+
"$ref": "#/definitions/parallel_matrix"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"required": [
|
|
133
|
+
"job",
|
|
134
|
+
"pipeline"
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"type": "object",
|
|
139
|
+
"additionalProperties": false,
|
|
140
|
+
"properties": {
|
|
141
|
+
"job": {
|
|
142
|
+
"type": "string"
|
|
143
|
+
},
|
|
144
|
+
"project": {
|
|
145
|
+
"type": "string"
|
|
146
|
+
},
|
|
147
|
+
"ref": {
|
|
148
|
+
"type": "string"
|
|
149
|
+
},
|
|
150
|
+
"artifacts": {
|
|
151
|
+
"type": "boolean"
|
|
152
|
+
},
|
|
153
|
+
"parallel": {
|
|
154
|
+
"$ref": "#/definitions/parallel_matrix"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"required": [
|
|
158
|
+
"job",
|
|
159
|
+
"project",
|
|
160
|
+
"ref"
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"$ref": "#/definitions/!reference"
|
|
165
|
+
}
|
|
166
|
+
]
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"except": {
|
|
170
|
+
"$ref": "#/definitions/filter",
|
|
171
|
+
"description": "Job will run *except* for when these filtering options match."
|
|
172
|
+
},
|
|
173
|
+
"tags": {
|
|
174
|
+
"$ref": "#/definitions/tags"
|
|
175
|
+
},
|
|
176
|
+
"allow_failure": {
|
|
177
|
+
"$ref": "#/definitions/allow_failure"
|
|
178
|
+
},
|
|
179
|
+
"timeout": {
|
|
180
|
+
"$ref": "#/definitions/timeout"
|
|
181
|
+
},
|
|
182
|
+
"when": {
|
|
183
|
+
"$ref": "#/definitions/when"
|
|
184
|
+
},
|
|
185
|
+
"start_in": {
|
|
186
|
+
"$ref": "#/definitions/start_in"
|
|
187
|
+
},
|
|
188
|
+
"manual_confirmation": {
|
|
189
|
+
"markdownDescription": "Describes the Custom confirmation message for a manual job [Learn More](https://docs.gitlab.com/ci/yaml/#when).",
|
|
190
|
+
"type": "string"
|
|
191
|
+
},
|
|
192
|
+
"dependencies": {
|
|
193
|
+
"type": "array",
|
|
194
|
+
"description": "Specify a list of job names from earlier stages from which artifacts should be loaded. By default, all previous artifacts are passed. Use an empty array to skip downloading artifacts.",
|
|
195
|
+
"items": {
|
|
196
|
+
"type": "string"
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"artifacts": {
|
|
200
|
+
"$ref": "#/definitions/artifacts"
|
|
201
|
+
},
|
|
202
|
+
"environment": {
|
|
203
|
+
"description": "Used to associate environment metadata with a deploy. Environment can have a name and URL attached to it, and will be displayed under /environments under the project.",
|
|
204
|
+
"oneOf": [
|
|
205
|
+
{
|
|
206
|
+
"type": "string"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"type": "object",
|
|
210
|
+
"additionalProperties": false,
|
|
211
|
+
"properties": {
|
|
212
|
+
"name": {
|
|
213
|
+
"type": "string",
|
|
214
|
+
"description": "The name of the environment, e.g. 'qa', 'staging', 'production'.",
|
|
215
|
+
"minLength": 1
|
|
216
|
+
},
|
|
217
|
+
"url": {
|
|
218
|
+
"type": "string",
|
|
219
|
+
"description": "When set, this will expose buttons in various places for the current environment in GitLab, that will take you to the defined URL.",
|
|
220
|
+
"format": "uri",
|
|
221
|
+
"pattern": "^(https?://.+|\\$[A-Za-z]+)"
|
|
222
|
+
},
|
|
223
|
+
"on_stop": {
|
|
224
|
+
"type": "string",
|
|
225
|
+
"description": "The name of a job to execute when the environment is about to be stopped."
|
|
226
|
+
},
|
|
227
|
+
"action": {
|
|
228
|
+
"enum": [
|
|
229
|
+
"start",
|
|
230
|
+
"prepare",
|
|
231
|
+
"stop",
|
|
232
|
+
"verify",
|
|
233
|
+
"access"
|
|
234
|
+
],
|
|
235
|
+
"description": "Specifies what this job will do. 'start' (default) indicates the job will start the deployment. 'prepare'/'verify'/'access' indicates this will not affect the deployment. 'stop' indicates this will stop the deployment.",
|
|
236
|
+
"default": "start"
|
|
237
|
+
},
|
|
238
|
+
"auto_stop_in": {
|
|
239
|
+
"type": "string",
|
|
240
|
+
"description": "The amount of time it should take before GitLab will automatically stop the environment. Supports a wide variety of formats, e.g. '1 week', '3 mins 4 sec', '2 hrs 20 min', '2h20min', '6 mos 1 day', '47 yrs 6 mos and 4d', '3 weeks and 2 days'."
|
|
241
|
+
},
|
|
242
|
+
"kubernetes": {
|
|
243
|
+
"type": "object",
|
|
244
|
+
"description": "Used to configure the kubernetes deployment for this environment. This is currently not supported for kubernetes clusters that are managed by GitLab.",
|
|
245
|
+
"properties": {
|
|
246
|
+
"agent": {
|
|
247
|
+
"type": "string",
|
|
248
|
+
"description": "Specifies the GitLab Agent for Kubernetes. The format is `path/to/agent/project:agent-name`."
|
|
249
|
+
},
|
|
250
|
+
"namespace": {
|
|
251
|
+
"type": "string",
|
|
252
|
+
"description": "Deprecated. Use `dashboard.namespace` instead. The kubernetes namespace where this environment's dashboard should be deployed to.",
|
|
253
|
+
"minLength": 1
|
|
254
|
+
},
|
|
255
|
+
"flux_resource_path": {
|
|
256
|
+
"type": "string",
|
|
257
|
+
"description": "Deprecated. Use `dashboard.flux_resource_path` instead. The Flux resource path to associate with this environment. This must be the full resource path. For example, 'helm.toolkit.fluxcd.io/v2/namespaces/gitlab-agent/helmreleases/gitlab-agent'."
|
|
258
|
+
},
|
|
259
|
+
"managed_resources": {
|
|
260
|
+
"type": "object",
|
|
261
|
+
"description": "Used to configure the managed resources for this environment.",
|
|
262
|
+
"properties": {
|
|
263
|
+
"enabled": {
|
|
264
|
+
"type": "boolean",
|
|
265
|
+
"description": "Indicates whether the managed resources are enabled for this environment.",
|
|
266
|
+
"default": true
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
"dashboard": {
|
|
271
|
+
"type": "object",
|
|
272
|
+
"description": "Used to configure the dashboard for this environment.",
|
|
273
|
+
"properties": {
|
|
274
|
+
"namespace": {
|
|
275
|
+
"type": "string",
|
|
276
|
+
"description": "The kubernetes namespace where the dashboard for this environment should be deployed to.",
|
|
277
|
+
"minLength": 1
|
|
278
|
+
},
|
|
279
|
+
"flux_resource_path": {
|
|
280
|
+
"type": "string",
|
|
281
|
+
"description": "The Flux resource path to associate with this environment. This must be the full resource path. For example, 'helm.toolkit.fluxcd.io/v2/namespaces/gitlab-agent/helmreleases/gitlab-agent'."
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
},
|
|
287
|
+
"deployment_tier": {
|
|
288
|
+
"type": "string",
|
|
289
|
+
"description": "Explicitly specifies the tier of the deployment environment if non-standard environment name is used."
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
"required": [
|
|
293
|
+
"name"
|
|
294
|
+
]
|
|
295
|
+
}
|
|
296
|
+
]
|
|
297
|
+
},
|
|
298
|
+
"release": {
|
|
299
|
+
"type": "object",
|
|
300
|
+
"description": "Indicates that the job creates a Release.",
|
|
301
|
+
"additionalProperties": false,
|
|
302
|
+
"properties": {
|
|
303
|
+
"tag_name": {
|
|
304
|
+
"type": "string",
|
|
305
|
+
"description": "The tag_name must be specified. It can refer to an existing Git tag or can be specified by the user.",
|
|
306
|
+
"minLength": 1
|
|
307
|
+
},
|
|
308
|
+
"tag_message": {
|
|
309
|
+
"type": "string",
|
|
310
|
+
"description": "Message to use if creating a new annotated tag."
|
|
311
|
+
},
|
|
312
|
+
"description": {
|
|
313
|
+
"type": "string",
|
|
314
|
+
"description": "Specifies the longer description of the Release.",
|
|
315
|
+
"minLength": 1
|
|
316
|
+
},
|
|
317
|
+
"name": {
|
|
318
|
+
"type": "string",
|
|
319
|
+
"description": "The Release name. If omitted, it is populated with the value of release: tag_name."
|
|
320
|
+
},
|
|
321
|
+
"ref": {
|
|
322
|
+
"type": "string",
|
|
323
|
+
"description": "If the release: tag_name doesn’t exist yet, the release is created from ref. ref can be a commit SHA, another tag name, or a branch name."
|
|
324
|
+
},
|
|
325
|
+
"milestones": {
|
|
326
|
+
"type": "array",
|
|
327
|
+
"description": "The title of each milestone the release is associated with.",
|
|
328
|
+
"items": {
|
|
329
|
+
"type": "string"
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
"released_at": {
|
|
333
|
+
"type": "string",
|
|
334
|
+
"description": "The date and time when the release is ready. Defaults to the current date and time if not defined. Should be enclosed in quotes and expressed in ISO 8601 format.",
|
|
335
|
+
"format": "date-time",
|
|
336
|
+
"pattern": "^(?:[1-9]\\d{3}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1\\d|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[1-9]\\d(?:0[48]|[2468][048]|[13579][26])|(?:[2468][048]|[13579][26])00)-02-29)T(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:Z|[+-][01]\\d:[0-5]\\d)$"
|
|
337
|
+
},
|
|
338
|
+
"assets": {
|
|
339
|
+
"type": "object",
|
|
340
|
+
"additionalProperties": false,
|
|
341
|
+
"properties": {
|
|
342
|
+
"links": {
|
|
343
|
+
"type": "array",
|
|
344
|
+
"description": "Include asset links in the release.",
|
|
345
|
+
"items": {
|
|
346
|
+
"type": "object",
|
|
347
|
+
"additionalProperties": false,
|
|
348
|
+
"properties": {
|
|
349
|
+
"name": {
|
|
350
|
+
"type": "string",
|
|
351
|
+
"description": "The name of the link.",
|
|
352
|
+
"minLength": 1
|
|
353
|
+
},
|
|
354
|
+
"url": {
|
|
355
|
+
"type": "string",
|
|
356
|
+
"description": "The URL to download a file.",
|
|
357
|
+
"minLength": 1
|
|
358
|
+
},
|
|
359
|
+
"filepath": {
|
|
360
|
+
"type": "string",
|
|
361
|
+
"description": "The redirect link to the url."
|
|
362
|
+
},
|
|
363
|
+
"link_type": {
|
|
364
|
+
"type": "string",
|
|
365
|
+
"description": "The content kind of what users can download via url.",
|
|
366
|
+
"enum": [
|
|
367
|
+
"runbook",
|
|
368
|
+
"package",
|
|
369
|
+
"image",
|
|
370
|
+
"other"
|
|
371
|
+
]
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
"required": [
|
|
375
|
+
"name",
|
|
376
|
+
"url"
|
|
377
|
+
]
|
|
378
|
+
},
|
|
379
|
+
"minItems": 1
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
"required": [
|
|
383
|
+
"links"
|
|
384
|
+
]
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
"required": [
|
|
388
|
+
"tag_name",
|
|
389
|
+
"description"
|
|
390
|
+
]
|
|
391
|
+
},
|
|
392
|
+
"coverage": {
|
|
393
|
+
"type": "string",
|
|
394
|
+
"description": "Must be a regular expression, optionally but recommended to be quoted, and must be surrounded with '/'. Example: '/Code coverage: \\d+\\.\\d+/'",
|
|
395
|
+
"format": "regex",
|
|
396
|
+
"pattern": "^/.+/$"
|
|
397
|
+
},
|
|
398
|
+
"retry": {
|
|
399
|
+
"$ref": "#/definitions/retry"
|
|
400
|
+
},
|
|
401
|
+
"parallel": {
|
|
402
|
+
"$ref": "#/definitions/parallel"
|
|
403
|
+
},
|
|
404
|
+
"interruptible": {
|
|
405
|
+
"$ref": "#/definitions/interruptible"
|
|
406
|
+
},
|
|
407
|
+
"resource_group": {
|
|
408
|
+
"type": "string",
|
|
409
|
+
"description": "Limit job concurrency. Can be used to ensure that the Runner will not run certain jobs simultaneously."
|
|
410
|
+
},
|
|
411
|
+
"trigger": {
|
|
412
|
+
"markdownDescription": "Trigger allows you to define downstream pipeline trigger. When a job created from trigger definition is started by GitLab, a downstream pipeline gets created. [Learn More](https://docs.gitlab.com/ci/yaml/#trigger).",
|
|
413
|
+
"oneOf": [
|
|
414
|
+
{
|
|
415
|
+
"type": "object",
|
|
416
|
+
"markdownDescription": "Trigger a multi-project pipeline. [Learn More](https://docs.gitlab.com/ci/pipelines/downstream_pipelines/#multi-project-pipelines).",
|
|
417
|
+
"additionalProperties": false,
|
|
418
|
+
"properties": {
|
|
419
|
+
"project": {
|
|
420
|
+
"description": "Path to the project, e.g. `group/project`, or `group/sub-group/project`.",
|
|
421
|
+
"type": "string",
|
|
422
|
+
"pattern": "(?:\\S/\\S|\\$\\S+)"
|
|
423
|
+
},
|
|
424
|
+
"branch": {
|
|
425
|
+
"description": "The branch name that a downstream pipeline will use",
|
|
426
|
+
"type": "string"
|
|
427
|
+
},
|
|
428
|
+
"strategy": {
|
|
429
|
+
"description": "You can mirror or depend on the pipeline status from the triggered pipeline to the source bridge job by using strategy: `depend` or `mirror`",
|
|
430
|
+
"type": "string",
|
|
431
|
+
"enum": [
|
|
432
|
+
"depend",
|
|
433
|
+
"mirror"
|
|
434
|
+
]
|
|
435
|
+
},
|
|
436
|
+
"inputs": {
|
|
437
|
+
"$ref": "#/definitions/inputs"
|
|
438
|
+
},
|
|
439
|
+
"forward": {
|
|
440
|
+
"description": "Specify what to forward to the downstream pipeline.",
|
|
441
|
+
"type": "object",
|
|
442
|
+
"additionalProperties": false,
|
|
443
|
+
"properties": {
|
|
444
|
+
"yaml_variables": {
|
|
445
|
+
"type": "boolean",
|
|
446
|
+
"description": "Variables defined in the trigger job are passed to downstream pipelines.",
|
|
447
|
+
"default": true
|
|
448
|
+
},
|
|
449
|
+
"pipeline_variables": {
|
|
450
|
+
"type": "boolean",
|
|
451
|
+
"description": "Variables added for manual pipeline runs and scheduled pipelines are passed to downstream pipelines.",
|
|
452
|
+
"default": false
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
"required": [
|
|
458
|
+
"project"
|
|
459
|
+
],
|
|
460
|
+
"dependencies": {
|
|
461
|
+
"branch": [
|
|
462
|
+
"project"
|
|
463
|
+
]
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"type": "object",
|
|
468
|
+
"description": "Trigger a child pipeline. [Learn More](https://docs.gitlab.com/ci/pipelines/downstream_pipelines/#parent-child-pipelines).",
|
|
469
|
+
"additionalProperties": false,
|
|
470
|
+
"properties": {
|
|
471
|
+
"include": {
|
|
472
|
+
"oneOf": [
|
|
473
|
+
{
|
|
474
|
+
"description": "Relative path from local repository root (`/`) to the local YAML file to define the pipeline configuration.",
|
|
475
|
+
"type": "string",
|
|
476
|
+
"format": "uri-reference",
|
|
477
|
+
"pattern": "\\.ya?ml$"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"type": "array",
|
|
481
|
+
"description": "References a local file or an artifact from another job to define the pipeline configuration.",
|
|
482
|
+
"maxItems": 3,
|
|
483
|
+
"items": {
|
|
484
|
+
"oneOf": [
|
|
485
|
+
{
|
|
486
|
+
"type": "object",
|
|
487
|
+
"additionalProperties": false,
|
|
488
|
+
"properties": {
|
|
489
|
+
"local": {
|
|
490
|
+
"description": "Relative path from local repository root (`/`) to the local YAML file to define the pipeline configuration.",
|
|
491
|
+
"type": "string",
|
|
492
|
+
"format": "uri-reference",
|
|
493
|
+
"pattern": "\\.ya?ml$"
|
|
494
|
+
},
|
|
495
|
+
"inputs": {
|
|
496
|
+
"$ref": "#/definitions/inputs"
|
|
497
|
+
}
|
|
498
|
+
},
|
|
499
|
+
"required": [
|
|
500
|
+
"local"
|
|
501
|
+
]
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
"type": "object",
|
|
505
|
+
"additionalProperties": false,
|
|
506
|
+
"properties": {
|
|
507
|
+
"template": {
|
|
508
|
+
"description": "Name of the template YAML file to use in the pipeline configuration.",
|
|
509
|
+
"type": "string",
|
|
510
|
+
"format": "uri-reference",
|
|
511
|
+
"pattern": "\\.ya?ml$"
|
|
512
|
+
},
|
|
513
|
+
"inputs": {
|
|
514
|
+
"$ref": "#/definitions/inputs"
|
|
515
|
+
}
|
|
516
|
+
},
|
|
517
|
+
"required": [
|
|
518
|
+
"template"
|
|
519
|
+
]
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"type": "object",
|
|
523
|
+
"additionalProperties": false,
|
|
524
|
+
"properties": {
|
|
525
|
+
"artifact": {
|
|
526
|
+
"description": "Relative path to the generated YAML file which is extracted from the artifacts and used as the configuration for triggering the child pipeline.",
|
|
527
|
+
"type": "string",
|
|
528
|
+
"format": "uri-reference",
|
|
529
|
+
"pattern": "\\.ya?ml$"
|
|
530
|
+
},
|
|
531
|
+
"job": {
|
|
532
|
+
"description": "Job name which generates the artifact",
|
|
533
|
+
"type": "string"
|
|
534
|
+
},
|
|
535
|
+
"inputs": {
|
|
536
|
+
"$ref": "#/definitions/inputs"
|
|
537
|
+
}
|
|
538
|
+
},
|
|
539
|
+
"required": [
|
|
540
|
+
"artifact",
|
|
541
|
+
"job"
|
|
542
|
+
]
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
"type": "object",
|
|
546
|
+
"additionalProperties": false,
|
|
547
|
+
"properties": {
|
|
548
|
+
"project": {
|
|
549
|
+
"description": "Path to another private project under the same GitLab instance, like `group/project` or `group/sub-group/project`.",
|
|
550
|
+
"type": "string",
|
|
551
|
+
"pattern": "(?:\\S/\\S|\\$\\S+)"
|
|
552
|
+
},
|
|
553
|
+
"ref": {
|
|
554
|
+
"description": "Branch/Tag/Commit hash for the target project.",
|
|
555
|
+
"minLength": 1,
|
|
556
|
+
"type": "string"
|
|
557
|
+
},
|
|
558
|
+
"file": {
|
|
559
|
+
"description": "Relative path from repository root (`/`) to the pipeline configuration YAML file.",
|
|
560
|
+
"type": "string",
|
|
561
|
+
"format": "uri-reference",
|
|
562
|
+
"pattern": "\\.ya?ml$"
|
|
563
|
+
},
|
|
564
|
+
"inputs": {
|
|
565
|
+
"$ref": "#/definitions/inputs"
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
"required": [
|
|
569
|
+
"project",
|
|
570
|
+
"file"
|
|
571
|
+
]
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
"type": "object",
|
|
575
|
+
"additionalProperties": false,
|
|
576
|
+
"properties": {
|
|
577
|
+
"component": {
|
|
578
|
+
"description": "Local path to component directory or full path to external component directory.",
|
|
579
|
+
"type": "string",
|
|
580
|
+
"format": "uri-reference"
|
|
581
|
+
},
|
|
582
|
+
"inputs": {
|
|
583
|
+
"$ref": "#/definitions/inputs"
|
|
584
|
+
}
|
|
585
|
+
},
|
|
586
|
+
"required": [
|
|
587
|
+
"component"
|
|
588
|
+
]
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"type": "object",
|
|
592
|
+
"additionalProperties": false,
|
|
593
|
+
"properties": {
|
|
594
|
+
"remote": {
|
|
595
|
+
"description": "URL to a `yaml`/`yml` template file using HTTP/HTTPS.",
|
|
596
|
+
"type": "string",
|
|
597
|
+
"format": "uri-reference",
|
|
598
|
+
"pattern": "^https?://.+\\.ya?ml$"
|
|
599
|
+
},
|
|
600
|
+
"inputs": {
|
|
601
|
+
"$ref": "#/definitions/inputs"
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
"required": [
|
|
605
|
+
"remote"
|
|
606
|
+
]
|
|
607
|
+
}
|
|
608
|
+
]
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
]
|
|
612
|
+
},
|
|
613
|
+
"strategy": {
|
|
614
|
+
"description": "You can mirror or depend on the pipeline status from the triggered pipeline to the source bridge job by using strategy: `depend` or `mirror`",
|
|
615
|
+
"type": "string",
|
|
616
|
+
"enum": [
|
|
617
|
+
"depend",
|
|
618
|
+
"mirror"
|
|
619
|
+
]
|
|
620
|
+
},
|
|
621
|
+
"forward": {
|
|
622
|
+
"description": "Specify what to forward to the downstream pipeline.",
|
|
623
|
+
"type": "object",
|
|
624
|
+
"additionalProperties": false,
|
|
625
|
+
"properties": {
|
|
626
|
+
"yaml_variables": {
|
|
627
|
+
"type": "boolean",
|
|
628
|
+
"description": "Variables defined in the trigger job are passed to downstream pipelines.",
|
|
629
|
+
"default": true
|
|
630
|
+
},
|
|
631
|
+
"pipeline_variables": {
|
|
632
|
+
"type": "boolean",
|
|
633
|
+
"description": "Variables added for manual pipeline runs and scheduled pipelines are passed to downstream pipelines.",
|
|
634
|
+
"default": false
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
"markdownDescription": "Path to the project, e.g. `group/project`, or `group/sub-group/project`. [Learn More](https://docs.gitlab.com/ci/yaml/#trigger).",
|
|
642
|
+
"type": "string",
|
|
643
|
+
"pattern": "(?:\\S/\\S|\\$\\S+)"
|
|
644
|
+
}
|
|
645
|
+
]
|
|
646
|
+
},
|
|
647
|
+
"inherit": {
|
|
648
|
+
"type": "object",
|
|
649
|
+
"markdownDescription": "Controls inheritance of globally-defined defaults and variables. Boolean values control inheritance of all default: or variables: keywords. To inherit only a subset of default: or variables: keywords, specify what you wish to inherit. Anything not listed is not inherited. [Learn More](https://docs.gitlab.com/ci/yaml/#inherit).",
|
|
650
|
+
"properties": {
|
|
651
|
+
"default": {
|
|
652
|
+
"markdownDescription": "Whether to inherit all globally-defined defaults or not. Or subset of inherited defaults. [Learn more](https://docs.gitlab.com/ci/yaml/#inheritdefault).",
|
|
653
|
+
"oneOf": [
|
|
654
|
+
{
|
|
655
|
+
"type": "boolean"
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
"type": "array",
|
|
659
|
+
"items": {
|
|
660
|
+
"type": "string",
|
|
661
|
+
"enum": [
|
|
662
|
+
"after_script",
|
|
663
|
+
"artifacts",
|
|
664
|
+
"before_script",
|
|
665
|
+
"cache",
|
|
666
|
+
"image",
|
|
667
|
+
"interruptible",
|
|
668
|
+
"retry",
|
|
669
|
+
"services",
|
|
670
|
+
"tags",
|
|
671
|
+
"timeout"
|
|
672
|
+
]
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
]
|
|
676
|
+
},
|
|
677
|
+
"variables": {
|
|
678
|
+
"markdownDescription": "Whether to inherit all globally-defined variables or not. Or subset of inherited variables. [Learn More](https://docs.gitlab.com/ci/yaml/#inheritvariables).",
|
|
679
|
+
"oneOf": [
|
|
680
|
+
{
|
|
681
|
+
"type": "boolean"
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
"type": "array",
|
|
685
|
+
"items": {
|
|
686
|
+
"type": "string"
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
]
|
|
690
|
+
}
|
|
691
|
+
},
|
|
692
|
+
"additionalProperties": false
|
|
693
|
+
},
|
|
694
|
+
"publish": {
|
|
695
|
+
"description": "Deprecated. Use `pages.publish` instead. A path to a directory that contains the files to be published with Pages.",
|
|
696
|
+
"type": "string"
|
|
697
|
+
},
|
|
698
|
+
"pages": {
|
|
699
|
+
"oneOf": [
|
|
700
|
+
{
|
|
701
|
+
"type": "object",
|
|
702
|
+
"additionalProperties": false,
|
|
703
|
+
"properties": {
|
|
704
|
+
"path_prefix": {
|
|
705
|
+
"type": "string",
|
|
706
|
+
"markdownDescription": "The GitLab Pages URL path prefix used in this version of pages. The given value is converted to lowercase, shortened to 63 bytes, and everything except alphanumeric characters is replaced with a hyphen. Leading and trailing hyphens are not permitted."
|
|
707
|
+
},
|
|
708
|
+
"expire_in": {
|
|
709
|
+
"type": "string",
|
|
710
|
+
"markdownDescription": "How long the deployment should be active. Deployments that have expired are no longer available on the web. Supports a wide variety of formats, e.g. '1 week', '3 mins 4 sec', '2 hrs 20 min', '2h20min', '6 mos 1 day', '47 yrs 6 mos and 4d', '3 weeks and 2 days'. Set to 'never' to prevent extra deployments from expiring. [Learn More](https://docs.gitlab.com/ci/yaml/#pagesexpire_in)."
|
|
711
|
+
},
|
|
712
|
+
"publish": {
|
|
713
|
+
"type": "string",
|
|
714
|
+
"markdownDescription": "A path to a directory that contains the files to be published with Pages."
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"type": "boolean",
|
|
720
|
+
"markdownDescription": "Whether this job should trigger a Pages deploy (Replaces the need to name the job `pages`)",
|
|
721
|
+
"default": false
|
|
722
|
+
}
|
|
723
|
+
]
|
|
724
|
+
}
|
|
725
|
+
},
|
|
726
|
+
"oneOf": [
|
|
727
|
+
{
|
|
728
|
+
"properties": {
|
|
729
|
+
"when": {
|
|
730
|
+
"enum": [
|
|
731
|
+
"delayed"
|
|
732
|
+
]
|
|
733
|
+
}
|
|
734
|
+
},
|
|
735
|
+
"required": [
|
|
736
|
+
"when",
|
|
737
|
+
"start_in"
|
|
738
|
+
]
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
"properties": {
|
|
742
|
+
"when": {
|
|
743
|
+
"not": {
|
|
744
|
+
"enum": [
|
|
745
|
+
"delayed"
|
|
746
|
+
]
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
]
|
|
752
|
+
},
|
|
753
|
+
"image": {
|
|
754
|
+
"oneOf": [
|
|
755
|
+
{
|
|
756
|
+
"type": "string",
|
|
757
|
+
"minLength": 1,
|
|
758
|
+
"description": "Full name of the image that should be used. It should contain the Registry part if needed."
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
"type": "object",
|
|
762
|
+
"description": "Specifies the docker image to use for the job or globally for all jobs. Job configuration takes precedence over global setting. Requires a certain kind of GitLab runner executor.",
|
|
763
|
+
"additionalProperties": false,
|
|
764
|
+
"properties": {
|
|
765
|
+
"name": {
|
|
766
|
+
"type": "string",
|
|
767
|
+
"minLength": 1,
|
|
768
|
+
"description": "Full name of the image that should be used. It should contain the Registry part if needed."
|
|
769
|
+
},
|
|
770
|
+
"entrypoint": {
|
|
771
|
+
"type": "array",
|
|
772
|
+
"description": "Command or script that should be executed as the container's entrypoint. It will be translated to Docker's --entrypoint option while creating the container. The syntax is similar to Dockerfile's ENTRYPOINT directive, where each shell token is a separate string in the array.",
|
|
773
|
+
"minItems": 1
|
|
774
|
+
},
|
|
775
|
+
"docker": {
|
|
776
|
+
"type": "object",
|
|
777
|
+
"markdownDescription": "Options to pass to Runners Docker Executor. [Learn More](https://docs.gitlab.com/ci/yaml/#imagedocker)",
|
|
778
|
+
"additionalProperties": false,
|
|
779
|
+
"properties": {
|
|
780
|
+
"platform": {
|
|
781
|
+
"type": "string",
|
|
782
|
+
"minLength": 1,
|
|
783
|
+
"description": "Image architecture to pull."
|
|
784
|
+
},
|
|
785
|
+
"user": {
|
|
786
|
+
"type": "string",
|
|
787
|
+
"minLength": 1,
|
|
788
|
+
"maxLength": 255,
|
|
789
|
+
"description": "Username or UID to use for the container."
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
},
|
|
793
|
+
"kubernetes": {
|
|
794
|
+
"type": "object",
|
|
795
|
+
"markdownDescription": "Options to pass to Runners Kubernetes Executor. [Learn More](https://docs.gitlab.com/ci/yaml/#imagekubernetes)",
|
|
796
|
+
"additionalProperties": false,
|
|
797
|
+
"properties": {
|
|
798
|
+
"user": {
|
|
799
|
+
"type": [
|
|
800
|
+
"string",
|
|
801
|
+
"integer"
|
|
802
|
+
],
|
|
803
|
+
"minLength": 1,
|
|
804
|
+
"maxLength": 255,
|
|
805
|
+
"description": "Username or UID to use for the container. It also supports the UID:GID format."
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
},
|
|
809
|
+
"pull_policy": {
|
|
810
|
+
"markdownDescription": "Specifies how to pull the image in Runner. It can be one of `always`, `never` or `if-not-present`. The default value is `always`. [Learn more](https://docs.gitlab.com/ci/yaml/#imagepull_policy).",
|
|
811
|
+
"default": "always",
|
|
812
|
+
"oneOf": [
|
|
813
|
+
{
|
|
814
|
+
"type": "string",
|
|
815
|
+
"enum": [
|
|
816
|
+
"always",
|
|
817
|
+
"never",
|
|
818
|
+
"if-not-present"
|
|
819
|
+
]
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
"type": "array",
|
|
823
|
+
"items": {
|
|
824
|
+
"type": "string",
|
|
825
|
+
"enum": [
|
|
826
|
+
"always",
|
|
827
|
+
"never",
|
|
828
|
+
"if-not-present"
|
|
829
|
+
]
|
|
830
|
+
},
|
|
831
|
+
"minItems": 1,
|
|
832
|
+
"uniqueItems": true
|
|
833
|
+
}
|
|
834
|
+
]
|
|
835
|
+
}
|
|
836
|
+
},
|
|
837
|
+
"required": [
|
|
838
|
+
"name"
|
|
839
|
+
]
|
|
840
|
+
}
|
|
841
|
+
],
|
|
842
|
+
"markdownDescription": "Specifies the docker image to use for the job or globally for all jobs. Job configuration takes precedence over global setting. Requires a certain kind of GitLab runner executor. [Learn More](https://docs.gitlab.com/ci/yaml/#image)."
|
|
843
|
+
},
|
|
844
|
+
"services": {
|
|
845
|
+
"type": "array",
|
|
846
|
+
"markdownDescription": "Similar to `image` property, but will link the specified services to the `image` container. [Learn More](https://docs.gitlab.com/ci/yaml/#services).",
|
|
847
|
+
"items": {
|
|
848
|
+
"oneOf": [
|
|
849
|
+
{
|
|
850
|
+
"type": "string",
|
|
851
|
+
"minLength": 1,
|
|
852
|
+
"description": "Full name of the image that should be used. It should contain the Registry part if needed."
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
"type": "object",
|
|
856
|
+
"description": "",
|
|
857
|
+
"additionalProperties": false,
|
|
858
|
+
"properties": {
|
|
859
|
+
"name": {
|
|
860
|
+
"type": "string",
|
|
861
|
+
"description": "Full name of the image that should be used. It should contain the Registry part if needed.",
|
|
862
|
+
"minLength": 1
|
|
863
|
+
},
|
|
864
|
+
"entrypoint": {
|
|
865
|
+
"type": "array",
|
|
866
|
+
"markdownDescription": "Command or script that should be executed as the container's entrypoint. It will be translated to Docker's --entrypoint option while creating the container. The syntax is similar to Dockerfile's ENTRYPOINT directive, where each shell token is a separate string in the array. [Learn More](https://docs.gitlab.com/ci/services/#available-settings-for-services)",
|
|
867
|
+
"minItems": 1,
|
|
868
|
+
"items": {
|
|
869
|
+
"type": "string"
|
|
870
|
+
}
|
|
871
|
+
},
|
|
872
|
+
"docker": {
|
|
873
|
+
"type": "object",
|
|
874
|
+
"markdownDescription": "Options to pass to Runners Docker Executor. [Learn More](https://docs.gitlab.com/ci/yaml/#servicesdocker)",
|
|
875
|
+
"additionalProperties": false,
|
|
876
|
+
"properties": {
|
|
877
|
+
"platform": {
|
|
878
|
+
"type": "string",
|
|
879
|
+
"minLength": 1,
|
|
880
|
+
"description": "Image architecture to pull."
|
|
881
|
+
},
|
|
882
|
+
"user": {
|
|
883
|
+
"type": "string",
|
|
884
|
+
"minLength": 1,
|
|
885
|
+
"maxLength": 255,
|
|
886
|
+
"description": "Username or UID to use for the container."
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
},
|
|
890
|
+
"kubernetes": {
|
|
891
|
+
"type": "object",
|
|
892
|
+
"markdownDescription": "Options to pass to Runners Kubernetes Executor. [Learn More](https://docs.gitlab.com/ci/yaml/#imagekubernetes)",
|
|
893
|
+
"additionalProperties": false,
|
|
894
|
+
"properties": {
|
|
895
|
+
"user": {
|
|
896
|
+
"type": [
|
|
897
|
+
"string",
|
|
898
|
+
"integer"
|
|
899
|
+
],
|
|
900
|
+
"minLength": 1,
|
|
901
|
+
"maxLength": 255,
|
|
902
|
+
"description": "Username or UID to use for the container. It also supports the UID:GID format."
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
},
|
|
906
|
+
"pull_policy": {
|
|
907
|
+
"markdownDescription": "Specifies how to pull the image in Runner. It can be one of `always`, `never` or `if-not-present`. The default value is `always`. [Learn more](https://docs.gitlab.com/ci/yaml/#servicespull_policy).",
|
|
908
|
+
"default": "always",
|
|
909
|
+
"oneOf": [
|
|
910
|
+
{
|
|
911
|
+
"type": "string",
|
|
912
|
+
"enum": [
|
|
913
|
+
"always",
|
|
914
|
+
"never",
|
|
915
|
+
"if-not-present"
|
|
916
|
+
]
|
|
917
|
+
},
|
|
918
|
+
{
|
|
919
|
+
"type": "array",
|
|
920
|
+
"items": {
|
|
921
|
+
"type": "string",
|
|
922
|
+
"enum": [
|
|
923
|
+
"always",
|
|
924
|
+
"never",
|
|
925
|
+
"if-not-present"
|
|
926
|
+
]
|
|
927
|
+
},
|
|
928
|
+
"minItems": 1,
|
|
929
|
+
"uniqueItems": true
|
|
930
|
+
}
|
|
931
|
+
]
|
|
932
|
+
},
|
|
933
|
+
"command": {
|
|
934
|
+
"markdownDescription": "Command or script that should be used as the container's command. It will be translated to arguments passed to Docker after the image's name. The syntax is similar to Dockerfile's CMD directive, where each shell token is a separate string in the array. [Learn More](https://docs.gitlab.com/ci/services/#available-settings-for-services)",
|
|
935
|
+
"$ref": "#/definitions/script"
|
|
936
|
+
},
|
|
937
|
+
"alias": {
|
|
938
|
+
"type": "string",
|
|
939
|
+
"markdownDescription": "Additional alias that can be used to access the service from the job's container. Read Accessing the services for more information. [Learn More](https://docs.gitlab.com/ci/services/#available-settings-for-services)",
|
|
940
|
+
"minLength": 1
|
|
941
|
+
},
|
|
942
|
+
"variables": {
|
|
943
|
+
"$ref": "#/definitions/jobVariables",
|
|
944
|
+
"markdownDescription": "Additional environment variables that are passed exclusively to the service. Service variables cannot reference themselves. [Learn More](https://docs.gitlab.com/ci/services/#available-settings-for-services)"
|
|
945
|
+
}
|
|
946
|
+
},
|
|
947
|
+
"required": [
|
|
948
|
+
"name"
|
|
949
|
+
]
|
|
950
|
+
}
|
|
951
|
+
]
|
|
952
|
+
}
|
|
953
|
+
},
|
|
954
|
+
"artifacts": {
|
|
955
|
+
"type": [
|
|
956
|
+
"object",
|
|
957
|
+
"null"
|
|
958
|
+
],
|
|
959
|
+
"markdownDescription": "Used to specify a list of files and directories that should be attached to the job if it succeeds. Artifacts are sent to GitLab where they can be downloaded. [Learn More](https://docs.gitlab.com/ci/yaml/#artifacts).",
|
|
960
|
+
"additionalProperties": false,
|
|
961
|
+
"properties": {
|
|
962
|
+
"paths": {
|
|
963
|
+
"type": "array",
|
|
964
|
+
"markdownDescription": "A list of paths to files/folders that should be included in the artifact. [Learn More](https://docs.gitlab.com/ci/yaml/#artifactspaths).",
|
|
965
|
+
"items": {
|
|
966
|
+
"type": "string"
|
|
967
|
+
},
|
|
968
|
+
"minItems": 1
|
|
969
|
+
},
|
|
970
|
+
"exclude": {
|
|
971
|
+
"type": "array",
|
|
972
|
+
"markdownDescription": "A list of paths to files/folders that should be excluded in the artifact. [Learn More](https://docs.gitlab.com/ci/yaml/#artifactsexclude).",
|
|
973
|
+
"items": {
|
|
974
|
+
"type": "string"
|
|
975
|
+
},
|
|
976
|
+
"minItems": 1
|
|
977
|
+
},
|
|
978
|
+
"expose_as": {
|
|
979
|
+
"type": "string",
|
|
980
|
+
"markdownDescription": "Can be used to expose job artifacts in the merge request UI. GitLab will add a link <expose_as> to the relevant merge request that points to the artifact. [Learn More](https://docs.gitlab.com/ci/yaml/#artifactsexpose_as)."
|
|
981
|
+
},
|
|
982
|
+
"name": {
|
|
983
|
+
"type": "string",
|
|
984
|
+
"markdownDescription": "Name for the archive created on job success. Can use variables in the name, e.g. '$CI_JOB_NAME' [Learn More](https://docs.gitlab.com/ci/yaml/#artifactsname)."
|
|
985
|
+
},
|
|
986
|
+
"untracked": {
|
|
987
|
+
"type": "boolean",
|
|
988
|
+
"markdownDescription": "Whether to add all untracked files (along with 'artifacts.paths') to the artifact. [Learn More](https://docs.gitlab.com/ci/yaml/#artifactsuntracked).",
|
|
989
|
+
"default": false
|
|
990
|
+
},
|
|
991
|
+
"when": {
|
|
992
|
+
"markdownDescription": "Configure when artifacts are uploaded depended on job status. [Learn More](https://docs.gitlab.com/ci/yaml/#artifactswhen).",
|
|
993
|
+
"default": "on_success",
|
|
994
|
+
"type": "string",
|
|
995
|
+
"enum": [
|
|
996
|
+
"on_success",
|
|
997
|
+
"on_failure",
|
|
998
|
+
"always"
|
|
999
|
+
]
|
|
1000
|
+
},
|
|
1001
|
+
"access": {
|
|
1002
|
+
"markdownDescription": "Configure who can access the artifacts. [Learn More](https://docs.gitlab.com/ci/yaml/#artifactsaccess).",
|
|
1003
|
+
"default": "all",
|
|
1004
|
+
"type": "string",
|
|
1005
|
+
"enum": [
|
|
1006
|
+
"none",
|
|
1007
|
+
"developer",
|
|
1008
|
+
"maintainer",
|
|
1009
|
+
"all"
|
|
1010
|
+
]
|
|
1011
|
+
},
|
|
1012
|
+
"expire_in": {
|
|
1013
|
+
"type": "string",
|
|
1014
|
+
"markdownDescription": "How long artifacts should be kept. They are saved 30 days by default. Artifacts that have expired are removed periodically via cron job. Supports a wide variety of formats, e.g. '1 week', '3 mins 4 sec', '2 hrs 20 min', '2h20min', '6 mos 1 day', '47 yrs 6 mos and 4d', '3 weeks and 2 days'. [Learn More](https://docs.gitlab.com/ci/yaml/#artifactsexpire_in).",
|
|
1015
|
+
"default": "30 days"
|
|
1016
|
+
},
|
|
1017
|
+
"reports": {
|
|
1018
|
+
"type": "object",
|
|
1019
|
+
"markdownDescription": "Reports will be uploaded as artifacts, and often displayed in the GitLab UI, such as in merge requests. [Learn More](https://docs.gitlab.com/ci/yaml/#artifactsreports).",
|
|
1020
|
+
"additionalProperties": false,
|
|
1021
|
+
"properties": {
|
|
1022
|
+
"accessibility": {
|
|
1023
|
+
"type": "string",
|
|
1024
|
+
"description": "Path to JSON file with accessibility report."
|
|
1025
|
+
},
|
|
1026
|
+
"annotations": {
|
|
1027
|
+
"type": "string",
|
|
1028
|
+
"description": "Path to JSON file with annotations report."
|
|
1029
|
+
},
|
|
1030
|
+
"junit": {
|
|
1031
|
+
"description": "Path for file(s) that should be parsed as JUnit XML result",
|
|
1032
|
+
"oneOf": [
|
|
1033
|
+
{
|
|
1034
|
+
"type": "string",
|
|
1035
|
+
"description": "Path to a single XML file"
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
"type": "array",
|
|
1039
|
+
"description": "A list of paths to XML files that will automatically be concatenated into a single file",
|
|
1040
|
+
"items": {
|
|
1041
|
+
"type": "string"
|
|
1042
|
+
},
|
|
1043
|
+
"minItems": 1
|
|
1044
|
+
}
|
|
1045
|
+
]
|
|
1046
|
+
},
|
|
1047
|
+
"browser_performance": {
|
|
1048
|
+
"type": "string",
|
|
1049
|
+
"description": "Path to a single file with browser performance metric report(s)."
|
|
1050
|
+
},
|
|
1051
|
+
"coverage_report": {
|
|
1052
|
+
"type": [
|
|
1053
|
+
"object",
|
|
1054
|
+
"null"
|
|
1055
|
+
],
|
|
1056
|
+
"description": "Used to collect coverage reports from the job.",
|
|
1057
|
+
"properties": {
|
|
1058
|
+
"coverage_format": {
|
|
1059
|
+
"description": "Code coverage format used by the test framework.",
|
|
1060
|
+
"enum": [
|
|
1061
|
+
"cobertura",
|
|
1062
|
+
"jacoco"
|
|
1063
|
+
]
|
|
1064
|
+
},
|
|
1065
|
+
"path": {
|
|
1066
|
+
"description": "Path to the coverage report file that should be parsed.",
|
|
1067
|
+
"type": "string",
|
|
1068
|
+
"minLength": 1
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
},
|
|
1072
|
+
"codequality": {
|
|
1073
|
+
"$ref": "#/definitions/string_file_list",
|
|
1074
|
+
"description": "Path to file or list of files with code quality report(s) (such as Code Climate)."
|
|
1075
|
+
},
|
|
1076
|
+
"dotenv": {
|
|
1077
|
+
"$ref": "#/definitions/string_file_list",
|
|
1078
|
+
"description": "Path to file or list of files containing runtime-created variables for this job."
|
|
1079
|
+
},
|
|
1080
|
+
"lsif": {
|
|
1081
|
+
"$ref": "#/definitions/string_file_list",
|
|
1082
|
+
"description": "Path to file or list of files containing code intelligence (Language Server Index Format)."
|
|
1083
|
+
},
|
|
1084
|
+
"sast": {
|
|
1085
|
+
"$ref": "#/definitions/string_file_list",
|
|
1086
|
+
"description": "Path to file or list of files with SAST vulnerabilities report(s)."
|
|
1087
|
+
},
|
|
1088
|
+
"dependency_scanning": {
|
|
1089
|
+
"$ref": "#/definitions/string_file_list",
|
|
1090
|
+
"description": "Path to file or list of files with Dependency scanning vulnerabilities report(s)."
|
|
1091
|
+
},
|
|
1092
|
+
"container_scanning": {
|
|
1093
|
+
"$ref": "#/definitions/string_file_list",
|
|
1094
|
+
"description": "Path to file or list of files with Container scanning vulnerabilities report(s)."
|
|
1095
|
+
},
|
|
1096
|
+
"dast": {
|
|
1097
|
+
"$ref": "#/definitions/string_file_list",
|
|
1098
|
+
"description": "Path to file or list of files with DAST vulnerabilities report(s)."
|
|
1099
|
+
},
|
|
1100
|
+
"license_management": {
|
|
1101
|
+
"$ref": "#/definitions/string_file_list",
|
|
1102
|
+
"description": "Deprecated in 12.8: Path to file or list of files with license report(s)."
|
|
1103
|
+
},
|
|
1104
|
+
"license_scanning": {
|
|
1105
|
+
"$ref": "#/definitions/string_file_list",
|
|
1106
|
+
"description": "Path to file or list of files with license report(s)."
|
|
1107
|
+
},
|
|
1108
|
+
"requirements": {
|
|
1109
|
+
"$ref": "#/definitions/string_file_list",
|
|
1110
|
+
"description": "Path to file or list of files with requirements report(s)."
|
|
1111
|
+
},
|
|
1112
|
+
"secret_detection": {
|
|
1113
|
+
"$ref": "#/definitions/string_file_list",
|
|
1114
|
+
"description": "Path to file or list of files with secret detection report(s)."
|
|
1115
|
+
},
|
|
1116
|
+
"metrics": {
|
|
1117
|
+
"$ref": "#/definitions/string_file_list",
|
|
1118
|
+
"description": "Path to file or list of files with custom metrics report(s)."
|
|
1119
|
+
},
|
|
1120
|
+
"terraform": {
|
|
1121
|
+
"$ref": "#/definitions/string_file_list",
|
|
1122
|
+
"description": "Path to file or list of files with terraform plan(s)."
|
|
1123
|
+
},
|
|
1124
|
+
"cyclonedx": {
|
|
1125
|
+
"$ref": "#/definitions/string_file_list",
|
|
1126
|
+
"markdownDescription": "Path to file or list of files with cyclonedx report(s). [Learn More](https://docs.gitlab.com/ci/yaml/artifacts_reports/#artifactsreportscyclonedx)."
|
|
1127
|
+
},
|
|
1128
|
+
"load_performance": {
|
|
1129
|
+
"$ref": "#/definitions/string_file_list",
|
|
1130
|
+
"markdownDescription": "Path to file or list of files with load performance testing report(s). [Learn More](https://docs.gitlab.com/ci/yaml/artifacts_reports/#artifactsreportsload_performance)."
|
|
1131
|
+
},
|
|
1132
|
+
"repository_xray": {
|
|
1133
|
+
"$ref": "#/definitions/string_file_list",
|
|
1134
|
+
"description": "Path to file or list of files with Repository X-Ray report(s)."
|
|
1135
|
+
}
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
},
|
|
1140
|
+
"cache_item": {
|
|
1141
|
+
"type": "object",
|
|
1142
|
+
"properties": {
|
|
1143
|
+
"key": {
|
|
1144
|
+
"markdownDescription": "Use the `cache:key` keyword to give each cache a unique identifying key. All jobs that use the same cache key use the same cache, including in different pipelines. Must be used with `cache:path`, or nothing is cached. [Learn More](https://docs.gitlab.com/ci/yaml/#cachekey).",
|
|
1145
|
+
"oneOf": [
|
|
1146
|
+
{
|
|
1147
|
+
"type": "string",
|
|
1148
|
+
"pattern": "^[^/]*[^./][^/]*$"
|
|
1149
|
+
},
|
|
1150
|
+
{
|
|
1151
|
+
"type": "object",
|
|
1152
|
+
"properties": {
|
|
1153
|
+
"files": {
|
|
1154
|
+
"markdownDescription": "Use the `cache:key:files` keyword to generate a new cache key when specified file content changes. Cache keys remain stable across branches with identical file content. [Learn More](https://docs.gitlab.com/ci/yaml/#cachekeyfiles)",
|
|
1155
|
+
"type": "array",
|
|
1156
|
+
"items": {
|
|
1157
|
+
"type": "string"
|
|
1158
|
+
},
|
|
1159
|
+
"minItems": 1,
|
|
1160
|
+
"maxItems": 2
|
|
1161
|
+
},
|
|
1162
|
+
"files_commits": {
|
|
1163
|
+
"markdownDescription": "Use the `cache:key:files_commits` keyword to generate a new cache key when the latest commit changes for the specified files. [Learn More](https://docs.gitlab.com/ci/yaml/#cachekeyfiles_commits)",
|
|
1164
|
+
"type": "array",
|
|
1165
|
+
"items": {
|
|
1166
|
+
"type": "string"
|
|
1167
|
+
},
|
|
1168
|
+
"minItems": 1,
|
|
1169
|
+
"maxItems": 2
|
|
1170
|
+
},
|
|
1171
|
+
"prefix": {
|
|
1172
|
+
"markdownDescription": "Use `cache:key:prefix` to combine a prefix with the SHA computed for `cache:key:files` or `cache:key:files_commits`. [Learn More](https://docs.gitlab.com/ci/yaml/#cachekeyprefix)",
|
|
1173
|
+
"type": "string"
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
]
|
|
1178
|
+
},
|
|
1179
|
+
"paths": {
|
|
1180
|
+
"type": "array",
|
|
1181
|
+
"markdownDescription": "Use the `cache:paths` keyword to choose which files or directories to cache. [Learn More](https://docs.gitlab.com/ci/yaml/#cachepaths)",
|
|
1182
|
+
"items": {
|
|
1183
|
+
"type": "string"
|
|
1184
|
+
}
|
|
1185
|
+
},
|
|
1186
|
+
"policy": {
|
|
1187
|
+
"type": "string",
|
|
1188
|
+
"markdownDescription": "Determines the strategy for downloading and updating the cache. [Learn More](https://docs.gitlab.com/ci/yaml/#cachepolicy)",
|
|
1189
|
+
"default": "pull-push",
|
|
1190
|
+
"pattern": "pull-push|pull|push|\\$\\w{1,255}"
|
|
1191
|
+
},
|
|
1192
|
+
"unprotect": {
|
|
1193
|
+
"type": "boolean",
|
|
1194
|
+
"markdownDescription": "Use `unprotect: true` to set a cache to be shared between protected and unprotected branches.",
|
|
1195
|
+
"default": false
|
|
1196
|
+
},
|
|
1197
|
+
"untracked": {
|
|
1198
|
+
"type": "boolean",
|
|
1199
|
+
"markdownDescription": "Use `untracked: true` to cache all files that are untracked in your Git repository. [Learn More](https://docs.gitlab.com/ci/yaml/#cacheuntracked)",
|
|
1200
|
+
"default": false
|
|
1201
|
+
},
|
|
1202
|
+
"when": {
|
|
1203
|
+
"type": "string",
|
|
1204
|
+
"markdownDescription": "Defines when to save the cache, based on the status of the job. [Learn More](https://docs.gitlab.com/ci/yaml/#cachewhen).",
|
|
1205
|
+
"default": "on_success",
|
|
1206
|
+
"enum": [
|
|
1207
|
+
"on_success",
|
|
1208
|
+
"on_failure",
|
|
1209
|
+
"always"
|
|
1210
|
+
]
|
|
1211
|
+
},
|
|
1212
|
+
"fallback_keys": {
|
|
1213
|
+
"type": "array",
|
|
1214
|
+
"markdownDescription": "List of keys to download cache from if no cache hit occurred for key",
|
|
1215
|
+
"items": {
|
|
1216
|
+
"type": "string"
|
|
1217
|
+
},
|
|
1218
|
+
"maxItems": 5
|
|
1219
|
+
}
|
|
1220
|
+
}
|
|
1221
|
+
},
|
|
1222
|
+
"rules": {
|
|
1223
|
+
"type": [
|
|
1224
|
+
"array",
|
|
1225
|
+
"null"
|
|
1226
|
+
],
|
|
1227
|
+
"markdownDescription": "Rules allows for an array of individual rule objects to be evaluated in order, until one matches and dynamically provides attributes to the job. [Learn More](https://docs.gitlab.com/ci/yaml/#rules).",
|
|
1228
|
+
"items": {
|
|
1229
|
+
"anyOf": [
|
|
1230
|
+
{
|
|
1231
|
+
"type": "object",
|
|
1232
|
+
"additionalProperties": false,
|
|
1233
|
+
"properties": {
|
|
1234
|
+
"if": {
|
|
1235
|
+
"$ref": "#/definitions/if"
|
|
1236
|
+
},
|
|
1237
|
+
"changes": {
|
|
1238
|
+
"$ref": "#/definitions/changes"
|
|
1239
|
+
},
|
|
1240
|
+
"exists": {
|
|
1241
|
+
"$ref": "#/definitions/exists"
|
|
1242
|
+
},
|
|
1243
|
+
"variables": {
|
|
1244
|
+
"$ref": "#/definitions/rulesVariables"
|
|
1245
|
+
},
|
|
1246
|
+
"when": {
|
|
1247
|
+
"$ref": "#/definitions/when"
|
|
1248
|
+
},
|
|
1249
|
+
"start_in": {
|
|
1250
|
+
"$ref": "#/definitions/start_in"
|
|
1251
|
+
},
|
|
1252
|
+
"allow_failure": {
|
|
1253
|
+
"$ref": "#/definitions/allow_failure"
|
|
1254
|
+
},
|
|
1255
|
+
"needs": {
|
|
1256
|
+
"$ref": "#/definitions/rulesNeeds"
|
|
1257
|
+
},
|
|
1258
|
+
"interruptible": {
|
|
1259
|
+
"$ref": "#/definitions/interruptible"
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
},
|
|
1263
|
+
{
|
|
1264
|
+
"type": "string",
|
|
1265
|
+
"minLength": 1
|
|
1266
|
+
},
|
|
1267
|
+
{
|
|
1268
|
+
"type": "array",
|
|
1269
|
+
"minItems": 1,
|
|
1270
|
+
"items": {
|
|
1271
|
+
"type": "string"
|
|
1272
|
+
}
|
|
1273
|
+
}
|
|
1274
|
+
]
|
|
1275
|
+
}
|
|
1276
|
+
},
|
|
1277
|
+
"retry": {
|
|
1278
|
+
"markdownDescription": "Retry a job if it fails. Can be a simple integer or object definition. [Learn More](https://docs.gitlab.com/ci/yaml/#retry).",
|
|
1279
|
+
"oneOf": [
|
|
1280
|
+
{
|
|
1281
|
+
"$ref": "#/definitions/retry_max"
|
|
1282
|
+
},
|
|
1283
|
+
{
|
|
1284
|
+
"type": "object",
|
|
1285
|
+
"additionalProperties": false,
|
|
1286
|
+
"properties": {
|
|
1287
|
+
"max": {
|
|
1288
|
+
"$ref": "#/definitions/retry_max"
|
|
1289
|
+
},
|
|
1290
|
+
"when": {
|
|
1291
|
+
"markdownDescription": "Either a single or array of error types to trigger job retry. [Learn More](https://docs.gitlab.com/ci/yaml/#retrywhen).",
|
|
1292
|
+
"oneOf": [
|
|
1293
|
+
{
|
|
1294
|
+
"$ref": "#/definitions/retry_errors"
|
|
1295
|
+
},
|
|
1296
|
+
{
|
|
1297
|
+
"type": "array",
|
|
1298
|
+
"items": {
|
|
1299
|
+
"$ref": "#/definitions/retry_errors"
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
]
|
|
1303
|
+
},
|
|
1304
|
+
"exit_codes": {
|
|
1305
|
+
"markdownDescription": "Either a single or array of exit codes to trigger job retry on. [Learn More](https://docs.gitlab.com/ci/yaml/#retryexit_codes).",
|
|
1306
|
+
"oneOf": [
|
|
1307
|
+
{
|
|
1308
|
+
"description": "Retry when the job exit code is included in the array's values.",
|
|
1309
|
+
"type": "array",
|
|
1310
|
+
"minItems": 1,
|
|
1311
|
+
"uniqueItems": true,
|
|
1312
|
+
"items": {
|
|
1313
|
+
"type": "integer"
|
|
1314
|
+
}
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
"description": "Retry when the job exit code is equal to.",
|
|
1318
|
+
"type": "integer"
|
|
1319
|
+
}
|
|
1320
|
+
]
|
|
1321
|
+
}
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
]
|
|
1325
|
+
},
|
|
1326
|
+
"allow_failure": {
|
|
1327
|
+
"markdownDescription": "Allow job to fail. A failed job does not cause the pipeline to fail. [Learn More](https://docs.gitlab.com/ci/yaml/#allow_failure).",
|
|
1328
|
+
"oneOf": [
|
|
1329
|
+
{
|
|
1330
|
+
"description": "Setting this option to true will allow the job to fail while still letting the pipeline pass.",
|
|
1331
|
+
"type": "boolean",
|
|
1332
|
+
"default": false
|
|
1333
|
+
},
|
|
1334
|
+
{
|
|
1335
|
+
"description": "Exit code that are not considered failure. The job fails for any other exit code.",
|
|
1336
|
+
"type": "object",
|
|
1337
|
+
"additionalProperties": false,
|
|
1338
|
+
"required": [
|
|
1339
|
+
"exit_codes"
|
|
1340
|
+
],
|
|
1341
|
+
"properties": {
|
|
1342
|
+
"exit_codes": {
|
|
1343
|
+
"type": "integer"
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
"description": "You can list which exit codes are not considered failures. The job fails for any other exit code.",
|
|
1349
|
+
"type": "object",
|
|
1350
|
+
"additionalProperties": false,
|
|
1351
|
+
"required": [
|
|
1352
|
+
"exit_codes"
|
|
1353
|
+
],
|
|
1354
|
+
"properties": {
|
|
1355
|
+
"exit_codes": {
|
|
1356
|
+
"type": "array",
|
|
1357
|
+
"minItems": 1,
|
|
1358
|
+
"uniqueItems": true,
|
|
1359
|
+
"items": {
|
|
1360
|
+
"type": "integer"
|
|
1361
|
+
}
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
]
|
|
1366
|
+
},
|
|
1367
|
+
"parallel": {
|
|
1368
|
+
"description": "Splits up a single job into multiple that run in parallel. Provides `CI_NODE_INDEX` and `CI_NODE_TOTAL` environment variables to the jobs.",
|
|
1369
|
+
"oneOf": [
|
|
1370
|
+
{
|
|
1371
|
+
"type": "integer",
|
|
1372
|
+
"description": "Creates N instances of the job that run in parallel.",
|
|
1373
|
+
"default": 0,
|
|
1374
|
+
"minimum": 1,
|
|
1375
|
+
"maximum": 200
|
|
1376
|
+
},
|
|
1377
|
+
{
|
|
1378
|
+
"type": "object",
|
|
1379
|
+
"properties": {
|
|
1380
|
+
"matrix": {
|
|
1381
|
+
"type": "array",
|
|
1382
|
+
"description": "Defines different variables for jobs that are running in parallel.",
|
|
1383
|
+
"items": {
|
|
1384
|
+
"type": "object",
|
|
1385
|
+
"description": "Defines the variables for a specific job.",
|
|
1386
|
+
"additionalProperties": {
|
|
1387
|
+
"type": [
|
|
1388
|
+
"string",
|
|
1389
|
+
"number",
|
|
1390
|
+
"array"
|
|
1391
|
+
]
|
|
1392
|
+
}
|
|
1393
|
+
},
|
|
1394
|
+
"maxItems": 200
|
|
1395
|
+
}
|
|
1396
|
+
},
|
|
1397
|
+
"additionalProperties": false,
|
|
1398
|
+
"required": [
|
|
1399
|
+
"matrix"
|
|
1400
|
+
]
|
|
1401
|
+
}
|
|
1402
|
+
]
|
|
1403
|
+
},
|
|
1404
|
+
"include_item": {
|
|
1405
|
+
"oneOf": [
|
|
1406
|
+
{
|
|
1407
|
+
"description": "Will infer the method based on the value. E.g. `https://...` strings will be of type `include:remote`, and `/templates/...` or `templates/...` will be of type `include:local`.",
|
|
1408
|
+
"type": "string",
|
|
1409
|
+
"format": "uri-reference",
|
|
1410
|
+
"pattern": "\\w\\.ya?ml$",
|
|
1411
|
+
"anyOf": [
|
|
1412
|
+
{
|
|
1413
|
+
"pattern": "^https?://"
|
|
1414
|
+
},
|
|
1415
|
+
{
|
|
1416
|
+
"not": {
|
|
1417
|
+
"pattern": "^\\w+://"
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
]
|
|
1421
|
+
},
|
|
1422
|
+
{
|
|
1423
|
+
"type": "object",
|
|
1424
|
+
"additionalProperties": false,
|
|
1425
|
+
"properties": {
|
|
1426
|
+
"local": {
|
|
1427
|
+
"description": "Relative path from local repository root (`/`) to the `yaml`/`yml` file template. The file must be on the same branch, and does not work across git submodules.",
|
|
1428
|
+
"type": "string",
|
|
1429
|
+
"format": "uri-reference",
|
|
1430
|
+
"pattern": "\\.ya?ml$"
|
|
1431
|
+
},
|
|
1432
|
+
"rules": {
|
|
1433
|
+
"$ref": "#/definitions/includeRules"
|
|
1434
|
+
},
|
|
1435
|
+
"inputs": {
|
|
1436
|
+
"$ref": "#/definitions/inputs"
|
|
1437
|
+
}
|
|
1438
|
+
},
|
|
1439
|
+
"required": [
|
|
1440
|
+
"local"
|
|
1441
|
+
]
|
|
1442
|
+
},
|
|
1443
|
+
{
|
|
1444
|
+
"type": "object",
|
|
1445
|
+
"additionalProperties": false,
|
|
1446
|
+
"properties": {
|
|
1447
|
+
"project": {
|
|
1448
|
+
"description": "Path to the project, e.g. `group/project`, or `group/sub-group/project` [Learn more](https://docs.gitlab.com/ci/yaml/#includeproject).",
|
|
1449
|
+
"type": "string",
|
|
1450
|
+
"pattern": "(?:\\S/\\S|\\$\\S+)"
|
|
1451
|
+
},
|
|
1452
|
+
"ref": {
|
|
1453
|
+
"description": "Branch/Tag/Commit-hash for the target project.",
|
|
1454
|
+
"type": "string"
|
|
1455
|
+
},
|
|
1456
|
+
"file": {
|
|
1457
|
+
"oneOf": [
|
|
1458
|
+
{
|
|
1459
|
+
"description": "Relative path from project root (`/`) to the `yaml`/`yml` file template.",
|
|
1460
|
+
"type": "string",
|
|
1461
|
+
"pattern": "\\.ya?ml$"
|
|
1462
|
+
},
|
|
1463
|
+
{
|
|
1464
|
+
"description": "List of files by relative path from project root (`/`) to the `yaml`/`yml` file template.",
|
|
1465
|
+
"type": "array",
|
|
1466
|
+
"items": {
|
|
1467
|
+
"type": "string",
|
|
1468
|
+
"pattern": "\\.ya?ml$"
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
]
|
|
1472
|
+
},
|
|
1473
|
+
"rules": {
|
|
1474
|
+
"$ref": "#/definitions/includeRules"
|
|
1475
|
+
},
|
|
1476
|
+
"inputs": {
|
|
1477
|
+
"$ref": "#/definitions/inputs"
|
|
1478
|
+
}
|
|
1479
|
+
},
|
|
1480
|
+
"required": [
|
|
1481
|
+
"project",
|
|
1482
|
+
"file"
|
|
1483
|
+
]
|
|
1484
|
+
},
|
|
1485
|
+
{
|
|
1486
|
+
"type": "object",
|
|
1487
|
+
"additionalProperties": false,
|
|
1488
|
+
"properties": {
|
|
1489
|
+
"template": {
|
|
1490
|
+
"description": "Use a `.gitlab-ci.yml` template as a base, e.g. `Nodejs.gitlab-ci.yml`.",
|
|
1491
|
+
"type": "string",
|
|
1492
|
+
"format": "uri-reference",
|
|
1493
|
+
"pattern": "\\.ya?ml$"
|
|
1494
|
+
},
|
|
1495
|
+
"rules": {
|
|
1496
|
+
"$ref": "#/definitions/includeRules"
|
|
1497
|
+
},
|
|
1498
|
+
"inputs": {
|
|
1499
|
+
"$ref": "#/definitions/inputs"
|
|
1500
|
+
}
|
|
1501
|
+
},
|
|
1502
|
+
"required": [
|
|
1503
|
+
"template"
|
|
1504
|
+
]
|
|
1505
|
+
},
|
|
1506
|
+
{
|
|
1507
|
+
"type": "object",
|
|
1508
|
+
"additionalProperties": false,
|
|
1509
|
+
"properties": {
|
|
1510
|
+
"component": {
|
|
1511
|
+
"description": "Local path to component directory or full path to external component directory.",
|
|
1512
|
+
"type": "string",
|
|
1513
|
+
"format": "uri-reference"
|
|
1514
|
+
},
|
|
1515
|
+
"rules": {
|
|
1516
|
+
"$ref": "#/definitions/includeRules"
|
|
1517
|
+
},
|
|
1518
|
+
"inputs": {
|
|
1519
|
+
"$ref": "#/definitions/inputs"
|
|
1520
|
+
}
|
|
1521
|
+
},
|
|
1522
|
+
"required": [
|
|
1523
|
+
"component"
|
|
1524
|
+
]
|
|
1525
|
+
},
|
|
1526
|
+
{
|
|
1527
|
+
"type": "object",
|
|
1528
|
+
"additionalProperties": false,
|
|
1529
|
+
"properties": {
|
|
1530
|
+
"remote": {
|
|
1531
|
+
"description": "URL to a `yaml`/`yml` template file using HTTP/HTTPS.",
|
|
1532
|
+
"type": "string",
|
|
1533
|
+
"format": "uri-reference",
|
|
1534
|
+
"pattern": "^https?://.+\\.ya?ml$"
|
|
1535
|
+
},
|
|
1536
|
+
"integrity": {
|
|
1537
|
+
"description": "SHA256 integrity hash of the remote file content.",
|
|
1538
|
+
"type": "string",
|
|
1539
|
+
"pattern": "^sha256-[A-Za-z0-9+/]{43}=$"
|
|
1540
|
+
},
|
|
1541
|
+
"rules": {
|
|
1542
|
+
"$ref": "#/definitions/includeRules"
|
|
1543
|
+
},
|
|
1544
|
+
"inputs": {
|
|
1545
|
+
"$ref": "#/definitions/inputs"
|
|
1546
|
+
}
|
|
1547
|
+
},
|
|
1548
|
+
"required": [
|
|
1549
|
+
"remote"
|
|
1550
|
+
]
|
|
1551
|
+
}
|
|
1552
|
+
]
|
|
1553
|
+
},
|
|
1554
|
+
"when": {
|
|
1555
|
+
"markdownDescription": "Describes the conditions for when to run the job. Defaults to 'on_success'. [Learn More](https://docs.gitlab.com/ci/yaml/#when).",
|
|
1556
|
+
"default": "on_success",
|
|
1557
|
+
"type": "string",
|
|
1558
|
+
"enum": [
|
|
1559
|
+
"on_success",
|
|
1560
|
+
"on_failure",
|
|
1561
|
+
"always",
|
|
1562
|
+
"never",
|
|
1563
|
+
"manual",
|
|
1564
|
+
"delayed"
|
|
1565
|
+
]
|
|
1566
|
+
},
|
|
1567
|
+
"retry_errors": {
|
|
1568
|
+
"oneOf": [
|
|
1569
|
+
{
|
|
1570
|
+
"const": "always",
|
|
1571
|
+
"description": "Retry on any failure (default)."
|
|
1572
|
+
},
|
|
1573
|
+
{
|
|
1574
|
+
"const": "unknown_failure",
|
|
1575
|
+
"description": "Retry when the failure reason is unknown."
|
|
1576
|
+
},
|
|
1577
|
+
{
|
|
1578
|
+
"const": "script_failure",
|
|
1579
|
+
"description": "Retry when the script failed."
|
|
1580
|
+
},
|
|
1581
|
+
{
|
|
1582
|
+
"const": "api_failure",
|
|
1583
|
+
"description": "Retry on API failure."
|
|
1584
|
+
},
|
|
1585
|
+
{
|
|
1586
|
+
"const": "stuck_or_timeout_failure",
|
|
1587
|
+
"description": "Retry when the job got stuck or timed out."
|
|
1588
|
+
},
|
|
1589
|
+
{
|
|
1590
|
+
"const": "runner_system_failure",
|
|
1591
|
+
"description": "Retry if there is a runner system failure (for example, job setup failed)."
|
|
1592
|
+
},
|
|
1593
|
+
{
|
|
1594
|
+
"const": "runner_unsupported",
|
|
1595
|
+
"description": "Retry if the runner is unsupported."
|
|
1596
|
+
},
|
|
1597
|
+
{
|
|
1598
|
+
"const": "stale_schedule",
|
|
1599
|
+
"description": "Retry if a delayed job could not be executed."
|
|
1600
|
+
},
|
|
1601
|
+
{
|
|
1602
|
+
"const": "job_execution_timeout",
|
|
1603
|
+
"description": "Retry if the script exceeded the maximum execution time set for the job."
|
|
1604
|
+
},
|
|
1605
|
+
{
|
|
1606
|
+
"const": "archived_failure",
|
|
1607
|
+
"description": "Retry if the job is archived and can’t be run."
|
|
1608
|
+
},
|
|
1609
|
+
{
|
|
1610
|
+
"const": "unmet_prerequisites",
|
|
1611
|
+
"description": "Retry if the job failed to complete prerequisite tasks."
|
|
1612
|
+
},
|
|
1613
|
+
{
|
|
1614
|
+
"const": "scheduler_failure",
|
|
1615
|
+
"description": "Retry if the scheduler failed to assign the job to a runner."
|
|
1616
|
+
},
|
|
1617
|
+
{
|
|
1618
|
+
"const": "data_integrity_failure",
|
|
1619
|
+
"description": "Retry if there is an unknown job problem."
|
|
1620
|
+
}
|
|
1621
|
+
]
|
|
1622
|
+
},
|
|
1623
|
+
"workflowAutoCancel": {
|
|
1624
|
+
"type": "object",
|
|
1625
|
+
"description": "Define the rules for when pipeline should be automatically cancelled.",
|
|
1626
|
+
"additionalProperties": false,
|
|
1627
|
+
"properties": {
|
|
1628
|
+
"on_job_failure": {
|
|
1629
|
+
"markdownDescription": "Define which jobs to stop after a job fails.",
|
|
1630
|
+
"default": "none",
|
|
1631
|
+
"type": "string",
|
|
1632
|
+
"enum": [
|
|
1633
|
+
"none",
|
|
1634
|
+
"all"
|
|
1635
|
+
]
|
|
1636
|
+
},
|
|
1637
|
+
"on_new_commit": {
|
|
1638
|
+
"markdownDescription": "Configure the behavior of the auto-cancel redundant pipelines feature. [Learn More](https://docs.gitlab.com/ci/yaml/#workflowauto_cancelon_new_commit)",
|
|
1639
|
+
"type": "string",
|
|
1640
|
+
"enum": [
|
|
1641
|
+
"conservative",
|
|
1642
|
+
"interruptible",
|
|
1643
|
+
"none"
|
|
1644
|
+
]
|
|
1645
|
+
}
|
|
1646
|
+
}
|
|
1647
|
+
},
|
|
1648
|
+
"before_script": {
|
|
1649
|
+
"$ref": "#/definitions/optional_script",
|
|
1650
|
+
"markdownDescription": "Defines scripts that should run *before* the job. Can be set globally or per job. [Learn More](https://docs.gitlab.com/ci/yaml/#before_script)."
|
|
1651
|
+
},
|
|
1652
|
+
"after_script": {
|
|
1653
|
+
"$ref": "#/definitions/optional_script",
|
|
1654
|
+
"markdownDescription": "Defines scripts that should run *after* the job. Can be set globally or per job. [Learn More](https://docs.gitlab.com/ci/yaml/#after_script)."
|
|
1655
|
+
},
|
|
1656
|
+
"script": {
|
|
1657
|
+
"oneOf": [
|
|
1658
|
+
{
|
|
1659
|
+
"type": "string",
|
|
1660
|
+
"minLength": 1
|
|
1661
|
+
},
|
|
1662
|
+
{
|
|
1663
|
+
"type": "array",
|
|
1664
|
+
"items": {
|
|
1665
|
+
"anyOf": [
|
|
1666
|
+
{
|
|
1667
|
+
"type": "string"
|
|
1668
|
+
},
|
|
1669
|
+
{
|
|
1670
|
+
"type": "array",
|
|
1671
|
+
"items": {
|
|
1672
|
+
"type": "string"
|
|
1673
|
+
}
|
|
1674
|
+
}
|
|
1675
|
+
]
|
|
1676
|
+
},
|
|
1677
|
+
"minItems": 1
|
|
1678
|
+
}
|
|
1679
|
+
]
|
|
1680
|
+
},
|
|
1681
|
+
"optional_script": {
|
|
1682
|
+
"oneOf": [
|
|
1683
|
+
{
|
|
1684
|
+
"type": "string"
|
|
1685
|
+
},
|
|
1686
|
+
{
|
|
1687
|
+
"type": "array",
|
|
1688
|
+
"items": {
|
|
1689
|
+
"anyOf": [
|
|
1690
|
+
{
|
|
1691
|
+
"type": "string"
|
|
1692
|
+
},
|
|
1693
|
+
{
|
|
1694
|
+
"type": "array",
|
|
1695
|
+
"items": {
|
|
1696
|
+
"type": "string"
|
|
1697
|
+
}
|
|
1698
|
+
}
|
|
1699
|
+
]
|
|
1700
|
+
}
|
|
1701
|
+
}
|
|
1702
|
+
]
|
|
1703
|
+
},
|
|
1704
|
+
"globalVariables": {
|
|
1705
|
+
"markdownDescription": "Defines default variables for all jobs. Job level property overrides global variables. [Learn More](https://docs.gitlab.com/ci/yaml/#variables).",
|
|
1706
|
+
"type": "object",
|
|
1707
|
+
"patternProperties": {
|
|
1708
|
+
".*": {
|
|
1709
|
+
"oneOf": [
|
|
1710
|
+
{
|
|
1711
|
+
"type": [
|
|
1712
|
+
"boolean",
|
|
1713
|
+
"number",
|
|
1714
|
+
"string"
|
|
1715
|
+
]
|
|
1716
|
+
},
|
|
1717
|
+
{
|
|
1718
|
+
"type": "object",
|
|
1719
|
+
"properties": {
|
|
1720
|
+
"value": {
|
|
1721
|
+
"type": "string",
|
|
1722
|
+
"markdownDescription": "Default value of the variable. If used with `options`, `value` must be included in the array. [Learn More](https://docs.gitlab.com/ci/yaml/#variablesvalue)"
|
|
1723
|
+
},
|
|
1724
|
+
"options": {
|
|
1725
|
+
"type": "array",
|
|
1726
|
+
"items": {
|
|
1727
|
+
"type": "string"
|
|
1728
|
+
},
|
|
1729
|
+
"minItems": 1,
|
|
1730
|
+
"uniqueItems": true,
|
|
1731
|
+
"markdownDescription": "A list of predefined values that users can select from in the **Run pipeline** page when running a pipeline manually. [Learn More](https://docs.gitlab.com/ci/yaml/#variablesoptions)"
|
|
1732
|
+
},
|
|
1733
|
+
"description": {
|
|
1734
|
+
"type": "string",
|
|
1735
|
+
"markdownDescription": "Explains what the variable is used for, what the acceptable values are. Variables with `description` are prefilled when running a pipeline manually. [Learn More](https://docs.gitlab.com/ci/yaml/#variablesdescription)."
|
|
1736
|
+
},
|
|
1737
|
+
"expand": {
|
|
1738
|
+
"type": "boolean",
|
|
1739
|
+
"markdownDescription": "If the variable is expandable or not. [Learn More](https://docs.gitlab.com/ci/yaml/#variablesexpand)."
|
|
1740
|
+
}
|
|
1741
|
+
},
|
|
1742
|
+
"additionalProperties": false
|
|
1743
|
+
}
|
|
1744
|
+
]
|
|
1745
|
+
}
|
|
1746
|
+
}
|
|
1747
|
+
},
|
|
1748
|
+
"jobVariables": {
|
|
1749
|
+
"markdownDescription": "Defines variables for a job. [Learn More](https://docs.gitlab.com/ci/yaml/#variables).",
|
|
1750
|
+
"type": "object",
|
|
1751
|
+
"patternProperties": {
|
|
1752
|
+
".*": {
|
|
1753
|
+
"oneOf": [
|
|
1754
|
+
{
|
|
1755
|
+
"type": [
|
|
1756
|
+
"boolean",
|
|
1757
|
+
"number",
|
|
1758
|
+
"string"
|
|
1759
|
+
]
|
|
1760
|
+
},
|
|
1761
|
+
{
|
|
1762
|
+
"type": "object",
|
|
1763
|
+
"properties": {
|
|
1764
|
+
"value": {
|
|
1765
|
+
"type": "string"
|
|
1766
|
+
},
|
|
1767
|
+
"expand": {
|
|
1768
|
+
"type": "boolean",
|
|
1769
|
+
"markdownDescription": "Defines if the variable is expandable or not. [Learn More](https://docs.gitlab.com/ci/yaml/#variablesexpand)."
|
|
1770
|
+
}
|
|
1771
|
+
},
|
|
1772
|
+
"additionalProperties": false
|
|
1773
|
+
}
|
|
1774
|
+
]
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1777
|
+
},
|
|
1778
|
+
"rulesVariables": {
|
|
1779
|
+
"markdownDescription": "Defines variables for a rule result. [Learn More](https://docs.gitlab.com/ci/yaml/#rulesvariables).",
|
|
1780
|
+
"type": "object",
|
|
1781
|
+
"patternProperties": {
|
|
1782
|
+
".*": {
|
|
1783
|
+
"type": [
|
|
1784
|
+
"boolean",
|
|
1785
|
+
"number",
|
|
1786
|
+
"string"
|
|
1787
|
+
]
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
},
|
|
1791
|
+
"id_tokens": {
|
|
1792
|
+
"type": "object",
|
|
1793
|
+
"markdownDescription": "Defines JWTs to be injected as environment variables.",
|
|
1794
|
+
"patternProperties": {
|
|
1795
|
+
".*": {
|
|
1796
|
+
"type": "object",
|
|
1797
|
+
"properties": {
|
|
1798
|
+
"aud": {
|
|
1799
|
+
"oneOf": [
|
|
1800
|
+
{
|
|
1801
|
+
"type": "string"
|
|
1802
|
+
},
|
|
1803
|
+
{
|
|
1804
|
+
"type": "array",
|
|
1805
|
+
"items": {
|
|
1806
|
+
"type": "string"
|
|
1807
|
+
},
|
|
1808
|
+
"minItems": 1,
|
|
1809
|
+
"uniqueItems": true
|
|
1810
|
+
}
|
|
1811
|
+
]
|
|
1812
|
+
}
|
|
1813
|
+
},
|
|
1814
|
+
"required": [
|
|
1815
|
+
"aud"
|
|
1816
|
+
],
|
|
1817
|
+
"additionalProperties": false
|
|
1818
|
+
}
|
|
1819
|
+
}
|
|
1820
|
+
},
|
|
1821
|
+
"secrets": {
|
|
1822
|
+
"type": "object",
|
|
1823
|
+
"markdownDescription": "Defines secrets to be injected as environment variables. [Learn More](https://docs.gitlab.com/ci/yaml/#secrets).",
|
|
1824
|
+
"patternProperties": {
|
|
1825
|
+
".*": {
|
|
1826
|
+
"type": "object",
|
|
1827
|
+
"properties": {
|
|
1828
|
+
"vault": {
|
|
1829
|
+
"oneOf": [
|
|
1830
|
+
{
|
|
1831
|
+
"type": "string",
|
|
1832
|
+
"markdownDescription": "The secret to be fetched from Vault (e.g. 'production/db/password@ops' translates to secret 'ops/data/production/db', field `password`). [Learn More](https://docs.gitlab.com/ci/yaml/#secretsvault)"
|
|
1833
|
+
},
|
|
1834
|
+
{
|
|
1835
|
+
"type": "object",
|
|
1836
|
+
"properties": {
|
|
1837
|
+
"engine": {
|
|
1838
|
+
"type": "object",
|
|
1839
|
+
"properties": {
|
|
1840
|
+
"name": {
|
|
1841
|
+
"type": "string"
|
|
1842
|
+
},
|
|
1843
|
+
"path": {
|
|
1844
|
+
"type": "string"
|
|
1845
|
+
}
|
|
1846
|
+
},
|
|
1847
|
+
"required": [
|
|
1848
|
+
"name",
|
|
1849
|
+
"path"
|
|
1850
|
+
]
|
|
1851
|
+
},
|
|
1852
|
+
"path": {
|
|
1853
|
+
"type": "string"
|
|
1854
|
+
},
|
|
1855
|
+
"field": {
|
|
1856
|
+
"type": "string"
|
|
1857
|
+
}
|
|
1858
|
+
},
|
|
1859
|
+
"required": [
|
|
1860
|
+
"engine",
|
|
1861
|
+
"path",
|
|
1862
|
+
"field"
|
|
1863
|
+
],
|
|
1864
|
+
"additionalProperties": false
|
|
1865
|
+
}
|
|
1866
|
+
]
|
|
1867
|
+
},
|
|
1868
|
+
"gcp_secret_manager": {
|
|
1869
|
+
"type": "object",
|
|
1870
|
+
"markdownDescription": "Defines the secret version to be fetched from GCP Secret Manager. Name refers to the secret name in GCP secret manager. Version refers to the desired secret version (defaults to 'latest').",
|
|
1871
|
+
"properties": {
|
|
1872
|
+
"name": {
|
|
1873
|
+
"type": "string"
|
|
1874
|
+
},
|
|
1875
|
+
"version": {
|
|
1876
|
+
"oneOf": [
|
|
1877
|
+
{
|
|
1878
|
+
"type": "string"
|
|
1879
|
+
},
|
|
1880
|
+
{
|
|
1881
|
+
"type": "integer"
|
|
1882
|
+
}
|
|
1883
|
+
],
|
|
1884
|
+
"default": "version"
|
|
1885
|
+
}
|
|
1886
|
+
},
|
|
1887
|
+
"required": [
|
|
1888
|
+
"name"
|
|
1889
|
+
],
|
|
1890
|
+
"additionalProperties": false
|
|
1891
|
+
},
|
|
1892
|
+
"azure_key_vault": {
|
|
1893
|
+
"type": "object",
|
|
1894
|
+
"properties": {
|
|
1895
|
+
"name": {
|
|
1896
|
+
"type": "string"
|
|
1897
|
+
},
|
|
1898
|
+
"version": {
|
|
1899
|
+
"type": "string"
|
|
1900
|
+
}
|
|
1901
|
+
},
|
|
1902
|
+
"required": [
|
|
1903
|
+
"name"
|
|
1904
|
+
],
|
|
1905
|
+
"additionalProperties": false
|
|
1906
|
+
},
|
|
1907
|
+
"aws_secrets_manager": {
|
|
1908
|
+
"oneOf": [
|
|
1909
|
+
{
|
|
1910
|
+
"type": "string",
|
|
1911
|
+
"description": "The ARN or name of the secret to retrieve. To retrieve a secret from another account, you must use an ARN."
|
|
1912
|
+
},
|
|
1913
|
+
{
|
|
1914
|
+
"type": "object",
|
|
1915
|
+
"markdownDescription": "Defines the secret to be fetched from AWS Secrets Manager. The secret_id refers to the ARN or name of the secret in AWS Secrets Manager. Version_id and version_stage are optional parameters that can be used to specify a specific version of the secret, else AWSCURRENT version will be returned.",
|
|
1916
|
+
"properties": {
|
|
1917
|
+
"secret_id": {
|
|
1918
|
+
"type": "string",
|
|
1919
|
+
"description": "The ARN or name of the secret to retrieve. To retrieve a secret from another account, you must use an ARN."
|
|
1920
|
+
},
|
|
1921
|
+
"version_id": {
|
|
1922
|
+
"type": "string",
|
|
1923
|
+
"description": "The unique identifier of the version of the secret to retrieve. If you include both this parameter and VersionStage, the two parameters must refer to the same secret version. If you don't specify either a VersionStage or VersionId, Secrets Manager returns the AWSCURRENT version."
|
|
1924
|
+
},
|
|
1925
|
+
"version_stage": {
|
|
1926
|
+
"type": "string",
|
|
1927
|
+
"description": "The staging label of the version of the secret to retrieve. If you include both this parameter and VersionStage, the two parameters must refer to the same secret version. If you don't specify either a VersionStage or VersionId, Secrets Manager returns the AWSCURRENT version."
|
|
1928
|
+
},
|
|
1929
|
+
"region": {
|
|
1930
|
+
"type": "string",
|
|
1931
|
+
"description": "The AWS region where the secret is stored. Use this to override the region for a specific secret. Defaults to AWS_REGION variable."
|
|
1932
|
+
},
|
|
1933
|
+
"role_arn": {
|
|
1934
|
+
"type": "string",
|
|
1935
|
+
"description": "The ARN of the IAM role to assume before retrieving the secret. Use this to override the ARN. Defaults to AWS_ROLE_ARN variable."
|
|
1936
|
+
},
|
|
1937
|
+
"role_session_name": {
|
|
1938
|
+
"type": "string",
|
|
1939
|
+
"description": "The name of the session to use when assuming the role. Use this to override the session name. Defaults to AWS_ROLE_SESSION_NAME variable."
|
|
1940
|
+
},
|
|
1941
|
+
"field": {
|
|
1942
|
+
"type": "string",
|
|
1943
|
+
"description": "The name of the field to retrieve from the secret. If not specified, the entire secret is retrieved."
|
|
1944
|
+
}
|
|
1945
|
+
},
|
|
1946
|
+
"required": [
|
|
1947
|
+
"secret_id"
|
|
1948
|
+
],
|
|
1949
|
+
"additionalProperties": false
|
|
1950
|
+
}
|
|
1951
|
+
]
|
|
1952
|
+
},
|
|
1953
|
+
"gitlab_secrets_manager": {
|
|
1954
|
+
"type": "object",
|
|
1955
|
+
"properties": {
|
|
1956
|
+
"name": {
|
|
1957
|
+
"type": "string"
|
|
1958
|
+
},
|
|
1959
|
+
"source": {
|
|
1960
|
+
"type": "string",
|
|
1961
|
+
"description": "Source of the secret. Defaults to the current project if not given. For fetching a secret from a group, provide group/<full_path_of_the_group>"
|
|
1962
|
+
}
|
|
1963
|
+
},
|
|
1964
|
+
"required": [
|
|
1965
|
+
"name"
|
|
1966
|
+
],
|
|
1967
|
+
"additionalProperties": false
|
|
1968
|
+
},
|
|
1969
|
+
"file": {
|
|
1970
|
+
"type": "boolean",
|
|
1971
|
+
"default": true,
|
|
1972
|
+
"markdownDescription": "Configures the secret to be stored as either a file or variable type CI/CD variable. [Learn More](https://docs.gitlab.com/ci/yaml/#secretsfile)"
|
|
1973
|
+
},
|
|
1974
|
+
"token": {
|
|
1975
|
+
"type": "string",
|
|
1976
|
+
"description": "Specifies the JWT variable that should be used to authenticate with the secret provider."
|
|
1977
|
+
}
|
|
1978
|
+
},
|
|
1979
|
+
"anyOf": [
|
|
1980
|
+
{
|
|
1981
|
+
"required": [
|
|
1982
|
+
"vault"
|
|
1983
|
+
]
|
|
1984
|
+
},
|
|
1985
|
+
{
|
|
1986
|
+
"required": [
|
|
1987
|
+
"azure_key_vault"
|
|
1988
|
+
]
|
|
1989
|
+
},
|
|
1990
|
+
{
|
|
1991
|
+
"required": [
|
|
1992
|
+
"gcp_secret_manager"
|
|
1993
|
+
]
|
|
1994
|
+
},
|
|
1995
|
+
{
|
|
1996
|
+
"required": [
|
|
1997
|
+
"aws_secrets_manager"
|
|
1998
|
+
]
|
|
1999
|
+
},
|
|
2000
|
+
{
|
|
2001
|
+
"required": [
|
|
2002
|
+
"gitlab_secrets_manager"
|
|
2003
|
+
]
|
|
2004
|
+
}
|
|
2005
|
+
],
|
|
2006
|
+
"dependencies": {
|
|
2007
|
+
"gcp_secret_manager": [
|
|
2008
|
+
"token"
|
|
2009
|
+
]
|
|
2010
|
+
},
|
|
2011
|
+
"additionalProperties": false
|
|
2012
|
+
}
|
|
2013
|
+
}
|
|
2014
|
+
},
|
|
2015
|
+
"timeout": {
|
|
2016
|
+
"type": "string",
|
|
2017
|
+
"markdownDescription": "Allows you to configure a timeout for a specific job (e.g. `1 minute`, `1h 30m 12s`). [Learn More](https://docs.gitlab.com/ci/yaml/#timeout).",
|
|
2018
|
+
"minLength": 1
|
|
2019
|
+
},
|
|
2020
|
+
"start_in": {
|
|
2021
|
+
"type": "string",
|
|
2022
|
+
"markdownDescription": "Used in conjunction with 'when: delayed' to set how long to delay before starting a job. e.g. '5', 5 seconds, 30 minutes, 1 week, etc. [Learn More](https://docs.gitlab.com/ci/jobs/job_control/#run-a-job-after-a-delay).",
|
|
2023
|
+
"minLength": 1
|
|
2024
|
+
}
|
|
2025
|
+
},
|
|
2026
|
+
"properties": {
|
|
2027
|
+
"default": {
|
|
2028
|
+
"type": "object",
|
|
2029
|
+
"properties": {
|
|
2030
|
+
"after_script": {
|
|
2031
|
+
"$ref": "#/definitions/after_script"
|
|
2032
|
+
},
|
|
2033
|
+
"artifacts": {
|
|
2034
|
+
"$ref": "#/definitions/artifacts"
|
|
2035
|
+
},
|
|
2036
|
+
"before_script": {
|
|
2037
|
+
"$ref": "#/definitions/before_script"
|
|
2038
|
+
},
|
|
2039
|
+
"hooks": {
|
|
2040
|
+
"$ref": "#/definitions/hooks"
|
|
2041
|
+
},
|
|
2042
|
+
"cache": {
|
|
2043
|
+
"$ref": "#/definitions/cache"
|
|
2044
|
+
},
|
|
2045
|
+
"image": {
|
|
2046
|
+
"$ref": "#/definitions/image"
|
|
2047
|
+
},
|
|
2048
|
+
"interruptible": {
|
|
2049
|
+
"$ref": "#/definitions/interruptible"
|
|
2050
|
+
},
|
|
2051
|
+
"id_tokens": {
|
|
2052
|
+
"$ref": "#/definitions/id_tokens"
|
|
2053
|
+
},
|
|
2054
|
+
"identity": {
|
|
2055
|
+
"$ref": "#/definitions/identity"
|
|
2056
|
+
},
|
|
2057
|
+
"retry": {
|
|
2058
|
+
"$ref": "#/definitions/retry"
|
|
2059
|
+
},
|
|
2060
|
+
"services": {
|
|
2061
|
+
"$ref": "#/definitions/services"
|
|
2062
|
+
},
|
|
2063
|
+
"tags": {
|
|
2064
|
+
"$ref": "#/definitions/tags"
|
|
2065
|
+
},
|
|
2066
|
+
"timeout": {
|
|
2067
|
+
"$ref": "#/definitions/timeout"
|
|
2068
|
+
},
|
|
2069
|
+
"!reference": {
|
|
2070
|
+
"$ref": "#/definitions/!reference"
|
|
2071
|
+
}
|
|
2072
|
+
},
|
|
2073
|
+
"additionalProperties": false
|
|
2074
|
+
},
|
|
2075
|
+
"workflow": {
|
|
2076
|
+
"type": "object",
|
|
2077
|
+
"properties": {
|
|
2078
|
+
"name": {
|
|
2079
|
+
"$ref": "#/definitions/workflowName"
|
|
2080
|
+
},
|
|
2081
|
+
"auto_cancel": {
|
|
2082
|
+
"$ref": "#/definitions/workflowAutoCancel"
|
|
2083
|
+
},
|
|
2084
|
+
"rules": {
|
|
2085
|
+
"type": "array",
|
|
2086
|
+
"items": {
|
|
2087
|
+
"anyOf": [
|
|
2088
|
+
{
|
|
2089
|
+
"type": "object"
|
|
2090
|
+
},
|
|
2091
|
+
{
|
|
2092
|
+
"type": "array",
|
|
2093
|
+
"minItems": 1,
|
|
2094
|
+
"items": {
|
|
2095
|
+
"type": "string"
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
],
|
|
2099
|
+
"properties": {
|
|
2100
|
+
"if": {
|
|
2101
|
+
"$ref": "#/definitions/if"
|
|
2102
|
+
},
|
|
2103
|
+
"changes": {
|
|
2104
|
+
"$ref": "#/definitions/changes"
|
|
2105
|
+
},
|
|
2106
|
+
"exists": {
|
|
2107
|
+
"$ref": "#/definitions/exists"
|
|
2108
|
+
},
|
|
2109
|
+
"variables": {
|
|
2110
|
+
"$ref": "#/definitions/rulesVariables"
|
|
2111
|
+
},
|
|
2112
|
+
"when": {
|
|
2113
|
+
"type": "string",
|
|
2114
|
+
"enum": [
|
|
2115
|
+
"always",
|
|
2116
|
+
"never"
|
|
2117
|
+
]
|
|
2118
|
+
},
|
|
2119
|
+
"auto_cancel": {
|
|
2120
|
+
"$ref": "#/definitions/workflowAutoCancel"
|
|
2121
|
+
}
|
|
2122
|
+
},
|
|
2123
|
+
"additionalProperties": false
|
|
2124
|
+
}
|
|
2125
|
+
}
|
|
2126
|
+
}
|
|
2127
|
+
},
|
|
2128
|
+
"stages": {
|
|
2129
|
+
"type": "array",
|
|
2130
|
+
"markdownDescription": "Groups jobs into stages. All jobs in one stage must complete before next stage is executed. Defaults to ['build', 'test', 'deploy']. [Learn More](https://docs.gitlab.com/ci/yaml/#stages).",
|
|
2131
|
+
"default": [
|
|
2132
|
+
"build",
|
|
2133
|
+
"test",
|
|
2134
|
+
"deploy"
|
|
2135
|
+
],
|
|
2136
|
+
"items": {
|
|
2137
|
+
"anyOf": [
|
|
2138
|
+
{
|
|
2139
|
+
"type": "string"
|
|
2140
|
+
},
|
|
2141
|
+
{
|
|
2142
|
+
"type": "array",
|
|
2143
|
+
"items": {
|
|
2144
|
+
"type": "string"
|
|
2145
|
+
}
|
|
2146
|
+
}
|
|
2147
|
+
]
|
|
2148
|
+
},
|
|
2149
|
+
"uniqueItems": true,
|
|
2150
|
+
"minItems": 1
|
|
2151
|
+
},
|
|
2152
|
+
"variables": {
|
|
2153
|
+
"$ref": "#/definitions/globalVariables"
|
|
2154
|
+
},
|
|
2155
|
+
"include": {
|
|
2156
|
+
"markdownDescription": "Can be `IncludeItem` or `IncludeItem[]`. Each `IncludeItem` will be a string, or an object with properties for the method if including external YAML file. The external content will be fetched, included and evaluated along the `.gitlab-ci.yml`. [Learn More](https://docs.gitlab.com/ci/yaml/#include).",
|
|
2157
|
+
"oneOf": [
|
|
2158
|
+
{
|
|
2159
|
+
"$ref": "#/definitions/include_item"
|
|
2160
|
+
},
|
|
2161
|
+
{
|
|
2162
|
+
"type": "array",
|
|
2163
|
+
"items": {
|
|
2164
|
+
"$ref": "#/definitions/include_item"
|
|
2165
|
+
}
|
|
2166
|
+
}
|
|
2167
|
+
]
|
|
2168
|
+
}
|
|
2169
|
+
},
|
|
2170
|
+
"patternProperties": {
|
|
2171
|
+
"^[.]": {
|
|
2172
|
+
"description": "Hidden keys.",
|
|
2173
|
+
"anyOf": [
|
|
2174
|
+
{
|
|
2175
|
+
"$ref": "#/definitions/job_template"
|
|
2176
|
+
},
|
|
2177
|
+
{
|
|
2178
|
+
"description": "Arbitrary YAML anchor."
|
|
2179
|
+
}
|
|
2180
|
+
]
|
|
2181
|
+
}
|
|
2182
|
+
},
|
|
2183
|
+
"required": []
|
|
2184
|
+
}
|