Commit 0e500835 authored by Andrew Fontaine's avatar Andrew Fontaine

Merge branch '345352-add-updated-workflow-rules-to-json-schema' into 'master'

Add updated workflow rules to json schema

See merge request gitlab-org/gitlab!74164
parents 33ec5295 edd62820
...@@ -63,9 +63,9 @@ ...@@ -63,9 +63,9 @@
"items": { "items": {
"type": "object", "type": "object",
"properties": { "properties": {
"if": { "if": { "$ref": "#/definitions/if" },
"type": "string" "changes": { "$ref": "#/definitions/changes" },
}, "exists": { "$ref": "#/definitions/exists" },
"variables": { "$ref": "#/definitions/variables" }, "variables": { "$ref": "#/definitions/variables" },
"when": { "when": {
"type": "string", "type": "string",
...@@ -497,24 +497,9 @@ ...@@ -497,24 +497,9 @@
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"if": { "if": { "$ref": "#/definitions/if" },
"type": "string", "changes": { "$ref": "#/definitions/changes" },
"description": "Expression to evaluate whether additional attributes should be provided to the job" "exists": { "$ref": "#/definitions/exists" },
},
"changes": {
"type": "array",
"description": "Additional attributes will be provided to job if any of the provided paths matches a modified file",
"items": {
"type": "string"
}
},
"exists": {
"type": "array",
"description": "Additional attributes will be provided to job if any of the provided paths matches an existing file in the repository",
"items": {
"type": "string"
}
},
"variables": { "$ref": "#/definitions/variables" }, "variables": { "$ref": "#/definitions/variables" },
"when": { "$ref": "#/definitions/when" }, "when": { "$ref": "#/definitions/when" },
"start_in": { "$ref": "#/definitions/start_in" }, "start_in": { "$ref": "#/definitions/start_in" },
...@@ -541,6 +526,24 @@ ...@@ -541,6 +526,24 @@
] ]
} }
}, },
"if": {
"type": "string",
"description": "Expression to evaluate whether additional attributes should be provided to the job"
},
"changes": {
"type": "array",
"description": "Additional attributes will be provided to job if any of the provided paths matches a modified file",
"items": {
"type": "string"
}
},
"exists": {
"type": "array",
"description": "Additional attributes will be provided to job if any of the provided paths matches an existing file in the repository",
"items": {
"type": "string"
}
},
"variables": { "variables": {
"type": "object", "type": "object",
"description": "Defines environment variables for specific jobs. Job level property overrides global variables. If a job sets `variables: {}`, all global variables are turned off.", "description": "Defines environment variables for specific jobs. Job level property overrides global variables. If a job sets `variables: {}`, all global variables are turned off.",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment