|
142 | 142 | },
|
143 | 143 | {
|
144 | 144 | "type": "array",
|
145 |
| - "minLength": 1, |
| 145 | + "minItems": 1, |
146 | 146 | "items": {
|
147 | 147 | "type": "string"
|
148 | 148 | }
|
|
386 | 386 | {
|
387 | 387 | "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`.",
|
388 | 388 | "type": "string",
|
389 |
| - "format": "uri-reference", |
390 |
| - "pattern": "^(https?://|/?.?-?(?!\\w+://)\\w).+\\.ya?ml$" |
| 389 | + "format": "uri-reference" |
391 | 390 | },
|
392 | 391 | {
|
393 | 392 | "type": "object",
|
|
874 | 873 | }
|
875 | 874 | ]
|
876 | 875 | },
|
| 876 | + "steps": { |
| 877 | + "type": "array", |
| 878 | + "items": { |
| 879 | + "oneOf": [ |
| 880 | + { |
| 881 | + "required": [ |
| 882 | + "step" |
| 883 | + ] |
| 884 | + }, |
| 885 | + { |
| 886 | + "required": [ |
| 887 | + "script" |
| 888 | + ] |
| 889 | + } |
| 890 | + ], |
| 891 | + "properties": { |
| 892 | + "name": { |
| 893 | + "type": "string", |
| 894 | + "description": "Unique identifier for this step." |
| 895 | + }, |
| 896 | + "step": { |
| 897 | + "type": "string", |
| 898 | + "description": "Reference to the step to invoke." |
| 899 | + }, |
| 900 | + "env": { |
| 901 | + "$ref": "#/definitions/globalVariables" |
| 902 | + }, |
| 903 | + "inputs": { |
| 904 | + "$ref": "#/definitions/inputs" |
| 905 | + }, |
| 906 | + "script": { |
| 907 | + "type": "string", |
| 908 | + "description": "Shell script to evaluate." |
| 909 | + } |
| 910 | + }, |
| 911 | + "additionalProperties": false, |
| 912 | + "type": "object", |
| 913 | + "required": [ |
| 914 | + "name" |
| 915 | + ], |
| 916 | + "description": "A single step invocation." |
| 917 | + } |
| 918 | + }, |
877 | 919 | "optional_script": {
|
878 | 920 | "oneOf": [
|
879 | 921 | {
|
|
952 | 994 | },
|
953 | 995 | {
|
954 | 996 | "type": "array",
|
955 |
| - "minLength": 1, |
| 997 | + "minItems": 1, |
956 | 998 | "items": {
|
957 | 999 | "type": "string"
|
958 | 1000 | }
|
|
1004 | 1046 | },
|
1005 | 1047 | {
|
1006 | 1048 | "type": "array",
|
1007 |
| - "minLength": 1, |
| 1049 | + "minItems": 1, |
1008 | 1050 | "items": {
|
1009 | 1051 | "type": "string"
|
1010 | 1052 | }
|
|
1084 | 1126 | "additionalProperties": false
|
1085 | 1127 | }
|
1086 | 1128 | ]
|
1087 |
| - }, |
1088 |
| - "additionalProperties": false |
| 1129 | + } |
1089 | 1130 | }
|
1090 | 1131 | },
|
1091 | 1132 | "jobVariables": {
|
|
1115 | 1156 | "additionalProperties": false
|
1116 | 1157 | }
|
1117 | 1158 | ]
|
1118 |
| - }, |
1119 |
| - "additionalProperties": false |
| 1159 | + } |
1120 | 1160 | }
|
1121 | 1161 | },
|
1122 | 1162 | "rulesVariables": {
|
|
1129 | 1169 | "number",
|
1130 | 1170 | "string"
|
1131 | 1171 | ]
|
1132 |
| - }, |
1133 |
| - "additionalProperties": false |
| 1172 | + } |
1134 | 1173 | }
|
1135 | 1174 | },
|
1136 | 1175 | "if": {
|
|
1169 | 1208 | ]
|
1170 | 1209 | },
|
1171 | 1210 | "exists": {
|
1172 |
| - "type": "array", |
1173 | 1211 | "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).",
|
1174 |
| - "items": { |
1175 |
| - "type": "string" |
1176 |
| - } |
| 1212 | + "anyOf": [ |
| 1213 | + { |
| 1214 | + "type": "array", |
| 1215 | + "items": { |
| 1216 | + "type": "string" |
| 1217 | + } |
| 1218 | + }, |
| 1219 | + { |
| 1220 | + "type": "object", |
| 1221 | + "additionalProperties": false, |
| 1222 | + "required": [ |
| 1223 | + "paths" |
| 1224 | + ], |
| 1225 | + "properties": { |
| 1226 | + "paths": { |
| 1227 | + "type": "array", |
| 1228 | + "description": "List of file paths.", |
| 1229 | + "items": { |
| 1230 | + "type": "string" |
| 1231 | + } |
| 1232 | + }, |
| 1233 | + "project": { |
| 1234 | + "type": "string", |
| 1235 | + "description": "Path of the project to search in." |
| 1236 | + } |
| 1237 | + } |
| 1238 | + }, |
| 1239 | + { |
| 1240 | + "type": "object", |
| 1241 | + "additionalProperties": false, |
| 1242 | + "required": [ |
| 1243 | + "paths", |
| 1244 | + "project" |
| 1245 | + ], |
| 1246 | + "properties": { |
| 1247 | + "paths": { |
| 1248 | + "type": "array", |
| 1249 | + "description": "List of file paths.", |
| 1250 | + "items": { |
| 1251 | + "type": "string" |
| 1252 | + } |
| 1253 | + }, |
| 1254 | + "project": { |
| 1255 | + "type": "string", |
| 1256 | + "description": "Path of the project to search in." |
| 1257 | + }, |
| 1258 | + "ref": { |
| 1259 | + "type": "string", |
| 1260 | + "description": "Ref of the project to search in." |
| 1261 | + } |
| 1262 | + } |
| 1263 | + } |
| 1264 | + ] |
1177 | 1265 | },
|
1178 | 1266 | "timeout": {
|
1179 | 1267 | "type": "string",
|
|
1615 | 1703 | },
|
1616 | 1704 | {
|
1617 | 1705 | "const": "archived_failure",
|
1618 |
| - "description": "Retry if the job is archived and can't be run." |
| 1706 | + "description": "Retry if the job is archived and can’t be run." |
1619 | 1707 | },
|
1620 | 1708 | {
|
1621 | 1709 | "const": "unmet_prerequisites",
|
|
1688 | 1776 | "$ref": "#/definitions/script",
|
1689 | 1777 | "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)"
|
1690 | 1778 | },
|
| 1779 | + "run": { |
| 1780 | + "$ref": "#/definitions/steps", |
| 1781 | + "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." |
| 1782 | + }, |
1691 | 1783 | "stage": {
|
1692 | 1784 | "description": "Define what stage the job will run in.",
|
1693 | 1785 | "anyOf": [
|
|
1697 | 1789 | },
|
1698 | 1790 | {
|
1699 | 1791 | "type": "array",
|
1700 |
| - "minLength": 1, |
| 1792 | + "minItems": 1, |
1701 | 1793 | "items": {
|
1702 | 1794 | "type": "string"
|
1703 | 1795 | }
|
|
1825 | 1917 | "start_in": {
|
1826 | 1918 | "$ref": "#/definitions/start_in"
|
1827 | 1919 | },
|
| 1920 | + "manual_confirmation": { |
| 1921 | + "markdownDescription": "Describes the Custom confirmation message for a manual job [Learn More](https://docs.gitlab.com/ee/ci/yaml/#when).", |
| 1922 | + "type": "string" |
| 1923 | + }, |
1828 | 1924 | "dependencies": {
|
1829 | 1925 | "type": "array",
|
1830 | 1926 | "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.",
|
|
1928 | 2024 | },
|
1929 | 2025 | "ref": {
|
1930 | 2026 | "type": "string",
|
1931 |
| - "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." |
| 2027 | + "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." |
1932 | 2028 | },
|
1933 | 2029 | "milestones": {
|
1934 | 2030 | "type": "array",
|
|
2241 | 2337 | "properties": {
|
2242 | 2338 | "path_prefix": {
|
2243 | 2339 | "type": "string",
|
2244 |
| - "markdownDescription": "The GitLab Pages URL path prefix used in this version of pages." |
| 2340 | + "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." |
2245 | 2341 | }
|
2246 | 2342 | }
|
2247 | 2343 | }
|
|
2275 | 2371 | },
|
2276 | 2372 | "tags": {
|
2277 | 2373 | "type": "array",
|
2278 |
| - "minLength": 1, |
| 2374 | + "minItems": 1, |
2279 | 2375 | "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).",
|
2280 | 2376 | "items": {
|
2281 | 2377 | "anyOf": [
|
|
2285 | 2381 | },
|
2286 | 2382 | {
|
2287 | 2383 | "type": "array",
|
2288 |
| - "minLength": 1, |
| 2384 | + "minItems": 1, |
2289 | 2385 | "items": {
|
2290 | 2386 | "type": "string"
|
2291 | 2387 | }
|
|
0 commit comments