Merge "Add schema for artifact releases"
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Wed, 10 Feb 2021 22:29:25 +0000 (22:29 +0000)
committerGerrit Code Review <gerrit@linuxfoundation.org>
Wed, 10 Feb 2021 22:29:25 +0000 (22:29 +0000)
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"