From 977584d15011d128a65b9193523cc23133bf9068 Mon Sep 17 00:00:00 2001 From: Jessica Wagantall Date: Fri, 28 Jun 2019 18:37:20 -0700 Subject: [PATCH] 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 --- .../notes/add-release-schema-d333da02348400e0.yaml | 5 +++++ schema/release-schema.yaml | 25 ++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 releasenotes/notes/add-release-schema-d333da02348400e0.yaml create mode 100644 schema/release-schema.yaml 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' -- 2.16.6