Add schema for artifact releases 38/66638/4
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Wed, 27 Jan 2021 19:24:19 +0000 (11:24 -0800)
committerJessica Wagantall <jwagantall@linuxfoundation.org>
Wed, 27 Jan 2021 23:25:33 +0000 (15:25 -0800)
Add initial schema for artifact self
releases.

Issue: RELENG-3376
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Change-Id: I78fe9b602b34b9f062599a6ef823f177975f26e4

releasenotes/notes/schema-artifact-releases-9f7503eff53a7d29.yaml [new file with mode: 0644]
schema/release-artifact-schema.yaml [new file with mode: 0644]

diff --git a/releasenotes/notes/schema-artifact-releases-9f7503eff53a7d29.yaml b/releasenotes/notes/schema-artifact-releases-9f7503eff53a7d29.yaml
new file mode 100644 (file)
index 0000000..867cf4d
--- /dev/null
@@ -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 (file)
index 0000000..e9cc085
--- /dev/null
@@ -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"