From: Jessica Wagantall Date: Sat, 29 Jun 2019 01:37:20 +0000 (-0700) Subject: Add release-schema X-Git-Tag: v0.40.0~17 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=977584d15011d128a65b9193523cc23133bf9068;p=releng%2Fglobal-jjb.git Add release-schema Add schema file used to verify releases yaml file contents during lf-release-jobs Issue: RELENG-2131 Change-Id: I8466269333f6f6597ee2a3b1c55b3140c1ea1e23 Signed-off-by: Jessica Wagantall --- diff --git a/releasenotes/notes/add-release-schema-d333da02348400e0.yaml b/releasenotes/notes/add-release-schema-d333da02348400e0.yaml new file mode 100644 index 00000000..cd76cc73 --- /dev/null +++ b/releasenotes/notes/add-release-schema-d333da02348400e0.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Add release-schema used to validate the releases yaml file as part of + lf-release-jobs. diff --git a/schema/release-schema.yaml b/schema/release-schema.yaml new file mode 100644 index 00000000..adac150b --- /dev/null +++ b/schema/release-schema.yaml @@ -0,0 +1,25 @@ +# SPDX-License-Identifier: EPL-1.0 +############################################################################## +# Copyright (c) 2019 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-schema' + +required: + - 'log_dir' + - 'project' + - 'version' + +properties: + log_dir: + type: 'string' + project: + type: 'string' + version: + type: 'string'