85609c117e
Add env_var and file as supported types for CI variables. Variables of type file expose to users existing gitlab-runner behaviour - save variable value into a temp file and set the path to this file in an ENV var named after the variable key. Resolves https://gitlab.com/gitlab-org/gitlab-ce/issues/46806.
45 lines
1.3 KiB
JSON
45 lines
1.3 KiB
JSON
{
|
|
"type": "object",
|
|
"properties" : {
|
|
"id": { "type": "integer" },
|
|
"description": { "type": "string" },
|
|
"ref": { "type": "string" },
|
|
"cron": { "type": "string" },
|
|
"cron_timezone": { "type": "string" },
|
|
"next_run_at": { "type": "date" },
|
|
"active": { "type": "boolean" },
|
|
"created_at": { "type": "date" },
|
|
"updated_at": { "type": "date" },
|
|
"last_pipeline": {
|
|
"type": ["object", "null"],
|
|
"properties": {
|
|
"id": { "type": "integer" },
|
|
"sha": { "type": "string" },
|
|
"ref": { "type": "string" },
|
|
"status": { "type": "string" }
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"owner": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": { "type": "string" },
|
|
"username": { "type": "string" },
|
|
"id": { "type": "integer" },
|
|
"state": { "type": "string" },
|
|
"avatar_url": { "type": "uri" },
|
|
"web_url": { "type": "uri" }
|
|
},
|
|
"additionalProperties": false
|
|
},
|
|
"variables": {
|
|
"type": "array",
|
|
"items": { "$ref": "pipeline_schedule_variable.json" }
|
|
}
|
|
},
|
|
"required": [
|
|
"id", "description", "ref", "cron", "cron_timezone", "next_run_at",
|
|
"active", "created_at", "updated_at", "owner"
|
|
],
|
|
"additionalProperties": false
|
|
}
|