From: Jessica Wagantall Date: Wed, 27 Jan 2021 19:24:19 +0000 (-0800) Subject: Add schema for artifact releases X-Git-Tag: v0.61.0~3^2 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=216d4b9bc030a5e2b4290c29a3958a479439a9f2;p=releng%2Fglobal-jjb.git Add schema for artifact releases Add initial schema for artifact self releases. Issue: RELENG-3376 Signed-off-by: Jessica Wagantall Change-Id: I78fe9b602b34b9f062599a6ef823f177975f26e4 --- 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"