You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/check_jsonschema/builtin_schemas/vendor/gitlab-ci.json
+46-20Lines changed: 46 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,9 @@
41
41
"before_script": {
42
42
"$ref": "#/definitions/before_script"
43
43
},
44
+
"hooks": {
45
+
"$ref": "#/definitions/hooks"
46
+
},
44
47
"cache": {
45
48
"$ref": "#/definitions/cache"
46
49
},
@@ -202,25 +205,11 @@
202
205
"when": {
203
206
"markdownDescription": "Configure when artifacts are uploaded depended on job status. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#artifactswhen).",
204
207
"default": "on_success",
205
-
"oneOf": [
206
-
{
207
-
"enum": [
208
-
"on_success"
209
-
],
210
-
"description": "Upload artifacts only when the job succeeds (this is the default)."
211
-
},
212
-
{
213
-
"enum": [
214
-
"on_failure"
215
-
],
216
-
"description": "Upload artifacts only when the job fails."
217
-
},
218
-
{
219
-
"enum": [
220
-
"always"
221
-
],
222
-
"description": "Upload artifacts regardless of job status."
223
-
}
208
+
"type": "string",
209
+
"enum": [
210
+
"on_success",
211
+
"on_failure",
212
+
"always"
224
213
]
225
214
},
226
215
"expire_in": {
@@ -989,6 +978,7 @@
989
978
"default": false
990
979
},
991
980
"when": {
981
+
"type": "string",
992
982
"markdownDescription": "Defines when to save the cache, based on the status of the job. [Learn More](https://docs.gitlab.com/ee/ci/yaml/#cachewhen).",
993
983
"default": "on_success",
994
984
"enum": [
@@ -1230,6 +1220,9 @@
1230
1220
"after_script": {
1231
1221
"$ref": "#/definitions/after_script"
1232
1222
},
1223
+
"hooks": {
1224
+
"$ref": "#/definitions/hooks"
1225
+
},
1233
1226
"rules": {
1234
1227
"$ref": "#/definitions/rules"
1235
1228
},
@@ -1894,6 +1887,39 @@
1894
1887
}
1895
1888
]
1896
1889
}
1890
+
},
1891
+
"hooks": {
1892
+
"type": "object",
1893
+
"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).",
1894
+
"properties": {
1895
+
"pre_get_sources_script": {
1896
+
"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).",
0 commit comments