From 216d4b9bc030a5e2b4290c29a3958a479439a9f2 Mon Sep 17 00:00:00 2001 From: Jessica Wagantall Date: Wed, 27 Jan 2021 11:24:19 -0800 Subject: [PATCH] Add schema for artifact releases Add initial schema for artifact self releases. Issue: RELENG-3376 Signed-off-by: Jessica Wagantall Change-Id: I78fe9b602b34b9f062599a6ef823f177975f26e4 --- .../schema-artifact-releases-9f7503eff53a7d29.yaml | 5 +++ schema/release-artifact-schema.yaml | 38 ++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 releasenotes/notes/schema-artifact-releases-9f7503eff53a7d29.yaml create mode 100644 schema/release-artifact-schema.yaml diff --git a/releasenotes/notes/schema-artifact-releases-9f7503eff53a7d29.yaml b/releasenotes/notes/schema-artifact-releases-9f7503eff53a7d29.yaml new file mode 100644 index 00000000..867cf4dc --- /dev/null +++ b/releasenotes/notes/schema-artifact-releases-9f7503eff53a7d29.yaml @@ -0,0 +1,5 @@ +--- +features: + - | + Enable support for artifact type releases. Add initial schema for + artifact release verification. diff --git a/schema/release-artifact-schema.yaml b/schema/release-artifact-schema.yaml new file mode 100644 index 00000000..e9cc0852 --- /dev/null +++ b/schema/release-artifact-schema.yaml @@ -0,0 +1,38 @@ +# SPDX-License-Identifier: EPL-1.0 +############################################################################## +# Copyright (c) 2021 The Linux Foundation and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +############################################################################## +--- +$schema: "http://json-schema.org/schema#" +$id: "https://github.com/lfit/releng-global-jjb/blob/master/release-artifact-schema.yaml" + +required: + - "distribution_type" + - "project" + - "version" + - "artifacts" + +properties: + artifacts: + type: "array" + properties: + name: + type: "string" + path: + type: "string" + additionalProperties: false + distribution_type: + type: "string" + git_tag: + type: "string" + project: + type: "string" + tag_release: + type: "boolean" + version: + type: "string" -- 2.16.6