From dce1695ec31b789152334c2d69f4062e96bb1f99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=C3=A1n=20Dunne?= Date: Thu, 16 Jan 2025 13:23:40 +0000 Subject: [PATCH] feat: [CI-15754]: support pipeline labels, as per harness v1 spec --- dist/go/pipeline.go | 1 + dist/schema.json | 6 ++++++ schema/pipeline.yaml | 5 +++++ 3 files changed, 12 insertions(+) diff --git a/dist/go/pipeline.go b/dist/go/pipeline.go index 7164e47..ad53a32 100644 --- a/dist/go/pipeline.go +++ b/dist/go/pipeline.go @@ -21,6 +21,7 @@ type Pipeline struct { Stages []*Stage `json:"stages,omitempty"` Inputs map[string]*Input `json:"inputs,omitempty"` Options *Default `json:"options,omitempty"` + Labels map[string]string `json:"labels,omitempty"` } type PipelineV1 struct { diff --git a/dist/schema.json b/dist/schema.json index 28cedd3..0b70042 100644 --- a/dist/schema.json +++ b/dist/schema.json @@ -167,6 +167,12 @@ "options": { "$ref": "#/definitions/Default", "description": "Options defines global configuration options." + }, + "labels": { + "type": "object", + "additionalProperties": { + "type": "string" + } } }, "required": [ diff --git a/schema/pipeline.yaml b/schema/pipeline.yaml index c9431a2..14c725a 100644 --- a/schema/pipeline.yaml +++ b/schema/pipeline.yaml @@ -19,6 +19,11 @@ properties: $ref: ./default.yaml description: Options defines global configuration options. + labels: + type: object + additionalProperties: + type: string + required: - stages