summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/editor/schema/ci.json
blob: d94aa73e43a7d953892d4dae49af0f7d3eb9e042 (plain)
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://gitlab.com/.gitlab-ci.yml",
  "markdownDescription": "Gitlab has a built-in solution for doing CI called Gitlab CI. It is configured by supplying a file called `.gitlab-ci.yml`, which will list all the jobs that are going to run for the project. A full list of all options can be found [here](https://docs.gitlab.com/ee/ci/yaml). [Learn More](https://docs.gitlab.com/ee/ci/index.html).",
  "type": "object",
  "properties": {
    "$schema": {
      "type": "string",
      "format": "uri"
    },
    "image": {
      "$ref": "#/definitions/image"
    },
    "services": {
      "$ref": "#/definitions/services"
    },
    "before_script": {
      "$ref": "#/definitions/before_script"
    },
    "after_script": {
      "$ref": "#/definitions/after_script"
    },
    "variables": {
      "$ref": "#/definitions/globalVariables"
    },
    "cache": {
      "$ref": "#/definitions/cache"
    },
    "!reference": {
      "$ref": "#/definitions/!reference"
    },
    "default": {
      "type": "object",
      "properties": {
        "after_script": {
          "$ref": "#/definitions/after_script"
        },
        "artifacts": {
          "$ref": "#/definitions/artifacts"
        },
        "before_script": {
          "$ref": "#/definitions/before_script"
        },
        "hooks": {
          "$ref": "#/definitions/hooks"
        },
        "cache": {
          "$ref": "#/definitions/cache"
        },
        "image": {
          "$ref": "#/definitions/image"
        },
        "interruptible": {
          "$ref": "#/definitions/interruptible"
        },
        "retry": {
          "$ref": "#/definitions/retry"
        },
        "services": {
          "$ref": "#/definitions/services"
        },
        "tags": {
          "$ref": "#/definitions/tags"
        },
        "timeout": {
          "$ref": "#/definitions/timeout"
        },
        "!reference": {
          "$ref": "#/definitions/!reference"
        }
      },
      "additionalProperties": false
    },
    "stages": {
      "type": "array",
      "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/ee/ci/yaml/#stages).",
      "default": [
        "build",
        "test",
        "deploy"
      ],
      "items": {
        "type": "string"
      },
      "uniqueItems": true,
      "minItems": 1
    },
    "include": {
      "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/ee/ci/yaml/#include).",
      "oneOf": [
        {
          "$ref": "#/definitions/include_item"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/definitions/include_item"
          }
        }
      ]
    },
    "pages": {
      "$ref": "#/definitions/job",
      "markdownDescription": "A special job used to upload static sites to Gitlab pages. Requires a `public/` directory with `artifacts.path` pointing to it. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#pages)."
    },
    "workflow": {
      "type": "object",
      "properties": {
        "name": {
          "$ref": "#/definitions/workflowName"
        },
        "rules": {
          "type": "array",
          "items": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "array",
                "minLength": 1,
                "items": {
                  "type": "string"
                }
              }
            ],
            "properties": {
              "if": {
                "$ref": "#/definitions/if"
              },
              "changes": {
                "$ref": "#/definitions/changes"
              },
              "exists": {
                "$ref": "#/definitions/exists"
              },
              "variables": {
                "$ref": "#/definitions/rulesVariables"
              },
              "when": {
                "type": "string",
                "enum": [
                  "always",
                  "never"
                ]
              }
            },
            "additionalProperties": false
          }
        }
      }
    }
  },
  "patternProperties": {
    "^[.]": {
      "description": "Hidden keys.",
      "anyOf": [
        {
          "$ref": "#/definitions/job_template"
        },
        {
          "description": "Arbitrary YAML anchor."
        }
      ]
    }
  },
  "additionalProperties": {
    "$ref": "#/definitions/job"
  },
  "definitions": {
    "artifacts": {
      "type": "object",
      "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/ee/ci/yaml/#artifacts).",
      "additionalProperties": false,
      "properties": {
        "paths": {
          "type": "array",
          "markdownDescription": "A list of paths to files/folders that should be included in the artifact. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#artifactspaths).",
          "items": {
            "type": "string"
          },
          "minItems": 1
        },
        "exclude": {
          "type": "array",
          "markdownDescription": "A list of paths to files/folders that should be excluded in the artifact. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#artifactsexclude).",
          "items": {
            "type": "string"
          },
          "minItems": 1
        },
        "expose_as": {
          "type": "string",
          "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/ee/ci/yaml/#artifactsexpose_as)."
        },
        "name": {
          "type": "string",
          "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/ee/ci/yaml/#artifactsname)."
        },
        "untracked": {
          "type": "boolean",
          "markdownDescription": "Whether to add all untracked files (along with 'artifacts.paths') to the artifact. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#artifactsuntracked).",
          "default": false
        },
        "when": {
          "markdownDescription": "Configure when artifacts are uploaded depended on job status. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#artifactswhen).",
          "default": "on_success",
          "type": "string",
          "enum": [
            "on_success",
            "on_failure",
            "always"
          ]
        },
        "expire_in": {
          "type": "string",
          "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/ee/ci/yaml/#artifactsexpire_in).",
          "default": "30 days"
        },
        "reports": {
          "type": "object",
          "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/ee/ci/yaml/#artifactsreports).",
          "additionalProperties": false,
          "properties": {
            "junit": {
              "description": "Path for file(s) that should be parsed as JUnit XML result",
              "oneOf": [
                {
                  "type": "string",
                  "description": "Path to a single XML file"
                },
                {
                  "type": "array",
                  "description": "A list of paths to XML files that will automatically be concatenated into a single file",
                  "items": {
                    "type": "string"
                  },
                  "minItems": 1
                }
              ]
            },
            "coverage_report": {
              "type": "object",
              "description": "Used to collect coverage reports from the job.",
              "properties": {
                "coverage_format": {
                  "description": "Code coverage format used by the test framework.",
                  "enum": [
                    "cobertura"
                  ]
                },
                "path": {
                  "description": "Path to the coverage report file that should be parsed.",
                  "type": "string",
                  "minLength": 1
                }
              }
            },
            "codequality": {
              "$ref": "#/definitions/string_file_list",
              "description": "Path to file or list of files with code quality report(s) (such as Code Climate)."
            },
            "dotenv": {
              "$ref": "#/definitions/string_file_list",
              "description": "Path to file or list of files containing runtime-created variables for this job."
            },
            "lsif": {
              "$ref": "#/definitions/string_file_list",
              "description": "Path to file or list of files containing code intelligence (Language Server Index Format)."
            },
            "sast": {
              "$ref": "#/definitions/string_file_list",
              "description": "Path to file or list of files with SAST vulnerabilities report(s)."
            },
            "dependency_scanning": {
              "$ref": "#/definitions/string_file_list",
              "description": "Path to file or list of files with Dependency scanning vulnerabilities report(s)."
            },
            "container_scanning": {
              "$ref": "#/definitions/string_file_list",
              "description": "Path to file or list of files with Container scanning vulnerabilities report(s)."
            },
            "dast": {
              "$ref": "#/definitions/string_file_list",
              "description": "Path to file or list of files with DAST vulnerabilities report(s)."
            },
            "license_management": {
              "$ref": "#/definitions/string_file_list",
              "description": "Deprecated in 12.8: Path to file or list of files with license report(s)."
            },
            "license_scanning": {
              "$ref": "#/definitions/string_file_list",
              "description": "Path to file or list of files with license report(s)."
            },
            "performance": {
              "$ref": "#/definitions/string_file_list",
              "description": "Path to file or list of files with performance metrics report(s)."
            },
            "requirements": {
              "$ref": "#/definitions/string_file_list",
              "description": "Path to file or list of files with requirements report(s)."
            },
            "secret_detection": {
              "$ref": "#/definitions/string_file_list",
              "description": "Path to file or list of files with secret detection report(s)."
            },
            "metrics": {
              "$ref": "#/definitions/string_file_list",
              "description": "Path to file or list of files with custom metrics report(s)."
            },
            "terraform": {
              "$ref": "#/definitions/string_file_list",
              "description": "Path to file or list of files with terraform plan(s)."
            },
            "cyclonedx": {
              "$ref": "#/definitions/string_file_list",
              "markdownDescription": "Path to file or list of files with cyclonedx report(s). [Learn More](https://docs.gitlab.com/ee/ci/yaml/artifacts_reports.html#artifactsreportscyclonedx)."
            }
          }
        }
      }
    },
    "string_file_list": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      ]
    },
    "include_item": {
      "oneOf": [
        {
          "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`.",
          "type": "string",
          "format": "uri-reference",
          "pattern": "^(https?://|/?.?-?(?!\\w+://)\\w).+\\.ya?ml$"
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "local": {
              "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.",
              "type": "string",
              "format": "uri-reference",
              "pattern": "\\.ya?ml$"
            },
            "rules": {
              "$ref": "#/definitions/rules"
            }
          },
          "required": [
            "local"
          ]
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "project": {
              "description": "Path to the project, e.g. `group/project`, or `group/sub-group/project` [Learn more](https://docs.gitlab.com/ee/ci/yaml/index.html#includefile).",
              "type": "string",
              "pattern": "(?:\\S/\\S|\\$\\S+)"
            },
            "ref": {
              "description": "Branch/Tag/Commit-hash for the target project.",
              "type": "string"
            },
            "file": {
              "oneOf": [
                {
                  "description": "Relative path from project root (`/`) to the `yaml`/`yml` file template.",
                  "type": "string",
                  "pattern": "\\.ya?ml$"
                },
                {
                  "description": "List of files by relative path from project root (`/`) to the `yaml`/`yml` file template.",
                  "type": "array",
                  "items": {
                    "type": "string",
                    "pattern": "\\.ya?ml$"
                  }
                }
              ]
            }
          },
          "required": [
            "project",
            "file"
          ]
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "template": {
              "description": "Use a `.gitlab-ci.yml` template as a base, e.g. `Nodejs.gitlab-ci.yml`.",
              "type": "string",
              "format": "uri-reference",
              "pattern": "\\.ya?ml$"
            }
          },
          "required": [
            "template"
          ]
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "remote": {
              "description": "URL to a `yaml`/`yml` template file using HTTP/HTTPS.",
              "type": "string",
              "format": "uri-reference",
              "pattern": "^https?://.+\\.ya?ml$"
            }
          },
          "required": [
            "remote"
          ]
        }
      ]
    },
    "!reference": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      }
    },
    "image": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "description": "Full name of the image that should be used. It should contain the Registry part if needed."
        },
        {
          "type": "object",
          "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.",
          "additionalProperties": false,
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "description": "Full name of the image that should be used. It should contain the Registry part if needed."
            },
            "entrypoint": {
              "type": "array",
              "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.",
              "minItems": 1
            },
            "pull_policy": {
              "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/ee/ci/yaml/#imagepull_policy).",
              "default": "always",
              "oneOf": [
                {
                  "type": "string",
                  "enum": [
                    "always",
                    "never",
                    "if-not-present"
                  ]
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "if-not-present"
                    ]
                  },
                  "minItems": 1,
                  "uniqueItems": true
                }
              ]
            }
          },
          "required": [
            "name"
          ]
        },
        {
          "type": "array",
          "minLength": 1,
          "items": {
            "type": "string"
          }
        }
      ],
      "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/ee/ci/yaml/#image)."
    },
    "services": {
      "type": "array",
      "markdownDescription": "Similar to `image` property, but will link the specified services to the `image` container. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#services).",
      "items": {
        "oneOf": [
          {
            "type": "string",
            "minLength": 1,
            "description": "Full name of the image that should be used. It should contain the Registry part if needed."
          },
          {
            "type": "object",
            "description": "",
            "additionalProperties": false,
            "properties": {
              "name": {
                "type": "string",
                "description": "Full name of the image that should be used. It should contain the Registry part if needed.",
                "minLength": 1
              },
              "entrypoint": {
                "type": "array",
                "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.",
                "minItems": 1,
                "items": {
                  "type": "string"
                }
              },
              "pull_policy": {
                "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/ee/ci/yaml/#servicepull_policy).",
                "default": "always",
                "oneOf": [
                  {
                    "type": "string",
                    "enum": [
                      "always",
                      "never",
                      "if-not-present"
                    ]
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "always",
                        "never",
                        "if-not-present"
                      ]
                    },
                    "minItems": 1,
                    "uniqueItems": true
                  }
                ]
              },
              "command": {
                "type": "array",
                "description": "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.",
                "minItems": 1,
                "items": {
                  "type": "string"
                }
              },
              "alias": {
                "type": "string",
                "description": "Additional alias that can be used to access the service from the job's container. Read Accessing the services for more information.",
                "minLength": 1
              }
            },
            "required": [
              "name"
            ]
          }
        ]
      }
    },
    "id_tokens": {
      "type": "object",
      "markdownDescription": "Defines JWTs to be injected as environment variables.",
      "patternProperties": {
        ".*": {
          "type": "object",
          "properties": {
            "aud": {
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "minItems": 1,
                  "uniqueItems": true
                }
              ]
            }
          },
          "required": [
            "aud"
          ],
          "additionalProperties": false
        }
      }
    },
    "secrets": {
      "type": "object",
      "markdownDescription": "Defines secrets to be injected as environment variables. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#secrets).",
      "patternProperties": {
        ".*": {
          "type": "object",
          "properties": {
            "vault": {
              "oneOf": [
                {
                  "type": "string",
                  "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/ee/ci/yaml/#secretsvault)"
                },
                {
                  "type": "object",
                  "properties": {
                    "engine": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "path": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "name",
                        "path"
                      ]
                    },
                    "path": {
                      "type": "string"
                    },
                    "field": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "engine",
                    "path",
                    "field"
                  ],
                  "additionalProperties": false
                }
              ]
            },
            "file": {
              "type": "boolean",
              "default": true,
              "markdownDescription": "Configures the secret to be stored as either a file or variable type CI/CD variable. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#secretsfile)"
            },
            "token": {
              "type": "string",
              "description": "Specifies the JWT variable that should be used to authenticate with Hashicorp Vault."
            }
          },
          "required": [
            "vault"
          ],
          "additionalProperties": false
        }
      }
    },
    "before_script": {
      "type": "array",
      "markdownDescription": "Defines scripts that should run *before* the job. Can be set globally or per job. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#before_script).",
      "items": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        ]
      }
    },
    "after_script": {
      "type": "array",
      "markdownDescription": "Defines scripts that should run *after* the job. Can be set globally or per job. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#after_script).",
      "items": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        ]
      }
    },
    "rules": {
      "type": "array",
      "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/ee/ci/yaml/#rules).",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "if": {
                "$ref": "#/definitions/if"
              },
              "changes": {
                "$ref": "#/definitions/changes"
              },
              "exists": {
                "$ref": "#/definitions/exists"
              },
              "variables": {
                "$ref": "#/definitions/rulesVariables"
              },
              "when": {
                "$ref": "#/definitions/when"
              },
              "start_in": {
                "$ref": "#/definitions/start_in"
              },
              "allow_failure": {
                "$ref": "#/definitions/allow_failure"
              }
            }
          },
          {
            "type": "string",
            "minLength": 1
          },
          {
            "type": "array",
            "minLength": 1,
            "items": {
              "type": "string"
            }
          }
        ]
      }
    },
    "workflowName": {
      "type": "string",
      "markdownDescription": "Defines the pipeline name. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#workflowname).",
      "minLength": 1,
      "maxLength": 255
    },
    "globalVariables": {
      "markdownDescription": "Defines default variables for all jobs. Job level property overrides global variables. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#variables).",
      "type": "object",
      "patternProperties": {
        ".*": {
          "oneOf": [
            {
              "type": [
                "string",
                "number"
              ]
            },
            {
              "type": "object",
              "properties": {
                "value": {
                  "type": "string",
                  "markdownDescription": "Default value of the variable. If used with `options`, `value` must be included in the array. [Learn More](https://docs.gitlab.com/ee/ci/pipelines/index.html#prefill-variables-in-manual-pipelines)"
                },
                "options": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "minItems": 1,
                  "uniqueItems": true,
                  "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/ee/ci/pipelines/index.html#configure-a-list-of-selectable-values-for-a-prefilled-variable)"
                },
                "description": {
                  "type": "string",
                  "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/ee/ci/yaml/#variablesdescription)."
                },
                "expand": {
                  "type": "boolean",
                  "markdownDescription": "If the variable is expandable or not. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#variablesexpand)."
                }
              },
              "additionalProperties": false
            }
          ]
        },
        "additionalProperties": false
      }
    },
    "jobVariables": {
      "markdownDescription": "Defines variables for a job. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#variables).",
      "type": "object",
      "patternProperties": {
        ".*": {
          "oneOf": [
            {
              "type": [
                "string",
                "number"
              ]
            },
            {
              "type": "object",
              "properties": {
                "value": {
                  "type": "string"
                },
                "expand": {
                  "type": "boolean",
                  "markdownDescription": "Defines if the variable is expandable or not. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#variablesexpand)."
                }
              },
              "additionalProperties": false
            }
          ]
        },
        "additionalProperties": false
      }
    },
    "rulesVariables": {
      "markdownDescription": "Defines variables for a rule result. [Learn More](https://docs.gitlab.com/ee/ci/yaml/index.html#rulesvariables).",
      "type": "object",
      "patternProperties": {
        ".*": {
          "type": [
            "string",
            "number"
          ]
        },
        "additionalProperties": false
      }
    },
    "if": {
      "type": "string",
      "markdownDescription": "Expression to evaluate whether additional attributes should be provided to the job. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#rulesif)."
    },
    "changes": {
      "markdownDescription": "Additional attributes will be provided to job if any of the provided paths matches a modified file. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#ruleschanges).",
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "paths"
          ],
          "properties": {
            "paths": {
              "type": "array",
              "description": "List of file paths.",
              "items": {
                "type": "string"
              }
            },
            "compare_to": {
              "type": "string",
              "description": "Ref for comparing changes."
            }
          }
        },
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      ]
    },
    "exists": {
      "type": "array",
      "markdownDescription": "Additional attributes will be provided to job if any of the provided paths matches an existing file in the repository. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#rulesexists).",
      "items": {
        "type": "string"
      }
    },
    "timeout": {
      "type": "string",
      "markdownDescription": "Allows you to configure a timeout for a specific job (e.g. `1 minute`, `1h 30m 12s`). [Learn More](https://docs.gitlab.com/ee/ci/yaml/index.html#timeout).",
      "minLength": 1
    },
    "start_in": {
      "type": "string",
      "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/ee/ci/jobs/job_control.html#run-a-job-after-a-delay).",
      "minLength": 1
    },
    "allow_failure": {
      "markdownDescription": "Allow job to fail. A failed job does not cause the pipeline to fail. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#allow_failure).",
      "oneOf": [
        {
          "description": "Setting this option to true will allow the job to fail while still letting the pipeline pass.",
          "type": "boolean",
          "default": false
        },
        {
          "description": "Exit code that are not considered failure. The job fails for any other exit code.",
          "type": "object",
          "additionalProperties": false,
          "required": [
            "exit_codes"
          ],
          "properties": {
            "exit_codes": {
              "type": "integer"
            }
          }
        },
        {
          "description": "You can list which exit codes are not considered failures. The job fails for any other exit code.",
          "type": "object",
          "additionalProperties": false,
          "required": [
            "exit_codes"
          ],
          "properties": {
            "exit_codes": {
              "type": "array",
              "minItems": 1,
              "uniqueItems": true,
              "items": {
                "type": "integer"
              }
            }
          }
        }
      ]
    },
    "when": {
      "markdownDescription": "Describes the conditions for when to run the job. Defaults to 'on_success'. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#when).",
      "default": "on_success",
      "type": "string",
      "enum": [
        "on_success",
        "on_failure",
        "always",
        "never",
        "manual",
        "delayed"
      ]
    },
    "cache": {
      "markdownDescription": "Use `cache` to specify a list of files and directories to cache between jobs. You can only use paths that are in the local working copy. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#cache)",
      "properties": {
        "key": {
          "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/ee/ci/yaml/#cachekey).",
          "oneOf": [
            {
              "type": "string",
              "pattern": "^(?!.*\\/)^(.*[^.]+.*)$"
            },
            {
              "type": "object",
              "properties": {
                "files": {
                  "markdownDescription": "Use the `cache:key:files` keyword to generate a new key when one or two specific files change. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#cachekeyfiles)",
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "minItems": 1,
                  "maxItems": 2
                },
                "prefix": {
                  "markdownDescription": "Use `cache:key:prefix` to combine a prefix with the SHA computed for `cache:key:files`. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#cachekeyprefix)",
                  "type": "string"
                }
              }
            }
          ]
        },
        "paths": {
          "type": "array",
          "markdownDescription": "Use the `cache:paths` keyword to choose which files or directories to cache. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#cachepaths)",
          "items": {
            "type": "string"
          }
        },
        "policy": {
          "type": "string",
          "markdownDescription": "Determines the strategy for downloading and updating the cache. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#cachepolicy)",
          "default": "pull-push",
          "enum": [
            "pull",
            "push",
            "pull-push"
          ]
        },
        "untracked": {
          "type": "boolean",
          "markdownDescription": "Use `untracked: true` to cache all files that are untracked in your Git repository. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#cacheuntracked)",
          "default": false
        },
        "when": {
          "type": "string",
          "markdownDescription": "Defines when to save the cache, based on the status of the job. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#cachewhen).",
          "default": "on_success",
          "enum": [
            "on_success",
            "on_failure",
            "always"
          ]
        }
      }
    },
    "filter_refs": {
      "type": "array",
      "description": "Filter job by different keywords that determine origin or state, or by supplying string/regex to check against branch/tag names.",
      "items": {
        "anyOf": [
          {
            "oneOf": [
              {
                "enum": [
                  "branches"
                ],
                "description": "When a branch is pushed."
              },
              {
                "enum": [
                  "tags"
                ],
                "description": "When a tag is pushed."
              },
              {
                "enum": [
                  "api"
                ],
                "description": "When a pipeline has been triggered by a second pipelines API (not triggers API)."
              },
              {
                "enum": [
                  "external"
                ],
                "description": "When using CI services other than Gitlab"
              },
              {
                "enum": [
                  "pipelines"
                ],
                "description": "For multi-project triggers, created using the API with 'CI_JOB_TOKEN'."
              },
              {
                "enum": [
                  "pushes"
                ],
                "description": "Pipeline is triggered by a `git push` by the user"
              },
              {
                "enum": [
                  "schedules"
                ],
                "description": "For scheduled pipelines."
              },
              {
                "enum": [
                  "triggers"
                ],
                "description": "For pipelines created using a trigger token."
              },
              {
                "enum": [
                  "web"
                ],
                "description": "For pipelines created using *Run pipeline* button in Gitlab UI (under your project's *Pipelines*)."
              }
            ]
          },
          {
            "type": "string",
            "description": "String or regular expression to match against tag or branch names."
          }
        ]
      }
    },
    "filter": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/definitions/filter_refs"
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "refs": {
              "$ref": "#/definitions/filter_refs"
            },
            "kubernetes": {
              "enum": [
                "active"
              ],
              "description": "Filter job based on if Kubernetes integration is active."
            },
            "variables": {
              "type": "array",
              "markdownDescription": "Filter job by checking comparing values of CI/CD variables. [Learn More](https://docs.gitlab.com/ee/ci/jobs/job_control.html#cicd-variable-expressions).",
              "items": {
                "type": "string"
              }
            },
            "changes": {
              "type": "array",
              "description": "Filter job creation based on files that were modified in a git push.",
              "items": {
                "type": "string"
              }
            }
          }
        }
      ]
    },
    "retry": {
      "markdownDescription": "Retry a job if it fails. Can be a simple integer or object definition. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#retry).",
      "oneOf": [
        {
          "$ref": "#/definitions/retry_max"
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "max": {
              "$ref": "#/definitions/retry_max"
            },
            "when": {
              "markdownDescription": "Either a single or array of error types to trigger job retry. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#retrywhen).",
              "oneOf": [
                {
                  "$ref": "#/definitions/retry_errors"
                },
                {
                  "type": "array",
                  "items": {
                    "$ref": "#/definitions/retry_errors"
                  }
                }
              ]
            }
          }
        }
      ]
    },
    "retry_max": {
      "type": "integer",
      "description": "The number of times the job will be retried if it fails. Defaults to 0 and can max be retried 2 times (3 times total).",
      "default": 0,
      "minimum": 0,
      "maximum": 2
    },
    "retry_errors": {
      "oneOf": [
        {
          "const": "always",
          "description": "Retry on any failure (default)."
        },
        {
          "const": "unknown_failure",
          "description": "Retry when the failure reason is unknown."
        },
        {
          "const": "script_failure",
          "description": "Retry when the script failed."
        },
        {
          "const": "api_failure",
          "description": "Retry on API failure."
        },
        {
          "const": "stuck_or_timeout_failure",
          "description": "Retry when the job got stuck or timed out."
        },
        {
          "const": "runner_system_failure",
          "description": "Retry if there is a runner system failure (for example, job setup failed)."
        },
        {
          "const": "runner_unsupported",
          "description": "Retry if the runner is unsupported."
        },
        {
          "const": "stale_schedule",
          "description": "Retry if a delayed job could not be executed."
        },
        {
          "const": "job_execution_timeout",
          "description": "Retry if the script exceeded the maximum execution time set for the job."
        },
        {
          "const": "archived_failure",
          "description": "Retry if the job is archived and can’t be run."
        },
        {
          "const": "unmet_prerequisites",
          "description": "Retry if the job failed to complete prerequisite tasks."
        },
        {
          "const": "scheduler_failure",
          "description": "Retry if the scheduler failed to assign the job to a runner."
        },
        {
          "const": "data_integrity_failure",
          "description": "Retry if there is a structural integrity problem detected."
        }
      ]
    },
    "interruptible": {
      "type": "boolean",
      "markdownDescription": "Interruptible is used to indicate that a job should be canceled if made redundant by a newer pipeline run. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#interruptible).",
      "default": false
    },
    "job": {
      "allOf": [
        {
          "$ref": "#/definitions/job_template"
        }
      ]
    },
    "job_template": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "image": {
          "$ref": "#/definitions/image"
        },
        "services": {
          "$ref": "#/definitions/services"
        },
        "before_script": {
          "$ref": "#/definitions/before_script"
        },
        "after_script": {
          "$ref": "#/definitions/after_script"
        },
        "hooks": {
          "$ref": "#/definitions/hooks"
        },
        "rules": {
          "$ref": "#/definitions/rules"
        },
        "variables": {
          "$ref": "#/definitions/jobVariables"
        },
        "cache": {
          "$ref": "#/definitions/cache"
        },
        "id_tokens": {
          "$ref": "#/definitions/id_tokens"
        },
        "secrets": {
          "$ref": "#/definitions/secrets"
        },
        "script": {
          "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/ee/ci/yaml/#script)",
          "oneOf": [
            {
              "type": "string",
              "minLength": 1
            },
            {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                ]
              },
              "minItems": 1
            }
          ]
        },
        "stage": {
          "description": "Define what stage the job will run in.",
          "anyOf": [
            {
              "type": "string",
              "minLength": 1
            },
            {
              "type": "array",
              "minLength": 1,
              "items": {
                "type": "string"
              }
            }
          ]
        },
        "only": {
          "$ref": "#/definitions/filter",
          "description": "Job will run *only* when these filtering options match."
        },
        "extends": {
          "description": "The name of one or more jobs to inherit configuration from.",
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "array",
              "items": {
                "type": "string"
              },
              "minItems": 1
            }
          ]
        },
        "needs": {
          "description": "The list of jobs in previous stages whose sole completion is needed to start the current job.",
          "type": "array",
          "items": {
            "oneOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "job": {
                    "type": "string"
                  },
                  "artifacts": {
                    "type": "boolean"
                  },
                  "optional": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "job"
                ]
              },
              {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "pipeline": {
                    "type": "string"
                  },
                  "job": {
                    "type": "string"
                  },
                  "artifacts": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "job",
                  "pipeline"
                ]
              },
              {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "job": {
                    "type": "string"
                  },
                  "project": {
                    "type": "string"
                  },
                  "ref": {
                    "type": "string"
                  },
                  "artifacts": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "job",
                  "project",
                  "ref"
                ]
              }
            ]
          }
        },
        "except": {
          "$ref": "#/definitions/filter",
          "description": "Job will run *except* for when these filtering options match."
        },
        "tags": {
          "$ref": "#/definitions/tags"
        },
        "allow_failure": {
          "$ref": "#/definitions/allow_failure"
        },
        "timeout": {
          "$ref": "#/definitions/timeout"
        },
        "when": {
          "$ref": "#/definitions/when"
        },
        "start_in": {
          "$ref": "#/definitions/start_in"
        },
        "dependencies": {
          "type": "array",
          "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.",
          "items": {
            "type": "string"
          }
        },
        "artifacts": {
          "$ref": "#/definitions/artifacts"
        },
        "environment": {
          "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.",
          "oneOf": [
            {
              "type": "string"
            },
            {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "name": {
                  "type": "string",
                  "description": "The name of the environment, e.g. 'qa', 'staging', 'production'.",
                  "minLength": 1
                },
                "url": {
                  "type": "string",
                  "description": "When set, this will expose buttons in various places for the current environment in Gitlab, that will take you to the defined URL.",
                  "format": "uri",
                  "pattern": "^(https?://.+|\\$[A-Za-z]+)"
                },
                "on_stop": {
                  "type": "string",
                  "description": "The name of a job to execute when the environment is about to be stopped."
                },
                "action": {
                  "enum": [
                    "start",
                    "prepare",
                    "stop",
                    "verify",
                    "access"
                  ],
                  "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.",
                  "default": "start"
                },
                "auto_stop_in": {
                  "type": "string",
                  "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'."
                },
                "kubernetes": {
                  "type": "object",
                  "description": "Used to configure the kubernetes deployment for this environment. This is currently not supported for kubernetes clusters that are managed by Gitlab.",
                  "properties": {
                    "namespace": {
                      "type": "string",
                      "description": "The kubernetes namespace where this environment should be deployed to.",
                      "minLength": 1
                    }
                  }
                },
                "deployment_tier": {
                  "type": "string",
                  "description": "Explicitly specifies the tier of the deployment environment if non-standard environment name is used.",
                  "enum": [
                    "production",
                    "staging",
                    "testing",
                    "development",
                    "other"
                  ]
                }
              },
              "required": [
                "name"
              ]
            }
          ]
        },
        "release": {
          "type": "object",
          "description": "Indicates that the job creates a Release.",
          "additionalProperties": false,
          "properties": {
            "tag_name": {
              "type": "string",
              "description": "The tag_name must be specified. It can refer to an existing Git tag or can be specified by the user.",
              "minLength": 1
            },
            "tag_message": {
              "type": "string",
              "description": "Message to use if creating a new annotated tag."
            },
            "description": {
              "type": "string",
              "description": "Specifies the longer description of the Release.",
              "minLength": 1
            },
            "name": {
              "type": "string",
              "description": "The Release name. If omitted, it is populated with the value of release: tag_name."
            },
            "ref": {
              "type": "string",
              "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."
            },
            "milestones": {
              "type": "array",
              "description": "The title of each milestone the release is associated with.",
              "items": {
                "type": "string"
              }
            },
            "released_at": {
              "type": "string",
              "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.",
              "format": "date-time",
              "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)$"
            },
            "assets": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "links": {
                  "type": "array",
                  "description": "Include asset links in the release.",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "name": {
                        "type": "string",
                        "description": "The name of the link.",
                        "minLength": 1
                      },
                      "url": {
                        "type": "string",
                        "description": "The URL to download a file.",
                        "minLength": 1
                      },
                      "filepath": {
                        "type": "string",
                        "description": "The redirect link to the url."
                      },
                      "link_type": {
                        "type": "string",
                        "description": "The content kind of what users can download via url.",
                        "enum": [
                          "runbook",
                          "package",
                          "image",
                          "other"
                        ]
                      }
                    },
                    "required": [
                      "name",
                      "url"
                    ]
                  },
                  "minItems": 1
                }
              },
              "required": [
                "links"
              ]
            }
          },
          "required": [
            "tag_name",
            "description"
          ]
        },
        "coverage": {
          "type": "string",
          "description": "Must be a regular expression, optionally but recommended to be quoted, and must be surrounded with '/'. Example: '/Code coverage: \\d+\\.\\d+/'",
          "format": "regex",
          "pattern": "^/.+/$"
        },
        "retry": {
          "$ref": "#/definitions/retry"
        },
        "parallel": {
          "description": "Parallel will split up a single job into several, and provide `CI_NODE_INDEX` and `CI_NODE_TOTAL` environment variables for the running jobs.",
          "oneOf": [
            {
              "type": "integer",
              "description": "Creates N instances of the same job that run in parallel.",
              "default": 0,
              "minimum": 2,
              "maximum": 50
            },
            {
              "type": "object",
              "properties": {
                "matrix": {
                  "type": "array",
                  "description": "Defines different variables for jobs that are running in parallel.",
                  "items": {
                    "type": "object",
                    "description": "Defines environment variables for specific job.",
                    "additionalProperties": {
                      "type": [
                        "string",
                        "number",
                        "array"
                      ]
                    }
                  },
                  "maxItems": 50
                }
              },
              "additionalProperties": false,
              "required": [
                "matrix"
              ]
            }
          ]
        },
        "interruptible": {
          "$ref": "#/definitions/interruptible"
        },
        "resource_group": {
          "type": "string",
          "description": "Limit job concurrency. Can be used to ensure that the Runner will not run certain jobs simultaneously."
        },
        "trigger": {
          "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/ee/ci/yaml/index.html#trigger).",
          "oneOf": [
            {
              "type": "object",
              "markdownDescription": "Trigger a multi-project pipeline. [Learn More](https://docs.gitlab.com/ee/ci/pipelines/multi_project_pipelines.html#specify-a-downstream-pipeline-branch).",
              "additionalProperties": false,
              "properties": {
                "project": {
                  "description": "Path to the project, e.g. `group/project`, or `group/sub-group/project`.",
                  "type": "string",
                  "pattern": "(?:\\S/\\S|\\$\\S+)"
                },
                "branch": {
                  "description": "The branch name that a downstream pipeline will use",
                  "type": "string"
                },
                "strategy": {
                  "description": "You can mirror the pipeline status from the triggered pipeline to the source bridge job by using strategy: depend",
                  "type": "string",
                  "enum": [
                    "depend"
                  ]
                },
                "forward": {
                  "description": "Specify what to forward to the downstream pipeline.",
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "yaml_variables": {
                      "type": "boolean",
                      "description": "Variables defined in the trigger job are passed to downstream pipelines.",
                      "default": true
                    },
                    "pipeline_variables": {
                      "type": "boolean",
                      "description": "Variables added for manual pipeline runs and scheduled pipelines are passed to downstream pipelines.",
                      "default": false
                    }
                  }
                }
              },
              "required": [
                "project"
              ],
              "dependencies": {
                "branch": [
                  "project"
                ]
              }
            },
            {
              "type": "object",
              "description": "Trigger a child pipeline. [Learn More](https://docs.gitlab.com/ee/ci/pipelines/parent_child_pipelines.html).",
              "additionalProperties": false,
              "properties": {
                "include": {
                  "oneOf": [
                    {
                      "description": "Relative path from local repository root (`/`) to the local YAML file to define the pipeline configuration.",
                      "type": "string",
                      "format": "uri-reference",
                      "pattern": "\\.ya?ml$"
                    },
                    {
                      "type": "array",
                      "description": "References a local file or an artifact from another job to define the pipeline configuration.",
                      "maxItems": 3,
                      "items": {
                        "oneOf": [
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                              "local": {
                                "description": "Relative path from local repository root (`/`) to the local YAML file to define the pipeline configuration.",
                                "type": "string",
                                "format": "uri-reference",
                                "pattern": "\\.ya?ml$"
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                              "template": {
                                "description": "Name of the template YAML file to use in the pipeline configuration.",
                                "type": "string",
                                "format": "uri-reference",
                                "pattern": "\\.ya?ml$"
                              }
                            }
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                              "artifact": {
                                "description": "Relative path to the generated YAML file which is extracted from the artifacts and used as the configuration for triggering the child pipeline.",
                                "type": "string",
                                "format": "uri-reference",
                                "pattern": "\\.ya?ml$"
                              },
                              "job": {
                                "description": "Job name which generates the artifact",
                                "type": "string"
                              }
                            },
                            "required": [
                              "artifact",
                              "job"
                            ]
                          },
                          {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                              "project": {
                                "description": "Path to another private project under the same GitLab instance, like `group/project` or `group/sub-group/project`.",
                                "type": "string",
                                "pattern": "(?:\\S/\\S|\\$\\S+)"
                              },
                              "ref": {
                                "description": "Branch/Tag/Commit hash for the target project.",
                                "minLength": 1,
                                "type": "string"
                              },
                              "file": {
                                "description": "Relative path from repository root (`/`) to the pipeline configuration YAML file.",
                                "type": "string",
                                "format": "uri-reference",
                                "pattern": "\\.ya?ml$"
                              }
                            },
                            "required": [
                              "project",
                              "file"
                            ]
                          }
                        ]
                      }
                    }
                  ]
                },
                "strategy": {
                  "description": "You can mirror the pipeline status from the triggered pipeline to the source bridge job by using strategy: depend",
                  "type": "string",
                  "enum": [
                    "depend"
                  ]
                },
                "forward": {
                  "description": "Specify what to forward to the downstream pipeline.",
                  "type": "object",
                  "additionalProperties": false,
                  "properties": {
                    "yaml_variables": {
                      "type": "boolean",
                      "description": "Variables defined in the trigger job are passed to downstream pipelines.",
                      "default": true
                    },
                    "pipeline_variables": {
                      "type": "boolean",
                      "description": "Variables added for manual pipeline runs and scheduled pipelines are passed to downstream pipelines.",
                      "default": false
                    }
                  }
                }
              }
            },
            {
              "markdownDescription": "Path to the project, e.g. `group/project`, or `group/sub-group/project`. [Learn More](https://docs.gitlab.com/ee/ci/yaml/index.html#trigger).",
              "type": "string",
              "pattern": "(?:\\S/\\S|\\$\\S+)"
            }
          ]
        },
        "inherit": {
          "type": "object",
          "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/ee/ci/yaml/#inherit).",
          "properties": {
            "default": {
              "markdownDescription": "Whether to inherit all globally-defined defaults or not. Or subset of inherited defaults. [Learn more](https://docs.gitlab.com/ee/ci/yaml/#inheritdefault).",
              "oneOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "after_script",
                      "artifacts",
                      "before_script",
                      "cache",
                      "image",
                      "interruptible",
                      "retry",
                      "services",
                      "tags",
                      "timeout"
                    ]
                  }
                }
              ]
            },
            "variables": {
              "markdownDescription": "Whether to inherit all globally-defined variables or not. Or subset of inherited variables. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#inheritvariables).",
              "oneOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            }
          },
          "additionalProperties": false
        }
      },
      "oneOf": [
        {
          "properties": {
            "when": {
              "enum": [
                "delayed"
              ]
            }
          },
          "required": [
            "when",
            "start_in"
          ]
        },
        {
          "properties": {
            "when": {
              "not": {
                "enum": [
                  "delayed"
                ]
              }
            }
          }
        }
      ]
    },
    "tags": {
      "type": "array",
      "minLength": 1,
      "markdownDescription": "Used to select runners from the list of available runners. A runner must have all tags listed here to run the job. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#tags).",
      "items": {
        "anyOf": [
          {
            "type": "string",
            "minLength": 1
          },
          {
            "type": "array",
            "minLength": 1,
            "items": {
              "type": "string"
            }
          }
        ]
      }
    },
    "hooks": {
      "type": "object",
      "markdownDescription": "Specifies lists of commands to execute on the runner at certain stages of job execution. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#hooks).",
      "properties": {
        "pre_get_sources_script": {
          "markdownDescription": "Specifies a list of commands to execute on the runner before updating the Git repository and any submodules. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#hookspre_get_sources_script).",
          "oneOf": [
            {
              "type": "string",
              "minLength": 1
            },
            {
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                ]
              },
              "minItems": 1
            }
          ]
        }
      },
      "additionalProperties": false
    }
  }
}