diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-11 03:13:54 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-11 03:13:54 +0300 |
commit | 2d9c62ffb595d2bf555046d09098a0d4af71e17f (patch) | |
tree | c837cf91cf3e50f443d1dcb852b82448637a5c8b /app/assets/javascripts/editor | |
parent | d9710d79c52bc73438022e79c79cfe3ab35b084b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/editor')
-rw-r--r-- | app/assets/javascripts/editor/schema/ci.json | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/app/assets/javascripts/editor/schema/ci.json b/app/assets/javascripts/editor/schema/ci.json index 70f1dddcac9..1fb6f606b6b 100644 --- a/app/assets/javascripts/editor/schema/ci.json +++ b/app/assets/javascripts/editor/schema/ci.json @@ -774,6 +774,9 @@ }, "allow_failure": { "$ref": "#/definitions/allow_failure" + }, + "needs": { + "$ref": "#/definitions/rulesNeeds" } } }, @@ -936,6 +939,39 @@ "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 }, + "rulesNeeds": { + "markdownDescription": "Use needs in rules to update job needs for specific conditions. When a condition matches a rule, the job's needs configuration is completely replaced with the needs in the rule. [Learn More](https://docs.gitlab.com/ee/ci/yaml/index.html#rulesneeds).", + "type": "array", + "items": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "object", + "additionalProperties": false, + "properties": { + "job": { + "type": "string", + "minLength": 1, + "description": "Name of a job that is defined in the pipeline." + }, + "artifacts": { + "type": "boolean", + "description": "Download artifacts of the job in needs." + }, + "optional": { + "type": "boolean", + "description": "Whether the job needs to be present in the pipeline to run ahead of the current job." + } + }, + "required": [ + "job" + ] + } + ] + } + }, "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": [ |