Merge "Add rebase/push jobs for dcaegen2/deployments"
authorLiam Fallon <liam.fallon@est.tech>
Tue, 19 Mar 2019 12:51:42 +0000 (12:51 +0000)
committerNordix Gerrit <gerrit@nordix.org>
Tue, 19 Mar 2019 12:51:42 +0000 (12:51 +0000)
70 files changed:
jjb/aai/aai-schema-service-push-upstream-jobs.yaml [new file with mode: 0644]
jjb/aai/aai-schema-service-rebase-jobs.yaml [new file with mode: 0644]
jjb/aai/aai-schema-service-verify-jobs.yaml [new file with mode: 0644]
jjb/acumos/global-templates-acumos-push-upstream.yaml [new file with mode: 0644]
jjb/acumos/global-templates-acumos-rebase.yaml [new file with mode: 0644]
jjb/acumos/portal-marketplace/portal-marketplace-push-upstream-jobs.yml [new file with mode: 0644]
jjb/acumos/portal-marketplace/portal-marketplace-rebase-jobs.yml [new file with mode: 0644]
jjb/acumos/push-upstream-jobs.sh [new file with mode: 0755]
jjb/acumos/security-verification/security-verification-push-upstream-jobs.yaml [new file with mode: 0644]
jjb/acumos/security-verification/security-verification-rebase-jobs.yaml [new file with mode: 0644]
jjb/acumos/system-integration/system-integration-push-upstream-jobs.yml [new file with mode: 0644]
jjb/acumos/system-integration/system-integration-rebase-jobs.yml [new file with mode: 0644]
jjb/appc/appc-cdt-push-upstream-jobs.yaml [new file with mode: 0644]
jjb/appc/appc-cdt-rebase-jobs.yaml [new file with mode: 0644]
jjb/appc/appc-cdt-verify-jobs.yaml [new file with mode: 0644]
jjb/appc/appc-deployment-push-upstream-jobs.yaml [new file with mode: 0644]
jjb/appc/appc-deployment-rebase-jobs.yaml [new file with mode: 0644]
jjb/appc/appc-deployment-verify-jobs.yaml [new file with mode: 0644]
jjb/appc/appc-parent-push-upstream-jobs.yaml [new file with mode: 0644]
jjb/appc/appc-parent-rebase-jobs.yaml [new file with mode: 0644]
jjb/appc/appc-parent-verify-jobs.yaml [new file with mode: 0644]
jjb/appc/appc-push-upstream-jobs.yaml [new file with mode: 0644]
jjb/appc/appc-rebase-jobs.yaml [new file with mode: 0644]
jjb/appc/appc-verify-jobs.yaml [new file with mode: 0644]
jjb/ccsdk/ccsdk-apps-push-upstream-jobs.yaml [new file with mode: 0644]
jjb/ccsdk/ccsdk-apps-rebase-jobs.yaml [new file with mode: 0644]
jjb/ccsdk/ccsdk-apps-verify-jobs.yaml [new file with mode: 0644]
jjb/ccsdk/ccsdk-cds-push-upstream-jobs.yaml [new file with mode: 0644]
jjb/ccsdk/ccsdk-cds-rebase-jobs.yaml [new file with mode: 0644]
jjb/ccsdk/ccsdk-cds-verify-jobs.yaml [new file with mode: 0644]
jjb/cloud-infra/cloud-infra-deploy.sh [new file with mode: 0644]
jjb/cloud-infra/cloud-infra-test.sh [new file with mode: 0644]
jjb/cloud-infra/cloud-infra-verify-jobs.yaml [new file with mode: 0644]
jjb/cloud-infra/wait-for-pkg-manager.sh [new file with mode: 0644]
jjb/dcaegen2/dcaegen2-collectors-datafile-push-upstream-jobs.yaml
jjb/dcaegen2/dcaegen2-collectors-datafile-verify-jobs.yaml
jjb/dmaap/dmaap-datarouter-push-upstream-jobs.yaml
jjb/dmaap/dmaap-datarouter-rebase-jobs.yaml
jjb/global/global-templates-java.yaml
jjb/global/global-templates-push-upstream.yaml
jjb/global/global-templates-rebase.yaml
jjb/global/jjb-macros.yaml
jjb/global/push-upstream-jobs.sh
jjb/integration/integration-csit-push-upstream-jobs.yaml
jjb/integration/integration-csit-rebase-jobs.yaml
jjb/integration/integration-push-upstream-jobs.yaml
jjb/integration/integration-rebase-jobs.yaml
jjb/oom/oom-offline-installer-push-upstream.yaml [new file with mode: 0644]
jjb/oom/oom-offline-installer-rebase.yaml [new file with mode: 0644]
jjb/policy/policy-drools-applications-push-upstream-jobs.yaml [new file with mode: 0644]
jjb/policy/policy-drools-applications-rebase-jobs.yaml [new file with mode: 0644]
jjb/policy/policy-drools-applications-verify-jobs.yaml [new file with mode: 0644]
jjb/policy/policy-drools-pdp-push-upstream-jobs.yaml [new file with mode: 0644]
jjb/policy/policy-drools-pdp-rebase-jobs.yaml [new file with mode: 0644]
jjb/policy/policy-drools-pdp-verify-jobs.yaml [new file with mode: 0644]
jjb/policy/policy-engine-push-upstream-jobs.yaml [new file with mode: 0644]
jjb/policy/policy-engine-rebase-jobs.yaml [new file with mode: 0644]
jjb/policy/policy-engine-verify-jobs.yaml [new file with mode: 0644]
jjb/policy/policy-models-push-upstream-jobs.yaml [new file with mode: 0644]
jjb/policy/policy-models-rebase-jobs.yaml [new file with mode: 0644]
jjb/policy/policy-models-verify-jobs.yaml [new file with mode: 0644]
jjb/policy/policy-xacml-pdp-push-upstream-jobs.yaml [new file with mode: 0644]
jjb/policy/policy-xacml-pdp-rebase-jobs.yaml [new file with mode: 0644]
jjb/policy/policy-xacml-pdp-verify-jobs.yaml [new file with mode: 0644]
jjb/sdc/sdc-push-upstream-jobs.yaml [new file with mode: 0644]
jjb/sdc/sdc-rebase-jobs.yaml [new file with mode: 0644]
jjb/so/so-push-upstream-jobs.yaml [new file with mode: 0644]
jjb/so/so-rebase-jobs.yaml [new file with mode: 0644]
jjb/testsuite/testsuite-push-upstream-jobs.yaml [new file with mode: 0644]
jjb/testsuite/testsuite-rebase-jobs.yaml [new file with mode: 0644]

diff --git a/jjb/aai/aai-schema-service-push-upstream-jobs.yaml b/jjb/aai/aai-schema-service-push-upstream-jobs.yaml
new file mode 100644 (file)
index 0000000..66a0170
--- /dev/null
@@ -0,0 +1,31 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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 push-upstream is commented on a change on Nordix Gerrit.
+- project:
+    name: aai-schema-service-push-upstream
+    project: aai/schema-service
+    project-name: aai-schema-service
+    stream:
+      - master:
+          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-push-upstream'
diff --git a/jjb/aai/aai-schema-service-rebase-jobs.yaml b/jjb/aai/aai-schema-service-rebase-jobs.yaml
new file mode 100644 (file)
index 0000000..d5a0a4b
--- /dev/null
@@ -0,0 +1,33 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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 merged to
+# aai/schema-service project on ONAP Gerrit.
+- project:
+    name: aai-schema-service-rebase
+    project: aai/schema-service
+    project-name: aai-schema-service
+
+    stream:
+      - master:
+          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-rebase'
diff --git a/jjb/aai/aai-schema-service-verify-jobs.yaml b/jjb/aai/aai-schema-service-verify-jobs.yaml
new file mode 100644 (file)
index 0000000..2c02399
--- /dev/null
@@ -0,0 +1,34 @@
+---
+#
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2018-2019 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
+# aai/schema-service project on Nordix Gerrit.
+
+- project:
+    name: aai-schema-service-verify
+    project: aai/schema-service
+    project-name: aai-schema-service
+
+    stream:
+      - 'master':
+          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-verify-java'
diff --git a/jjb/acumos/global-templates-acumos-push-upstream.yaml b/jjb/acumos/global-templates-acumos-push-upstream.yaml
new file mode 100644 (file)
index 0000000..a6b6cca
--- /dev/null
@@ -0,0 +1,41 @@
+- job-template:
+    name: 'acumos-{project-name}-{stream}-push-upstream'
+
+    node: onap-ubuntu1604
+
+    disabled: false
+
+    concurrent: true
+
+    properties:
+      - logrotate
+
+    parameters:
+      - project-parameters:
+          project: 'acumos/{project}'
+          branch: '{branch}'
+      - nordix-gerrit-parameters
+
+    scm:
+      - git-scm-gerrit:
+          ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
+          branch: '{branch}'
+          refspec: $GERRIT_REFSPEC
+
+    triggers:
+      - nordix-gerrit-push-upstream:
+          project: 'acumos/{project}'
+          branch: '{branch}'
+          files: '**'
+
+    wrappers:
+      - build-timeout:
+          timeout: 10
+
+    builders:
+      - shell:
+          !include-raw-escape: ./push-upstream-jobs.sh
+
+    publishers:
+      - notify-slack:
+          slack-channel: '#infra'
diff --git a/jjb/acumos/global-templates-acumos-rebase.yaml b/jjb/acumos/global-templates-acumos-rebase.yaml
new file mode 100644 (file)
index 0000000..e26e872
--- /dev/null
@@ -0,0 +1,46 @@
+- job-template:
+    name: 'acumos-{project-name}-{stream}-rebase'
+
+    node: infra-build01-ubuntu1804
+
+    disabled: false
+
+    concurrent: false
+
+    properties:
+      - logrotate
+
+    parameters:
+      - project-parameters:
+          project: '{project}'
+          branch: '{branch}'
+      - acumos-gerrit-parameters
+      - string:
+          name: NORDIX_REMOTE
+          default: 'ssh://infra@gerrit.nordix.org:29418/acumos/{project}.git'
+          description: The remote to add for Nordix.
+
+    scm:
+      - git-scm:
+          ssh-credentials-id: nordixinfra-lfn-gerrit-ssh
+          branch: '{branch}'
+          refspec: ''
+
+    triggers:
+      - acumos-gerrit-trigger-change-merged:
+          project: '{project}'
+          branch: '{branch}'
+          files: '**'
+      - timed: "@midnight"
+
+    wrappers:
+      - build-timeout:
+          timeout: 10
+
+    builders:
+      - shell:
+          !include-raw-escape: ../global/rebase-jobs.sh
+
+    publishers:
+      - notify-slack:
+          slack-channel: '#acumos'
diff --git a/jjb/acumos/portal-marketplace/portal-marketplace-push-upstream-jobs.yml b/jjb/acumos/portal-marketplace/portal-marketplace-push-upstream-jobs.yml
new file mode 100644 (file)
index 0000000..85b1257
--- /dev/null
@@ -0,0 +1,30 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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=========================================================
+
+- project:
+    name: portal-marketplace-push-upstream
+    project: portal-marketplace
+    project-name: portal-marketplace
+
+    stream:
+      - master:
+          branch: '{stream}'
+
+    jobs:
+      - 'acumos-{project-name}-{stream}-push-upstream'
diff --git a/jjb/acumos/portal-marketplace/portal-marketplace-rebase-jobs.yml b/jjb/acumos/portal-marketplace/portal-marketplace-rebase-jobs.yml
new file mode 100644 (file)
index 0000000..00fffea
--- /dev/null
@@ -0,0 +1,28 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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=========================================================
+#
+- project:
+    name: portal-marketplace-rebase
+    project: portal-marketplace
+    project-name: portal-marketplace
+    stream:
+      - master:
+          branch: '{stream}'
+    jobs:
+      - 'acumos-{project-name}-{stream}-rebase'
diff --git a/jjb/acumos/push-upstream-jobs.sh b/jjb/acumos/push-upstream-jobs.sh
new file mode 100755 (executable)
index 0000000..1eded15
--- /dev/null
@@ -0,0 +1,76 @@
+#!/bin/bash
+
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 The Nordix Foundation. All rights reserved.
+# ================================================================================
+# 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 script will take the changes that are pushed to Nordix Gerrit and push upstream to ONAP
+# Pre-requisites for script to run successfully:
+# - Author name in Nordix Gerrit equals LFID i.e. need to run "git config --global user.name <LFID>"
+# - infra public key on build server needs to be added to your users SSH Public Keys in ONAP Gerrit
+#
+set -o nounset
+set -o pipefail
+
+cd $WORKSPACE
+echo "Retrieving information from commit to push towards Acumos"
+project=$(git config --local remote.origin.url | awk -F "29418/acumos/" '{print $2}')
+message=$(git show -s --pretty=%B | grep -vi 'Signed-off-by')
+username=$(git show -s --pretty=%an)
+
+pattern=" "
+if [[ "$username" =~ $pattern ]]
+then
+    echo "Incorrect username, use Linux Foundation ID as git user.name when pushing to Nordix"
+    exit 1
+fi
+
+echo "Setting user name and email"
+git config user.email $(git show -s --pretty=%ae)
+git config user.name $username
+
+echo "Checking out branch on master with new changes"
+git reset HEAD~1 --soft
+git checkout -b delivery_branch origin/$BRANCH
+
+git config --get remote.upstream.url
+retVal=$?
+
+if [[ $retVal -eq 0 ]]
+then
+  git remote rm upstream
+  git remote add upstream "ssh://$username@gerrit.acumos.org:29418/$project.git"
+else
+  git remote add upstream "ssh://$username@gerrit.acumos.org:29418/$project.git"
+fi
+
+echo "Committing changes and pushing upstream"
+git commit -as -m "$message"
+git push upstream HEAD:refs/for/$BRANCH
+
+retVal1=$?
+if [[ $retVal1 -eq 0 ]]
+then
+  echo "Push upstream to Acumos succeeded"
+else
+  echo "Push upstream to Acumos failed"
+  exit 2
+fi
+
+git checkout $BRANCH
+git branch -D delivery_branch
diff --git a/jjb/acumos/security-verification/security-verification-push-upstream-jobs.yaml b/jjb/acumos/security-verification/security-verification-push-upstream-jobs.yaml
new file mode 100644 (file)
index 0000000..4a0193d
--- /dev/null
@@ -0,0 +1,30 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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=========================================================
+
+- project:
+    name: security-verification-push-upstream
+    project: security-verification
+    project-name: security-verification
+
+    stream:
+      - master:
+          branch: '{stream}'
+
+    jobs:
+      - 'acumos-{project-name}-{stream}-push-upstream'
diff --git a/jjb/acumos/security-verification/security-verification-rebase-jobs.yaml b/jjb/acumos/security-verification/security-verification-rebase-jobs.yaml
new file mode 100644 (file)
index 0000000..81aeed8
--- /dev/null
@@ -0,0 +1,28 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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=========================================================
+#
+- project:
+    name: security-verification-rebase
+    project: security-verification
+    project-name: security-verification
+    stream:
+      - master:
+          branch: '{stream}'
+    jobs:
+      - 'acumos-{project-name}-{stream}-rebase'
diff --git a/jjb/acumos/system-integration/system-integration-push-upstream-jobs.yml b/jjb/acumos/system-integration/system-integration-push-upstream-jobs.yml
new file mode 100644 (file)
index 0000000..7b45b44
--- /dev/null
@@ -0,0 +1,30 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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=========================================================
+
+- project:
+    name: system-integration-push-upstream
+    project: system-integration
+    project-name: system-integration
+
+    stream:
+      - master:
+          branch: '{stream}'
+
+    jobs:
+      - 'acumos-{project-name}-{stream}-push-upstream'
diff --git a/jjb/acumos/system-integration/system-integration-rebase-jobs.yml b/jjb/acumos/system-integration/system-integration-rebase-jobs.yml
new file mode 100644 (file)
index 0000000..d63fcb2
--- /dev/null
@@ -0,0 +1,28 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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=========================================================
+#
+- project:
+    name: system-integration-rebase
+    project: system-integration
+    project-name: system-integration
+    stream:
+      - master:
+          branch: '{stream}'
+    jobs:
+      - 'acumos-{project-name}-{stream}-rebase'
diff --git a/jjb/appc/appc-cdt-push-upstream-jobs.yaml b/jjb/appc/appc-cdt-push-upstream-jobs.yaml
new file mode 100644 (file)
index 0000000..a2b27ea
--- /dev/null
@@ -0,0 +1,31 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2018-2019 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 push-upstream is commented on a change on Nordix Gerrit.
+- project:
+    name: appc-cdt-push-upstream
+    project: appc/cdt
+    project-name: appc-cdt
+    stream:
+      - master:
+          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-push-upstream'
diff --git a/jjb/appc/appc-cdt-rebase-jobs.yaml b/jjb/appc/appc-cdt-rebase-jobs.yaml
new file mode 100644 (file)
index 0000000..bfc4211
--- /dev/null
@@ -0,0 +1,35 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2018-2019 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 merged to
+# appc/cdt project on ONAP Gerrit.
+- project:
+    name: appc-cdt-rebase
+    project: appc/cdt
+    project-name: appc-cdt
+
+    stream:
+      - master:
+          branch: '{stream}'
+#      - casablanca:
+#          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-rebase'
diff --git a/jjb/appc/appc-cdt-verify-jobs.yaml b/jjb/appc/appc-cdt-verify-jobs.yaml
new file mode 100644 (file)
index 0000000..d8fb376
--- /dev/null
@@ -0,0 +1,34 @@
+---
+#
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2018-2019 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
+# appc/cdt project on Nordix Gerrit.
+
+- project:
+    name: appc-cdt-verify
+    project: appc/cdt
+    project-name: appc-cdt
+
+    stream:
+      - 'master':
+          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-verify-java'
diff --git a/jjb/appc/appc-deployment-push-upstream-jobs.yaml b/jjb/appc/appc-deployment-push-upstream-jobs.yaml
new file mode 100644 (file)
index 0000000..939bb57
--- /dev/null
@@ -0,0 +1,31 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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 push-upstream is commented on a change on Nordix Gerrit.
+- project:
+    name: appc-deployment-push-upstream
+    project: appc/deployment
+    project-name: appc-deployment
+    stream:
+      - master:
+          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-push-upstream'
diff --git a/jjb/appc/appc-deployment-rebase-jobs.yaml b/jjb/appc/appc-deployment-rebase-jobs.yaml
new file mode 100644 (file)
index 0000000..2880385
--- /dev/null
@@ -0,0 +1,35 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2018-2019 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 merged to
+# appc/deployment project on ONAP Gerrit.
+- project:
+    name: appc-deployment-rebase
+    project: appc/deployment
+    project-name: appc-deployment
+
+    stream:
+      - master:
+          branch: '{stream}'
+#      - casablanca:
+#          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-rebase'
diff --git a/jjb/appc/appc-deployment-verify-jobs.yaml b/jjb/appc/appc-deployment-verify-jobs.yaml
new file mode 100644 (file)
index 0000000..71ca179
--- /dev/null
@@ -0,0 +1,35 @@
+---
+#
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2018-2019 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
+# appc/deployment project on Nordix Gerrit.
+
+- project:
+    name: appc-deployment-verify
+    project: appc/deployment
+    project-name: appc-deployment
+
+    stream:
+      - 'master':
+          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-verify-java'
+
diff --git a/jjb/appc/appc-parent-push-upstream-jobs.yaml b/jjb/appc/appc-parent-push-upstream-jobs.yaml
new file mode 100644 (file)
index 0000000..a3ae79c
--- /dev/null
@@ -0,0 +1,31 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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 push-upstream is commented on a change on Nordix Gerrit.
+- project:
+    name: appc-parent-push-upstream
+    project: appc/parent
+    project-name: appc-parent
+    stream:
+      - master:
+          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-push-upstream'
diff --git a/jjb/appc/appc-parent-rebase-jobs.yaml b/jjb/appc/appc-parent-rebase-jobs.yaml
new file mode 100644 (file)
index 0000000..a9410c8
--- /dev/null
@@ -0,0 +1,35 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2018-2019 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 merged to
+# appc/parent project on ONAP Gerrit.
+- project:
+    name: appc-parent-rebase
+    project: appc/parent
+    project-name: appc-parent
+
+    stream:
+      - master:
+          branch: '{stream}'
+#      - casablanca:
+#          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-rebase'
diff --git a/jjb/appc/appc-parent-verify-jobs.yaml b/jjb/appc/appc-parent-verify-jobs.yaml
new file mode 100644 (file)
index 0000000..b806531
--- /dev/null
@@ -0,0 +1,35 @@
+---
+#
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2018-2019 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
+# appc/parent project on Nordix Gerrit.
+
+- project:
+    name: appc-parent-verify
+    project: appc/parent
+    project-name: appc-parent
+
+    stream:
+      - 'master':
+          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-verify-java'
+
diff --git a/jjb/appc/appc-push-upstream-jobs.yaml b/jjb/appc/appc-push-upstream-jobs.yaml
new file mode 100644 (file)
index 0000000..45b1436
--- /dev/null
@@ -0,0 +1,33 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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 push-upstream is commented on a change on Nordix Gerrit.
+- project:
+    name: appc-push-upstream
+    project: appc
+    project-name: appc
+
+    stream:
+      - master:
+          branch: '{stream}'
+#      - casablanca:
+#          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-push-upstream'
diff --git a/jjb/appc/appc-rebase-jobs.yaml b/jjb/appc/appc-rebase-jobs.yaml
new file mode 100644 (file)
index 0000000..707a46d
--- /dev/null
@@ -0,0 +1,33 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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 merged to
+# appc project on ONAP Gerrit.
+
+- project:
+    name: appc-rebase
+    project: appc
+    project-name: appc
+    stream:
+      - master:
+          branch: '{stream}'
+#      - casablanca:
+#          branch: '{stream}'
+    jobs:
+      - '{project-name}-{stream}-rebase'
diff --git a/jjb/appc/appc-verify-jobs.yaml b/jjb/appc/appc-verify-jobs.yaml
new file mode 100644 (file)
index 0000000..8175e26
--- /dev/null
@@ -0,0 +1,35 @@
+---
+#
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2018-2019 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
+# appc project on Nordix Gerrit.
+
+- project:
+    name: appc-verify
+    project: appc
+    project-name: appc
+
+    stream:
+      - 'master':
+          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-verify-java'
+
diff --git a/jjb/ccsdk/ccsdk-apps-push-upstream-jobs.yaml b/jjb/ccsdk/ccsdk-apps-push-upstream-jobs.yaml
new file mode 100644 (file)
index 0000000..9c2dcc9
--- /dev/null
@@ -0,0 +1,31 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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 push-upstream is commented on a change on Nordix Gerrit.
+- project:
+    name: ccsdk-apps-push-upstream
+    project: ccsdk/apps
+    project-name: ccsdk-apps
+    stream:
+      - master:
+          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-push-upstream'
diff --git a/jjb/ccsdk/ccsdk-apps-rebase-jobs.yaml b/jjb/ccsdk/ccsdk-apps-rebase-jobs.yaml
new file mode 100644 (file)
index 0000000..fbf3559
--- /dev/null
@@ -0,0 +1,33 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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 merged to
+# ccsdk/apps project on ONAP Gerrit.
+- project:
+    name: ccsdk-apps-rebase
+    project: ccsdk/apps
+    project-name: ccsdk-apps
+
+    stream:
+      - master:
+          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-rebase'
diff --git a/jjb/ccsdk/ccsdk-apps-verify-jobs.yaml b/jjb/ccsdk/ccsdk-apps-verify-jobs.yaml
new file mode 100644 (file)
index 0000000..7bfe2d2
--- /dev/null
@@ -0,0 +1,35 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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
+# ccsdk/apps project on Nordix Gerrit.
+- project:
+
+    name: ccsdk-apps-verify
+
+    project: ccsdk/apps
+
+    project-name: ccsdk-apps
+
+    stream:
+      - master:
+          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-verify-java'
diff --git a/jjb/ccsdk/ccsdk-cds-push-upstream-jobs.yaml b/jjb/ccsdk/ccsdk-cds-push-upstream-jobs.yaml
new file mode 100644 (file)
index 0000000..5281648
--- /dev/null
@@ -0,0 +1,31 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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 push-upstream is commented on a change on Nordix Gerrit.
+- project:
+    name: ccsdk-cds-push-upstream
+    project: ccsdk/cds
+    project-name: ccsdk-cds
+    stream:
+      - master:
+          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-push-upstream'
diff --git a/jjb/ccsdk/ccsdk-cds-rebase-jobs.yaml b/jjb/ccsdk/ccsdk-cds-rebase-jobs.yaml
new file mode 100644 (file)
index 0000000..8e7ad3f
--- /dev/null
@@ -0,0 +1,33 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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 merged to
+# ccsdk/cds project on ONAP Gerrit.
+- project:
+    name: ccsdk-cds-rebase
+    project: ccsdk/cds
+    project-name: ccsdk-cds
+
+    stream:
+      - master:
+          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-rebase'
diff --git a/jjb/ccsdk/ccsdk-cds-verify-jobs.yaml b/jjb/ccsdk/ccsdk-cds-verify-jobs.yaml
new file mode 100644 (file)
index 0000000..e1f6cf9
--- /dev/null
@@ -0,0 +1,35 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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
+# ccsdk/cds project on Nordix Gerrit.
+- project:
+
+    name: ccsdk-cds-verify
+
+    project: ccsdk/cds
+
+    project-name: ccsdk-cds
+
+    stream:
+      - master:
+          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-verify-java'
diff --git a/jjb/cloud-infra/cloud-infra-deploy.sh b/jjb/cloud-infra/cloud-infra-deploy.sh
new file mode 100644 (file)
index 0000000..a73f3f6
--- /dev/null
@@ -0,0 +1,39 @@
+#!/bin/bash
+
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 The Nordix Foundation. All rights reserved.
+# ================================================================================
+# 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=========================================================
+
+set -o errexit
+set -o nounset
+set -o pipefail
+
+# This script is a wrapper around actual cloud infra engine deploy.sh script which gets
+# executed when the job that uses this script gets triggered due to Gerrit change.
+#
+# Logic in this script should be kept at minimum and the changes should be pushed into
+# the cloud infra engine deploy.sh script.
+
+# The verify job will verify changes coming to other repositories as well such as
+# infra/swconfig so it needs to be handled here in order to ensure $WORKSPACE contains
+# the actual engine repo clone. This will be added later on.
+
+# execute cloud engine deploy.sh script
+cd $WORKSPACE
+./engine/deploy.sh
+
+# vim: set ts=2 sw=2 expandtab:
diff --git a/jjb/cloud-infra/cloud-infra-test.sh b/jjb/cloud-infra/cloud-infra-test.sh
new file mode 100644 (file)
index 0000000..d12c943
--- /dev/null
@@ -0,0 +1,39 @@
+#!/bin/bash
+
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 The Nordix Foundation. All rights reserved.
+# ================================================================================
+# 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=========================================================
+
+set -o errexit
+set -o nounset
+set -o pipefail
+
+# This script is a wrapper around actual cloud infra engine test.sh script which gets
+# executed when the job that uses this script gets triggered due to Gerrit change.
+#
+# Logic in this script should be kept at minimum and the changes should be pushed into
+# the cloud infra engine and/or test repo.
+
+# The verify job will verify changes coming to other repositories as well such as
+# infra/swconfig so it needs to be handled here in order to ensure $WORKSPACE contains
+# the actual engine repo clone. This will be added later on.
+
+# we currently only do Hello World here and this will be adapted to do test instead
+cd $WORKSPACE
+echo "Hello World!"
+
+# vim: set ts=2 sw=2 expandtab:
diff --git a/jjb/cloud-infra/cloud-infra-verify-jobs.yaml b/jjb/cloud-infra/cloud-infra-verify-jobs.yaml
new file mode 100644 (file)
index 0000000..bbb5bae
--- /dev/null
@@ -0,0 +1,242 @@
+---
+#
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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=========================================================
+
+- project:
+    name: 'cloud-infra-verify'
+
+    project: 'infra/engine'
+
+    stream:
+      - 'master':
+          branch: '{stream}'
+          disabled: 'false'
+
+    os:
+      - ubuntu1604:
+          disabled: 'true'
+          distribution: 'ubuntu16'
+          ipa_dib_os_element: 'fedora'
+          dib_os_release: 'xenial'
+          dib_os_element: 'ubuntu-minimal'
+      - ubuntu1804:
+          disabled: 'false'
+          distribution: 'ubuntu18'
+          ipa_dib_os_element: 'fedora'
+          dib_os_release: 'bionic'
+          dib_os_element: 'ubuntu-minimal'
+      - centos7:
+          disabled: 'true'
+          distribution: 'centos7'
+          ipa_dib_os_element: 'fedora'
+          dib_os_release: '7'
+          dib_os_element: 'centos-minimal'
+
+    type:
+      - virtual
+
+    phase:
+      - deploy
+      - test
+
+    jobs:
+      - 'cloud-infra-verify-{os}-{type}-{stream}'
+      - 'cloud-infra-verify-{os}-{phase}-{type}-{stream}'
+
+- job-template:
+    name: 'cloud-infra-verify-{os}-{type}-{stream}'
+
+    project-type: multijob
+
+    disabled: '{obj:disabled}'
+
+    concurrent: true
+
+    parameters:
+      - project-parameters:
+          project: '{project}'
+          branch: '{branch}'
+      - nordix-gerrit-parameters
+      - label:
+          name: SLAVE_LABEL
+          default: 'vpod-deploy-{os}'
+          description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
+      - string:
+          name: DISTRIBUTION
+          default: '{distribution}'
+          description: 'Distribution to use for configuring target nodes (networking etc.)'
+      - string:
+          name: IPA_DIB_OS_ELEMENT
+          default: '{ipa_dib_os_element}'
+          description: 'DIB OS Element to use for building the ramdisk image'
+      - string:
+          name: DIB_OS_RELEASE
+          default: '{dib_os_release}'
+          description: 'DIB OS Release to use for building the deployment image to provision target nodes with'
+      - string:
+          name: DIB_OS_ELEMENT
+          default: '{dib_os_element}'
+          description: 'DIB OS Element to use for building the deployment image to provision target nodes with'
+      - string:
+          name: CLEANUP
+          default: 'true'
+          description: 'Cleanup leftovers of the previous run'
+
+    properties:
+      - logrotate
+      - build-blocker:
+          use-build-blocker: true
+          blocking-jobs:
+            - 'cloud-infra-verify-{os}-.*'
+            - 'cloud-infra-os-.*'
+            - 'cloud-infra-k8-.*'
+          block-level: 'NODE'
+      - throttle:
+          max-per-node: 1
+          max-total: 3
+          option: project
+
+    wrappers:
+      - build-timeout:
+          timeout: 120
+      - fix-workspace-permissions
+      - openstack:
+          single-use: True
+
+    scm:
+      - git-scm-gerrit:
+          ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
+          branch: '{branch}'
+          refspec: $GERRIT_REFSPEC
+
+    triggers:
+      - nordix-gerrit-trigger-patchset-created:
+          project: 'infra\/engine|infra\/swconfig'
+          branch: '{branch}'
+          files: '**'
+
+    builders:
+      - multijob:
+          name: deploy
+          condition: SUCCESSFUL
+          projects:
+            - name: 'cloud-infra-verify-{os}-deploy-{type}-{stream}'
+              current-parameters: true
+              predefined-parameters: |
+                DISTRIBUTION=$DISTRIBUTION
+                IPA_DIB_OS_ELEMENT=$IPA_DIB_OS_ELEMENT
+                DIB_OS_RELEASE=$DIB_OS_RELEASE
+                DIB_OS_ELEMENT=$DIB_OS_ELEMENT
+                CLEANUP=$CLEANUP
+                GERRIT_PROJECT=$GERRIT_PROJECT
+                GERRIT_BRANCH=$GERRIT_BRANCH
+                GERRIT_REFSPEC=$GERRIT_REFSPEC
+                GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
+                GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
+              node-parameters: true
+              kill-phase-on: FAILURE
+              abort-all-job: true
+      - multijob:
+          name: test
+          condition: SUCCESSFUL
+          projects:
+            - name: 'cloud-infra-verify-{os}-test-{type}-{stream}'
+              current-parameters: true
+              predefined-parameters: |
+                DISTRIBUTION=$DISTRIBUTION
+                IPA_DIB_OS_ELEMENT=$IPA_DIB_OS_ELEMENT
+                DIB_OS_RELEASE=$DIB_OS_RELEASE
+                DIB_OS_ELEMENT=$DIB_OS_ELEMENT
+                CLEANUP=$CLEANUP
+                GERRIT_PROJECT=$GERRIT_PROJECT
+                GERRIT_BRANCH=$GERRIT_BRANCH
+                GERRIT_REFSPEC=$GERRIT_REFSPEC
+                GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
+                GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
+              node-parameters: true
+              kill-phase-on: test
+              abort-all-job: true
+
+- job-template:
+    name: 'cloud-infra-verify-{os}-{phase}-{type}-{stream}'
+
+    disabled: false
+
+    concurrent: true
+
+    properties:
+      - logrotate
+
+    parameters:
+      - string:
+          name: PROJECT
+          default: $GERRIT_PROJECT
+      - string:
+          name: DISTRIBUTION
+          default: 'ubuntu18'
+          description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
+      - string:
+          name: IPA_DIB_OS_ELEMENT
+          default: 'fedora'
+          description: 'DIB OS Element to use for building the ramdisk image. Overriden by upstream job.'
+      - string:
+          name: DIB_OS_RELEASE
+          default: 'bionic'
+          description: 'DIB OS Release to use for building the deployment image to provision target nodes with. Overriden by upstream job.'
+      - string:
+          name: DIB_OS_ELEMENT
+          default: 'ubuntu-minimal'
+          description: 'DIB OS Element to use for building the deployment image to provision target nodes with. Overriden by upstream job.'
+      - string:
+          name: CLEANUP
+          default: 'false'
+
+    wrappers:
+      - build-timeout:
+          timeout: 120
+      - fix-workspace-permissions
+
+    scm:
+      - git-scm-gerrit:
+          ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
+          branch: '{branch}'
+          refspec: $GERRIT_REFSPEC
+
+    builders:
+      - 'cloud-infra-verify-{phase}-macro'
+
+# -------------------------------
+# builder macros
+# -------------------------------
+
+- builder:
+    name: 'cloud-infra-verify-deploy-macro'
+    builders:
+      - shell:
+          !include-raw: ./wait-for-pkg-manager.sh
+      - shell:
+          !include-raw: ./cloud-infra-deploy.sh
+
+- builder:
+    name: 'cloud-infra-verify-test-macro'
+    builders:
+      - shell:
+          !include-raw: ./cloud-infra-test.sh
+
+# vim: set ts=2 sw=2 expandtab:
diff --git a/jjb/cloud-infra/wait-for-pkg-manager.sh b/jjb/cloud-infra/wait-for-pkg-manager.sh
new file mode 100644 (file)
index 0000000..53eaa09
--- /dev/null
@@ -0,0 +1,50 @@
+#!/bin/bash
+
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 The Nordix Foundation. All rights reserved.
+# ================================================================================
+# 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=========================================================
+
+set -o errexit
+set -o nounset
+set -o pipefail
+
+source /etc/os-release || source /usr/lib/os-release
+case ${ID,,} in
+  centos)
+    pkg_mgr_cmd="yum"
+    ;;
+  ubuntu)
+    pkg_mgr_cmd="apt"
+    ;;
+esac
+
+# just wait few seconds before attempting to check pkg manager process
+sleep 10
+
+echo "Checking for running package manager instance..."
+while true; do
+  pkg_mgr_process=$(pgrep -f $pkg_mgr_cmd | cat)
+  if [[ -n $pkg_mgr_process ]]; then
+    echo "Waiting for $pkg_mgr_cmd process $pkg_mgr_process to finish..."
+    sleep 10
+  else
+    echo "$pkg_mgr_cmd process done. Continuing..."
+    break
+  fi
+done
+
+# vim: set ts=2 sw=2 expandtab:
index 3e17bb675259ea175c822004981d47c624484613..a844d30bc542e13f3af21d8ea6db3e12e38cc24a 100644 (file)
@@ -21,7 +21,7 @@
 - project:
     name: dcaegen2-collectors-datafile-push-upstream
     project: dcaegen2/collectors/datafile
-    project-name: ddcaegen2-collectors-datafile
+    project-name: dcaegen2-collectors-datafile
     stream:
       - master:
           branch: '{stream}'
index a207a956df2747bc2bacc6c6df3ecc5db046e706..5317f02f8efe71f8278f05e2f9ef0ae2ba86cfc1 100644 (file)
@@ -10,6 +10,8 @@
     project-name: dcaegen2-collectors-datafile
 
     stream:
+      - nordix-dev:
+          branch: '{stream}'
       - master:
           branch: '{stream}'
       - casablanca:
index ae291c2aa9dff0c739b0e3601a96156ed97a7609..dc936b90b100e2732da58d8bce4df0daf7fd2875 100644 (file)
@@ -25,6 +25,8 @@
     stream:
       - master:
           branch: '{stream}'
+      - casablanca:
+          branch: '{stream}'
 
     jobs:
       - '{project-name}-{stream}-push-upstream'
index 4ce649b373a79e07a23b111e70e62d2eda42aad4..ce8645b602cabacfd643e17e540abae8a5ed52af 100644 (file)
@@ -26,5 +26,8 @@
     stream:
       - master:
           branch: '{stream}'
+      - casablanca:
+          branch: '{stream}'
+
     jobs:
       - '{project-name}-{stream}-rebase'
index 0933bc0cc40ea782799231aaeb584b490a7a7194..53eab0512625370bab30e441750f819bc87c7b87 100644 (file)
@@ -7,6 +7,9 @@
 
     concurrent: true
 
+    properties:
+      - logrotate
+
     parameters:
       - project-parameters:
           project: '{project}'
index 7b5612e9cd8eb6cf8a778080be6f4319e09d540c..032a71748a391f08b2b328dd270c6e15a6caa93f 100644 (file)
@@ -7,6 +7,9 @@
 
     concurrent: true
 
+    properties:
+      - logrotate
+
     parameters:
       - project-parameters:
           project: '{project}'
@@ -32,3 +35,7 @@
     builders:
       - shell:
           !include-raw-escape: ./push-upstream-jobs.sh
+
+    publishers:
+      - notify-slack:
+          slack-channel: '#infra'
index 38712ae2a87e9a85d4ebb5b0d5b7539c413983ee..6ac53a954ff119067ad44387793325775b1a426d 100644 (file)
@@ -7,6 +7,9 @@
 
     concurrent: false
 
+    properties:
+      - logrotate
+
     parameters:
       - project-parameters:
           project: '{project}'
@@ -28,6 +31,7 @@
           project: '{project}'
           branch: '{branch}'
           files: '**'
+      - timed: "@midnight"
 
     wrappers:
       - build-timeout:
@@ -36,3 +40,7 @@
     builders:
       - shell:
           !include-raw-escape: ./rebase-jobs.sh
+
+    publishers:
+      - notify-slack:
+          slack-channel: '#infra'
index cedcea1b5113f4b43f9c68c15e733387a70ab214..b96a205b0fbbf082b06da1588095161cda20b28a 100644 (file)
@@ -9,7 +9,7 @@
           description: OpenStack JJB repo
       - string:
           name: JJB_VERSION
-          default: 2.2.1
+          default: 2.9.1
           description: OpenStack JJB version to install - matches to LFN JJB version
 
 # these parameters are used for setting the Gerrit Project on Nordix
           default: ssh://$GERRIT_USER@gerrit.onap.org:29418
           description: SSH URL to Project Repo on ONAP Gerrit to clone repo
 
+- parameter:
+    name: acumos-gerrit-parameters
+    parameters:
+      - string:
+          name: GERRIT_USER
+          default: nordix
+          description: Non-interactive user to stream Gerrit Events on Acumos Gerrit
+      - string:
+          name: GIT_BASE_HTTPS
+          default: https://gerrit.acumos.org/r/p
+          description: HTTPS URL to Project Repo on Acumos Gerrit to clone repo
+      - string:
+          name: GIT_BASE_SSH
+          default: ssh://$GERRIT_USER@gerrit.acumos.org:29418
+          description: SSH URL to Project Repo on Acumos Gerrit to clone repo
+
 # defaults for job build history
 - property:
     name: logrotate-default
             - comment-added-contains-event:
                 comment-contains-value: 'reverify'
           projects:
-            - project-compare-type: 'ANT'
+            - project-compare-type: 'REG_EXP'
               project-pattern: '{project}'
               branches:
                 - branch-compare-type: 'ANT'
           silent: true
           silent-start: true
 
+# triggers for Acumos Gerrit
+- trigger:
+    name: acumos-gerrit-trigger-change-merged
+    triggers:
+      - gerrit:
+          server-name: 'Acumos Gerrit'
+          trigger-on:
+            - change-merged-event
+            - comment-added-contains-event:
+                comment-contains-value: 'remerge'
+          projects:
+            - project-compare-type: 'ANT'
+              project-pattern: '{project}'
+              branches:
+                - branch-compare-type: 'ANT'
+                  branch-pattern: '**/{branch}'
+              file-paths:
+                - compare-type: 'ANT'
+                  pattern: '{files}'
+          silent: true
+          silent-start: true
+
+
 # wrappers to use for jobs
 - wrapper:
     name: nordixinfra-jjb-creds-wrapper
           timeout: '{timeout}'
           timeout-var: 'BUILD_TIMEOUT'
           fail: true
+
+# wrapper to fix jenkins build workspace permissions
+- wrapper:
+    name: fix-workspace-permissions
+    wrappers:
+      - pre-scm-buildstep:
+          failOnError: true
+          buildsteps:
+            - shell: |
+                #!/bin/bash
+                sudo chown -R $USER:$USER $WORKSPACE || exit 1
+
+- publisher:
+    name: notify-slack
+    publishers:
+      - slack:
+          room: '{slack-channel}'
+          notify-failure: True
+
+# property to discard old builds
+- property:
+    name: logrotate
+    properties:
+      - build-discarder:
+          days-to-keep: 30
+          num-to-keep: 100
+          artifact-days-to-keep: 30
+          artifact-num-to-keep: 100
index 492071c5086d0d848de0e40934052b9fb667f88d..49af36e76eeb92801afa401140a22f080e236d9b 100755 (executable)
@@ -46,7 +46,7 @@ git config user.name $username
 
 echo "Checking out branch on master with new changes"
 git reset HEAD~1 --soft
-git checkout -b delivery_branch origin/master
+git checkout -b delivery_branch origin/$BRANCH
 
 git config --get remote.upstream.url
 retVal=$?
index 8b394c5d8441b0fee7cf17d8c96e53d7ce2ffb5c..54a8edb9a82d6a6d90f57b6968cdc7e09d5c9545 100644 (file)
@@ -25,6 +25,8 @@
     stream:
       - master:
           branch: '{stream}'
+      - casablanca:
+          branch: '{stream}'
 
     jobs:
       - '{project-name}-{stream}-push-upstream'
index 7499efb1c0f484bdfe51332a6275095376cadc33..cdfdc3aa823e37c8c05e693f6a34f89b743dfeef 100644 (file)
@@ -27,5 +27,8 @@
     stream:
       - master:
           branch: '{stream}'
+      - casablanca:
+          branch: '{stream}'
+
     jobs:
       - '{project-name}-{stream}-rebase'
\ No newline at end of file
index 631d8bcaa72cc24b91764f2f504ddcd3511fc663..5edaaa7b75abefa870b00c07cd896c3336f3280c 100644 (file)
@@ -25,6 +25,8 @@
     stream:
       - master:
           branch: '{stream}'
+      - casablanca:
+          branch: '{stream}'
 
     jobs:
       - '{project-name}-{stream}-push-upstream'
index ec4482895f9c0608433dedec64832758f12dc4fb..78cbb3a9f4dc39ffd00d79e3707548f1cdc87609 100644 (file)
@@ -27,5 +27,8 @@
     stream:
       - master:
           branch: '{stream}'
+      - casablanca:
+          branch: '{stream}'
+
     jobs:
       - '{project-name}-{stream}-rebase'
\ No newline at end of file
diff --git a/jjb/oom/oom-offline-installer-push-upstream.yaml b/jjb/oom/oom-offline-installer-push-upstream.yaml
new file mode 100644 (file)
index 0000000..3fcc782
--- /dev/null
@@ -0,0 +1,29 @@
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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 push-upstream is commented on a change on Nordix Gerrit.
+- project:
+    name: oom-offline-installer-push-upstream
+    project: oom/offline-installer
+    project-name: oom-offline-installer
+    stream:
+      - master:
+          branch: '{stream}'
+    jobs:
+      - '{project-name}-{stream}-push-upstream'
+
diff --git a/jjb/oom/oom-offline-installer-rebase.yaml b/jjb/oom/oom-offline-installer-rebase.yaml
new file mode 100644 (file)
index 0000000..0ea8d36
--- /dev/null
@@ -0,0 +1,30 @@
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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 merged to
+# oom/offline-installer project on ONAP Gerrit.
+- project:
+    name: oom-offline-installer-rebase
+    project: oom/offline-installer
+    project-name: oom-offline-installer
+    stream:
+      - master:
+          branch: '{stream}'
+    jobs:
+      - '{project-name}-{stream}-rebase'
+
diff --git a/jjb/policy/policy-drools-applications-push-upstream-jobs.yaml b/jjb/policy/policy-drools-applications-push-upstream-jobs.yaml
new file mode 100644 (file)
index 0000000..b10c0e5
--- /dev/null
@@ -0,0 +1,31 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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 push-upstream is commented on a change on Nordix Gerrit.
+- project:
+    name: policy-drools-applications-push-upstream
+    project: policy/drools-applications
+    project-name: policy-drools-applications
+    stream:
+      - master:
+          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-push-upstream'
diff --git a/jjb/policy/policy-drools-applications-rebase-jobs.yaml b/jjb/policy/policy-drools-applications-rebase-jobs.yaml
new file mode 100644 (file)
index 0000000..c29ae60
--- /dev/null
@@ -0,0 +1,35 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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 merged to
+# policy/drools-applications project on ONAP Gerrit.
+- project:
+    name: policy-drools-applications-rebase
+    project: policy/drools-applications
+    project-name: policy-drools-applications
+
+    stream:
+      - master:
+          branch: '{stream}'
+#      - casablanca:
+#          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-rebase'
diff --git a/jjb/policy/policy-drools-applications-verify-jobs.yaml b/jjb/policy/policy-drools-applications-verify-jobs.yaml
new file mode 100644 (file)
index 0000000..0e37023
--- /dev/null
@@ -0,0 +1,36 @@
+---
+#
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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/drools-applications project on Nordix Gerrit.
+
+- project:
+    name: policy-drools-applications-verify
+    project: policy/drools-applications
+    project-name: policy-drools-applications
+
+    stream:
+      - 'master':
+          branch: '{stream}'
+      - 'casablanca':
+          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-verify-java'
diff --git a/jjb/policy/policy-drools-pdp-push-upstream-jobs.yaml b/jjb/policy/policy-drools-pdp-push-upstream-jobs.yaml
new file mode 100644 (file)
index 0000000..da54598
--- /dev/null
@@ -0,0 +1,31 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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 push-upstream is commented on a change on Nordix Gerrit.
+- project:
+    name: policy-drools-pdp-push-upstream
+    project: policy/drools-pdp
+    project-name: policy-drools-pdp
+    stream:
+      - master:
+          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-push-upstream'
diff --git a/jjb/policy/policy-drools-pdp-rebase-jobs.yaml b/jjb/policy/policy-drools-pdp-rebase-jobs.yaml
new file mode 100644 (file)
index 0000000..ea4bcfc
--- /dev/null
@@ -0,0 +1,35 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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 merged to
+# policy/drools-pdp project on ONAP Gerrit.
+- project:
+    name: policy-drools-pdp-rebase
+    project: policy/drools-pdp
+    project-name: policy-drools-pdp
+
+    stream:
+      - master:
+          branch: '{stream}'
+#      - casablanca:
+#          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-rebase'
diff --git a/jjb/policy/policy-drools-pdp-verify-jobs.yaml b/jjb/policy/policy-drools-pdp-verify-jobs.yaml
new file mode 100644 (file)
index 0000000..5be532e
--- /dev/null
@@ -0,0 +1,36 @@
+---
+#
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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/drools-pdp project on Nordix Gerrit.
+
+- project:
+    name: policy-drools-pdp-verify
+    project: policy/drools-pdp
+    project-name: policy-drools-pdp
+
+    stream:
+      - 'master':
+          branch: '{stream}'
+      - 'casablanca':
+          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-verify-java'
diff --git a/jjb/policy/policy-engine-push-upstream-jobs.yaml b/jjb/policy/policy-engine-push-upstream-jobs.yaml
new file mode 100644 (file)
index 0000000..4017b42
--- /dev/null
@@ -0,0 +1,31 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2018-2019 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 push-upstream is commented on a change on Nordix Gerrit.
+- project:
+    name: policy-engine-push-upstream
+    project: policy/engine
+    project-name: policy-engine
+    stream:
+      - master:
+          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-push-upstream'
diff --git a/jjb/policy/policy-engine-rebase-jobs.yaml b/jjb/policy/policy-engine-rebase-jobs.yaml
new file mode 100644 (file)
index 0000000..be3221e
--- /dev/null
@@ -0,0 +1,35 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2018-2019 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 merged to
+# policy/engine project on ONAP Gerrit.
+- project:
+    name: policy-engine-rebase
+    project: policy/engine
+    project-name: policy-engine
+
+    stream:
+      - master:
+          branch: '{stream}'
+#      - casablanca:
+#          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-rebase'
diff --git a/jjb/policy/policy-engine-verify-jobs.yaml b/jjb/policy/policy-engine-verify-jobs.yaml
new file mode 100644 (file)
index 0000000..e947669
--- /dev/null
@@ -0,0 +1,36 @@
+---
+#
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2018-2019 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/engine project on Nordix Gerrit.
+
+- project:
+    name: policy-engine-verify
+    project: policy/engine
+    project-name: policy-engine
+
+    stream:
+      - 'master':
+          branch: '{stream}'
+      - 'casablanca':
+          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-verify-java'
diff --git a/jjb/policy/policy-models-push-upstream-jobs.yaml b/jjb/policy/policy-models-push-upstream-jobs.yaml
new file mode 100644 (file)
index 0000000..6a23aed
--- /dev/null
@@ -0,0 +1,31 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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 push-upstream is commented on a change on Nordix Gerrit.
+- project:
+    name: policy-models-push-upstream
+    project: policy/models
+    project-name: policy-models
+    stream:
+      - master:
+          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-push-upstream'
diff --git a/jjb/policy/policy-models-rebase-jobs.yaml b/jjb/policy/policy-models-rebase-jobs.yaml
new file mode 100644 (file)
index 0000000..0a78f81
--- /dev/null
@@ -0,0 +1,35 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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 merged to
+# policy/models project on ONAP Gerrit.
+- project:
+    name: policy-models-rebase
+    project: policy/models
+    project-name: policy-models
+
+    stream:
+      - master:
+          branch: '{stream}'
+#      - casablanca:
+#          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-rebase'
diff --git a/jjb/policy/policy-models-verify-jobs.yaml b/jjb/policy/policy-models-verify-jobs.yaml
new file mode 100644 (file)
index 0000000..08f8bdd
--- /dev/null
@@ -0,0 +1,36 @@
+---
+#
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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/models project on Nordix Gerrit.
+
+- project:
+    name: policy-models-verify
+    project: policy/models
+    project-name: policy-models
+
+    stream:
+      - 'master':
+          branch: '{stream}'
+      - 'casablanca':
+          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-verify-java'
diff --git a/jjb/policy/policy-xacml-pdp-push-upstream-jobs.yaml b/jjb/policy/policy-xacml-pdp-push-upstream-jobs.yaml
new file mode 100644 (file)
index 0000000..1239306
--- /dev/null
@@ -0,0 +1,31 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2018-2019 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 push-upstream is commented on a change on Nordix Gerrit.
+- project:
+    name: policy-xacml-pdp-push-upstream
+    project: policy/xacml-pdp
+    project-name: policy-xacml-pdp
+    stream:
+      - master:
+          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-push-upstream'
diff --git a/jjb/policy/policy-xacml-pdp-rebase-jobs.yaml b/jjb/policy/policy-xacml-pdp-rebase-jobs.yaml
new file mode 100644 (file)
index 0000000..8b7d868
--- /dev/null
@@ -0,0 +1,35 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2018-2019 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 merged to
+# policy/xacml-pdp project on ONAP Gerrit.
+- project:
+    name: policy-xacml-pdp-rebase
+    project: policy/xacml-pdp
+    project-name: policy-xacml-pdp
+
+    stream:
+      - master:
+          branch: '{stream}'
+#      - casablanca:
+#          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-rebase'
diff --git a/jjb/policy/policy-xacml-pdp-verify-jobs.yaml b/jjb/policy/policy-xacml-pdp-verify-jobs.yaml
new file mode 100644 (file)
index 0000000..0eaf44b
--- /dev/null
@@ -0,0 +1,36 @@
+---
+#
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2018-2019 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/xacml-pdp project on Nordix Gerrit.
+
+- project:
+    name: policy-xacml-pdp-verify
+    project: policy/xacml-pdp
+    project-name: policy-xacml-pdp
+
+    stream:
+      - 'master':
+          branch: '{stream}'
+      - 'casablanca':
+          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-verify-java'
diff --git a/jjb/sdc/sdc-push-upstream-jobs.yaml b/jjb/sdc/sdc-push-upstream-jobs.yaml
new file mode 100644 (file)
index 0000000..c73d64f
--- /dev/null
@@ -0,0 +1,31 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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 push-upstream is commented on a change on Nordix Gerrit.
+- project:
+    name: sdc-push-upstream
+    project: sdc
+    project-name: sdc
+    stream:
+      - master:
+          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-push-upstream'
diff --git a/jjb/sdc/sdc-rebase-jobs.yaml b/jjb/sdc/sdc-rebase-jobs.yaml
new file mode 100644 (file)
index 0000000..a187441
--- /dev/null
@@ -0,0 +1,33 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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 merged to
+# sdc project on ONAP Gerrit.
+- project:
+    name: sdc-rebase
+    project: sdc
+    project-name: sdc
+
+    stream:
+      - master:
+          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-rebase'
diff --git a/jjb/so/so-push-upstream-jobs.yaml b/jjb/so/so-push-upstream-jobs.yaml
new file mode 100644 (file)
index 0000000..e275381
--- /dev/null
@@ -0,0 +1,33 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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 push-upstream is commented on a change on Nordix Gerrit.
+- project:
+    name: so-push-upstream
+    project: so
+    project-name: so
+
+    stream:
+      - master:
+          branch: '{stream}'
+      - casablanca:
+          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-push-upstream'
diff --git a/jjb/so/so-rebase-jobs.yaml b/jjb/so/so-rebase-jobs.yaml
new file mode 100644 (file)
index 0000000..30e8dae
--- /dev/null
@@ -0,0 +1,33 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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 merged to
+# so project on ONAP Gerrit.
+
+- project:
+    name: so-rebase
+    project: so
+    project-name: so
+    stream:
+      - master:
+          branch: '{stream}'
+      - casablanca:
+          branch: '{stream}'
+    jobs:
+      - '{project-name}-{stream}-rebase'
diff --git a/jjb/testsuite/testsuite-push-upstream-jobs.yaml b/jjb/testsuite/testsuite-push-upstream-jobs.yaml
new file mode 100644 (file)
index 0000000..2bc810e
--- /dev/null
@@ -0,0 +1,31 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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 push-upstream is commented on a change on Nordix Gerrit.
+- project:
+    name: testsuite-push-upstream
+    project: testsuite
+    project-name: testsuite
+    stream:
+      - master:
+          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-push-upstream'
diff --git a/jjb/testsuite/testsuite-rebase-jobs.yaml b/jjb/testsuite/testsuite-rebase-jobs.yaml
new file mode 100644 (file)
index 0000000..16a1aa2
--- /dev/null
@@ -0,0 +1,33 @@
+---
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2019 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 merged to
+# testsuite project on ONAP Gerrit.
+- project:
+    name: testsuite-rebase
+    project: testsuite
+    project-name: testsuite
+
+    stream:
+      - master:
+          branch: '{stream}'
+
+    jobs:
+      - '{project-name}-{stream}-rebase'