Add release-schema 40/16040/3
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Sat, 29 Jun 2019 01:37:20 +0000 (18:37 -0700)
committerJessica Wagantall <jwagantall@linuxfoundation.org>
Wed, 10 Jul 2019 19:01:03 +0000 (12:01 -0700)
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 <jwagantall@linuxfoundation.org>
releasenotes/notes/add-release-schema-d333da02348400e0.yaml [new file with mode: 0644]
schema/release-schema.yaml [new file with mode: 0644]

diff --git a/releasenotes/notes/add-release-schema-d333da02348400e0.yaml b/releasenotes/notes/add-release-schema-d333da02348400e0.yaml
new file mode 100644 (file)
index 0000000..cd76cc7
--- /dev/null
@@ -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 (file)
index 0000000..adac150
--- /dev/null
@@ -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'