Add verify and rebase jobs for policy common and distribution
Change-Id: Id15205b7676a1f401ab3ce2a142033e388f9bd9e
Signed-off-by: liamfallon <liam.fallon@est.tech>
diff --git a/jjb/policy/policy-apex-pdp-verify-jobs.yaml b/jjb/policy/policy-apex-pdp-verify-jobs.yaml
index ee1470b..bc048d9 100644
--- a/jjb/policy/policy-apex-pdp-verify-jobs.yaml
+++ b/jjb/policy/policy-apex-pdp-verify-jobs.yaml
@@ -32,4 +32,3 @@
jobs:
- '{project-name}-{stream}-verify-java'
-
diff --git a/jjb/policy/policy-common-rebase-jobs.yaml b/jjb/policy/policy-common-rebase-jobs.yaml
new file mode 100644
index 0000000..15fa9d7
--- /dev/null
+++ b/jjb/policy/policy-common-rebase-jobs.yaml
@@ -0,0 +1,16 @@
+---
+# this job gets triggered when a change is merged to
+# policy/common project on ONAP Gerrit.
+- project:
+ name: policy-common-rebase
+ project: policy/common
+ project-name: policy-common
+
+ stream:
+ - master:
+ branch: '{stream}'
+# - casablanca:
+# branch: '{stream}'
+
+ jobs:
+ - '{project-name}-{stream}-rebase'
diff --git a/jjb/policy/policy-common-verify-jobs.yaml b/jjb/policy/policy-common-verify-jobs.yaml
new file mode 100644
index 0000000..8e0cd6f
--- /dev/null
+++ b/jjb/policy/policy-common-verify-jobs.yaml
@@ -0,0 +1,36 @@
+---
+#
+# ============LICENSE_START=======================================================
+# Copyright (C) 2018 Nordix Foundation.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#
+# this job gets triggered when a change is proposed to
+# policy/common project on Nordix Gerrit.
+
+- project:
+ name: policy-common-verify
+ project: policy/common
+ project-name: policy-common
+
+ stream:
+ - 'master':
+ branch: '{stream}'
+ - 'nordix-dev':
+ branch: '{stream}'
+
+ jobs:
+ - '{project-name}-{stream}-verify-java'
diff --git a/jjb/policy/policy-distribution-rebase-jobs.yaml b/jjb/policy/policy-distribution-rebase-jobs.yaml
new file mode 100644
index 0000000..48ac4eb
--- /dev/null
+++ b/jjb/policy/policy-distribution-rebase-jobs.yaml
@@ -0,0 +1,16 @@
+---
+# this job gets triggered when a change is merged to
+# policy/distribution project on ONAP Gerrit.
+- project:
+ name: policy-distribution-rebase
+ project: policy/distribution
+ project-name: policy-distribution
+
+ stream:
+ - master:
+ branch: '{stream}'
+# - casablanca:
+# branch: '{stream}'
+
+ jobs:
+ - '{project-name}-{stream}-rebase'
diff --git a/jjb/policy/policy-distribution-verify-jobs.yaml b/jjb/policy/policy-distribution-verify-jobs.yaml
new file mode 100644
index 0000000..d8f9480
--- /dev/null
+++ b/jjb/policy/policy-distribution-verify-jobs.yaml
@@ -0,0 +1,36 @@
+---
+#
+# ============LICENSE_START=======================================================
+# Copyright (C) 2018 Nordix Foundation.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+#
+# this job gets triggered when a change is proposed to
+# policy/distribution project on Nordix Gerrit.
+
+- project:
+ name: policy-distribution-verify
+ project: policy/distribution
+ project-name: policy-distribution
+
+ stream:
+ - 'master':
+ branch: '{stream}'
+ - 'nordix-dev':
+ branch: '{stream}'
+
+ jobs:
+ - '{project-name}-{stream}-verify-java'