Merge "ACUMOS: Java 11 introduction"
authorRobert Tomczyk <robert.tomczyk@est.tech>
Tue, 10 Sep 2019 17:17:17 +0000 (17:17 +0000)
committerNordix Gerrit <gerrit@nordix.org>
Tue, 10 Sep 2019 17:17:17 +0000 (17:17 +0000)
114 files changed:
jjb/geode/apache-geode-slave/slave_setup.sh
jjb/nolabs/deploy.sh [new file with mode: 0644]
jjb/nolabs/nolabs-jobs.yaml [new file with mode: 0644]
jjb/nolabs/verify.sh [new file with mode: 0644]
jjb/onap/aai-oom/aai-oom-push-upstream-jobs.yaml
jjb/onap/aai-oom/aai-oom-rebase-jobs.yaml
jjb/onap/aai-schema-service/aai-schema-service-push-upstream-jobs.yaml
jjb/onap/aai-schema-service/aai-schema-service-rebase-jobs.yaml
jjb/onap/appc-cdt/appc-cdt-push-upstream-jobs.yaml
jjb/onap/appc-cdt/appc-cdt-rebase-jobs.yaml
jjb/onap/appc-deployment/appc-deployment-push-upstream-jobs.yaml
jjb/onap/appc-deployment/appc-deployment-rebase-jobs.yaml
jjb/onap/appc-parent/appc-parent-push-upstream-jobs.yaml
jjb/onap/appc-parent/appc-parent-rebase-jobs.yaml
jjb/onap/appc/appc-push-upstream-jobs.yaml
jjb/onap/appc/appc-rebase-jobs.yaml
jjb/onap/ccsdk-apps/ccsdk-apps-push-upstream-jobs.yaml
jjb/onap/ccsdk-apps/ccsdk-apps-rebase-jobs.yaml
jjb/onap/ccsdk-cds/ccsdk-cds-push-upstream-jobs.yaml
jjb/onap/ccsdk-cds/ccsdk-cds-rebase-jobs.yaml
jjb/onap/ccsdk-platform-plugins/ccsdk-platform-plugins-push-upstream.yaml
jjb/onap/ccsdk-platform-plugins/ccsdk-platform-plugins-rebase.yaml
jjb/onap/ci-management/ci-management-push-upstream.yaml
jjb/onap/ci-management/ci-management-rebase.yaml
jjb/onap/clamp/clamp-push-upstream-jobs.yaml
jjb/onap/clamp/clamp-rebase-jobs.yaml
jjb/onap/dcaegen2-collectors-datafile/dcaegen2-collectors-datafile-push-upstream-jobs.yaml
jjb/onap/dcaegen2-collectors-datafile/dcaegen2-collectors-datafile-rebase-jobs.yaml
jjb/onap/dcaegen2-collectors/dcaegen2-collectors-push-upstream-jobs.yaml
jjb/onap/dcaegen2-collectors/dcaegen2-collectors-rebase-jobs.yaml
jjb/onap/dcaegen2-deployments/dcaegen2-deployments-push-upstream.yaml
jjb/onap/dcaegen2-deployments/dcaegen2-deployments-rebase-jobs.yaml
jjb/onap/dcaegen2-platform-blueprints/dcaegen2-platform-blueprints-push-upstream-jobs.yaml
jjb/onap/dcaegen2-platform-blueprints/dcaegen2-platform-blueprints-rebase-jobs.yaml
jjb/onap/dcaegen2-platform-plugins/dcaegen2-platform-plugins-push-upstream.yaml
jjb/onap/dcaegen2-platform-plugins/dcaegen2-platform-plugins-rebase.yaml
jjb/onap/dcaegen2-services-pm-mapper/dcaegen2-services-pm-mapper-push-upstream-jobs.yaml
jjb/onap/dcaegen2-services-pm-mapper/dcaegen2-services-pm-mapper-rebase-jobs.yaml
jjb/onap/dcaegen2-services-prh/dcaegen2-services-prh-push-upstream-jobs.yaml
jjb/onap/dcaegen2-services-prh/dcaegen2-services-prh-rebase-jobs.yaml
jjb/onap/dcaegen2/dcaegen2-push-upstream-jobs.yaml
jjb/onap/dcaegen2/dcaegen2-rebase-jobs.yaml
jjb/onap/dmaap-buscontroller/dmaap-buscontroller-push-upstream-jobs.yaml
jjb/onap/dmaap-buscontroller/dmaap-buscontroller-rebase-jobs.yaml
jjb/onap/dmaap-datarouter/dmaap-datarouter-push-upstream-jobs.yaml
jjb/onap/dmaap-datarouter/dmaap-datarouter-rebase-jobs.yaml
jjb/onap/dmaap-dbcapi/dmaap-dbcapi-push-upstream-jobs.yaml
jjb/onap/dmaap-dbcapi/dmaap-dbcapi-rebase-jobs.yaml
jjb/onap/doc/doc-push-upstream.yaml
jjb/onap/doc/doc-rebase.yaml
jjb/onap/global-templates-onap-push-upstream.yaml
jjb/onap/global-templates-onap-rebase.yaml
jjb/onap/integration-csit/integration-csit-push-upstream-jobs.yaml
jjb/onap/integration-csit/integration-csit-rebase-jobs.yaml
jjb/onap/integration/integration-push-upstream-jobs.yaml
jjb/onap/integration/integration-rebase-jobs.yaml
jjb/onap/oom-offline-installer/oom-offline-installer-push-upstream.yaml
jjb/onap/oom-offline-installer/oom-offline-installer-rebase.yaml
jjb/onap/oom/oom-push-upstream-jobs.yaml
jjb/onap/oom/oom-rebase-jobs.yaml
jjb/onap/policy-apex-pdp/policy-apex-pdp-push-upstream-jobs.yaml
jjb/onap/policy-apex-pdp/policy-apex-pdp-rebase-jobs.yaml
jjb/onap/policy-api/policy-api-push-upstream-jobs.yaml
jjb/onap/policy-api/policy-api-rebase-jobs.yaml
jjb/onap/policy-common/policy-common-push-upstream-jobs.yaml
jjb/onap/policy-common/policy-common-rebase-jobs.yaml
jjb/onap/policy-core/policy-core-push-upstream-jobs.yaml
jjb/onap/policy-core/policy-core-rebase-jobs.yaml
jjb/onap/policy-distribution/policy-distribution-push-upstream-jobs.yaml
jjb/onap/policy-distribution/policy-distribution-rebase-jobs.yaml
jjb/onap/policy-docker/policy-docker-push-upstream-jobs.yaml
jjb/onap/policy-docker/policy-docker-rebase-jobs.yaml
jjb/onap/policy-drools-applications/policy-drools-applications-push-upstream-jobs.yaml
jjb/onap/policy-drools-applications/policy-drools-applications-rebase-jobs.yaml
jjb/onap/policy-drools-pdp/policy-drools-pdp-push-upstream-jobs.yaml
jjb/onap/policy-drools-pdp/policy-drools-pdp-rebase-jobs.yaml
jjb/onap/policy-engine/policy-engine-push-upstream-jobs.yaml
jjb/onap/policy-engine/policy-engine-rebase-jobs.yaml
jjb/onap/policy-gui/policy-gui-push-upstream-jobs.yaml
jjb/onap/policy-gui/policy-gui-rebase-jobs.yaml
jjb/onap/policy-models/policy-models-push-upstream-jobs.yaml
jjb/onap/policy-models/policy-models-rebase-jobs.yaml
jjb/onap/policy-oom/policy-oom-push-upstream-jobs.yaml
jjb/onap/policy-oom/policy-oom-rebase-jobs.yaml
jjb/onap/policy-pap/policy-pap-push-upstream-jobs.yaml
jjb/onap/policy-pap/policy-pap-rebase-jobs.yaml
jjb/onap/policy-parent/policy-parent-push-upstream-jobs.yaml
jjb/onap/policy-parent/policy-parent-rebase-jobs.yaml
jjb/onap/policy-pdp/policy-pdp-push-upstream-jobs.yaml
jjb/onap/policy-pdp/policy-pdp-rebase-jobs.yaml
jjb/onap/policy-xacml-pdp/policy-xacml-pdp-push-upstream-jobs.yaml
jjb/onap/policy-xacml-pdp/policy-xacml-pdp-rebase-jobs.yaml
jjb/onap/portal/portal-push-upstream-jobs.yaml
jjb/onap/portal/portal-rebase-jobs.yaml
jjb/onap/push-upstream-jobs.sh
jjb/onap/rebase-jobs.sh [new file with mode: 0755]
jjb/onap/sdc-jtosca/sdcjtosca-push-upstream-jobs.yaml
jjb/onap/sdc-jtosca/sdcjtosca-rebase-jobs.yaml
jjb/onap/sdc/sdc-push-upstream-jobs.yaml
jjb/onap/sdc/sdc-rebase-jobs.yaml
jjb/onap/sdnc-oam/sdnc-oam-push-upstream.yaml
jjb/onap/sdnc-oam/sdnc-oam-rebase.yaml
jjb/onap/so-docker-config/so-docker-config-push-upstream-jobs.yaml
jjb/onap/so-docker-config/so-docker-config-rebase-jobs.yaml
jjb/onap/so/so-push-upstream-jobs.yaml
jjb/onap/so/so-rebase-jobs.yaml
jjb/onap/testsuite-oom/testsuite_oom-push-upstream-jobs.yaml
jjb/onap/testsuite-oom/testsuite_oom-rebase-jobs.yaml
jjb/onap/testsuite/testsuite-push-upstream-jobs.yaml
jjb/onap/testsuite/testsuite-rebase-jobs.yaml
jjb/onap/vid/vid-push-upstream-jobs.yaml
jjb/onap/vid/vid-rebase-jobs.yaml
jjb/opendev/openstack-heat-tempest-plugin/openstack-heat-tempest-plugin-push-upstream-jobs.yml [new file with mode: 0644]
jjb/opendev/openstack-heat-tempest-plugin/openstack-heat-tempest-plugin-rebase-jobs.yml [new file with mode: 0644]

index ef32cd12dbce4dc89b92957a141f6e424398e16e..306636a4afaaceced4750303bf1c667bdc520fd4 100755 (executable)
@@ -19,6 +19,20 @@ set -o nounset
 set -o errexit
 set -o pipefail
 set -o xtrace
+DPKG_LOCK="/var/lib/dpkg/lock-frontend"
+
+# Wait for other apt process to finish by checking the dpkg lock file.
+try=0
+while sudo lsof ${DPKG_LOCK}  > /dev/null 2>&1 ; do
+  echo "DPKG file locked: ${DPKG_LOCK}."
+  echo "   Waiting for another pkg instalaltion process to finish ..."
+  sleep 10
+  if [[ ${try} -gt 60 ]] ; then
+    echo "ERROR: Max number of re-tries reached, exiting..."
+    exit 1
+  fi
+  try=$((try + 1))
+done
 
 sudo apt-get update
 sudo apt-get install -y --no-install-recommends \
diff --git a/jjb/nolabs/deploy.sh b/jjb/nolabs/deploy.sh
new file mode 100644 (file)
index 0000000..f1788e4
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+set -o errexit
+set -o nounset
+set -o pipefail
+
+cd $WORKSPACE
+echo "Info: Cleaning the previous deployment"
+echo "-------------------------------------------------------------------------"
+./stop.sh
+echo "-------------------------------------------------------------------------"
+echo "Info: Deploying the new version of nolabs"
+echo "-------------------------------------------------------------------------"
+./start.sh
+echo "-------------------------------------------------------------------------"
+echo "Info: Deployment successful!"
diff --git a/jjb/nolabs/nolabs-jobs.yaml b/jjb/nolabs/nolabs-jobs.yaml
new file mode 100644 (file)
index 0000000..d78969a
--- /dev/null
@@ -0,0 +1,168 @@
+---
+#
+# ============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: 'nolabs'
+
+    project: 'nolabs'
+
+    stream:
+      - 'master':
+          branch: '{stream}'
+
+    jobs:
+      - 'nolabs-verify-{stream}'
+      - 'nolabs-deploy-{stream}'
+
+- job-template:
+    name: 'nolabs-verify-{stream}'
+
+    concurrent: false
+
+    parameters:
+      - project-parameters:
+          project: '{project}'
+          branch: '{branch}'
+      - nordix-gerrit-parameters
+      - label:
+          name: SLAVE_LABEL
+          default: 'nolabs'
+          description: 'Slave label to schedule this job on.'
+
+    properties:
+      - logrotate
+      - build-blocker:
+          use-build-blocker: true
+          blocking-jobs:
+            - 'nolabs-.*'
+          block-level: 'NODE'
+      - throttle:
+          max-per-node: 1
+          max-total: 1
+          option: project
+
+    wrappers:
+      - build-timeout:
+          timeout: 10
+      - fix-workspace-permissions
+
+    scm:
+      - git-scm-gerrit:
+          ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
+          branch: '{branch}'
+          refspec: $GERRIT_REFSPEC
+          wipe_workspace: true
+          clean_before: false
+
+    triggers:
+      - gerrit:
+          server-name: 'Nordix Gerrit'
+          trigger-on:
+            - patchset-created-event:
+                exclude-drafts: 'false'
+                exclude-trivial-rebase: 'false'
+                exclude-no-code-change: 'false'
+            - draft-published-event
+            - comment-added-contains-event:
+                comment-contains-value: 'recheck'
+            - comment-added-contains-event:
+                comment-contains-value: 'reverify'
+          projects:
+            - project-compare-type: 'REG_EXP'
+              project-pattern: 'nolabs'
+              branches:
+                - branch-compare-type: 'ANT'
+                  branch-pattern: '**/{branch}'
+              disable-strict-forbidden-file-verification: 'false'
+              forbidden-file-paths:
+                - compare-type: ANT
+                  pattern: '.gitignore'
+                - compare-type: ANT
+                  pattern: '.gitreview'
+
+    builders:
+      - shell:
+          !include-raw-escape: ./verify.sh
+
+- job-template:
+    name: 'nolabs-deploy-{stream}'
+
+    concurrent: false
+
+    parameters:
+      - project-parameters:
+          project: '{project}'
+          branch: '{branch}'
+      - nordix-gerrit-parameters
+      - label:
+          name: SLAVE_LABEL
+          default: 'nolabs'
+          description: 'Slave label to schedule this job on.'
+
+    properties:
+      - logrotate
+      - build-blocker:
+          use-build-blocker: true
+          blocking-jobs:
+            - 'nolabs-.*'
+          block-level: 'NODE'
+      - throttle:
+          max-per-node: 1
+          max-total: 1
+          option: project
+
+    wrappers:
+      - build-timeout:
+          timeout: 10
+      - fix-workspace-permissions
+
+    scm:
+      - git-scm:
+          ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
+          branch: '{branch}'
+          refspec: ''
+          wipe_workspace: true
+          clean_before: false
+
+    triggers:
+      - gerrit:
+          server-name: 'Nordix 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}'
+              disable-strict-forbidden-file-verification: 'false'
+              forbidden-file-paths:
+                - compare-type: ANT
+                  pattern: '.gitignore'
+                - compare-type: ANT
+                  pattern: '.gitreview'
+
+    builders:
+      - shell:
+          !include-raw-escape: ./deploy.sh
+
+# vim: set ts=2 sw=2 expandtab:
diff --git a/jjb/nolabs/verify.sh b/jjb/nolabs/verify.sh
new file mode 100644 (file)
index 0000000..4c3745f
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+set -o errexit
+set -o nounset
+set -o pipefail
+
+cd $WORKSPACE
+app=nolabs-verify-${BUILD_ID}
+echo "Info: Building the container image nolabs-verify-${BUILD_ID}"
+echo "-------------------------------------------------------------------------"
+docker build -t $app .
+echo "-------------------------------------------------------------------------"
+echo "Info: Build successful!"
+docker rmi -f $app > /dev/null
index a657a16548a640f212b1233f2f4dbd20118285b6..9c25ac889478022f8f3634b027ec1bdcb4e18e82 100644 (file)
@@ -23,9 +23,6 @@
     name: aai-oom-push-upstream
     project: aai/oom
     project-name: aai-oom
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 79a59942fd88deec509d3369a86c42ac324db1d7..98d331c5287b1cfdc55f10358564cbad3bcc8249 100644 (file)
@@ -25,9 +25,5 @@
     project: aai/oom
     project-name: aai-oom
 
-    stream:
-      - master:
-          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index fb4904aaaa2a534596ef37c02911239e4ca0bdc0..ad45988486bb24c56dc127ce30d450748d58c2db 100644 (file)
@@ -23,9 +23,6 @@
     name: aai-schema-service-push-upstream
     project: aai/schema-service
     project-name: aai-schema-service
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 02fd54375c18078420a440888a7eacad116e4889..c0c8f778ef605a69efff0c6f14dfd348f8604515 100644 (file)
@@ -25,9 +25,5 @@
     project: aai/schema-service
     project-name: aai-schema-service
 
-    stream:
-      - master:
-          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index d2ae5e1653e2d4f396a3837264aa55df6cca187c..3fc66c2653c167c3c5c1cdcd1ee1f923045e9292 100644 (file)
@@ -23,9 +23,6 @@
     name: appc-cdt-push-upstream
     project: appc/cdt
     project-name: appc-cdt
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 1de1e61bd27980e5a5c60f53ff3d795d53ebd84e..bfbd3b8c96336dba039af9ba657de1d6c8e42733 100644 (file)
     project: appc/cdt
     project-name: appc-cdt
 
-    stream:
-      - master:
-          branch: '{stream}'
-#      - casablanca:
-#          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index 9d9e5d2bc40a5cdf8bf7453086f3dfa7cb453256..dafe74c0f66c780bd3a67f06d2656ca9d0d2d423 100644 (file)
@@ -23,9 +23,6 @@
     name: appc-deployment-push-upstream
     project: appc/deployment
     project-name: appc-deployment
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 64c59bc52bfe2584a5887ab1450cb819f1f9aab2..9cc8d044b333e962e67ead394fbad14795fee9bd 100644 (file)
     project: appc/deployment
     project-name: appc-deployment
 
-    stream:
-      - master:
-          branch: '{stream}'
-#      - casablanca:
-#          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index ae745cba0316860d7b650208b2c85f89ae9a5204..b761f1b667fa60cb20dd5ed917b22cdb0eaf9787 100644 (file)
@@ -23,9 +23,6 @@
     name: appc-parent-push-upstream
     project: appc/parent
     project-name: appc-parent
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 7bb12a7a33df089d214131a94fdb905d71007a20..ea935a1803527abdbc80d511c9b7848d8f209b41 100644 (file)
     project: appc/parent
     project-name: appc-parent
 
-    stream:
-      - master:
-          branch: '{stream}'
-#      - casablanca:
-#          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index 7831c0d758d6e84fb7bb7534a2cfdcd46b02a85b..2f0358b43249a88a7e145421d0dc4e87395202f5 100644 (file)
     project: appc
     project-name: appc
 
-    stream:
-      - master:
-          branch: '{stream}'
-#      - casablanca:
-#          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 1fb3de3128c7e98d8d2497363e371f8dbb772708..9a08ab693faf1552ccc6df7128a945da55cafeb9 100644 (file)
     name: appc-rebase
     project: appc
     project-name: appc
-    stream:
-      - master:
-          branch: '{stream}'
-#      - casablanca:
-#          branch: '{stream}'
+
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index 61c09917df434be2bf3a603ee0c46a9b860c14ca..5ac47d848dd506392f745b51dcc3e200484e4a29 100644 (file)
     name: ccsdk-apps-push-upstream
     project: ccsdk/apps
     project-name: ccsdk-apps
-    stream:
-      - master:
-          branch: '{stream}'
-      - dublin:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index c2e398f62ff3b7e8483550419df95c78c2faf034..0f3ac2d9e2d19af0efe621e27bb354737be53de0 100644 (file)
     project: ccsdk/apps
     project-name: ccsdk-apps
 
-    stream:
-      - master:
-          branch: '{stream}'
-      - dublin:
-          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index 2a08c8e89d98eb27fad88e15732f79603c9abd49..cd15e9ed904a49c8e046bca8d877d54b094fa7d0 100644 (file)
     name: ccsdk-cds-push-upstream
     project: ccsdk/cds
     project-name: ccsdk-cds
-    stream:
-      - master:
-          branch: '{stream}'
-      - dublin:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 35125f5cb2412113e75b869e3dff29825f958c53..391a1d67e4c21d7d2084677e1b1f191909aef742 100644 (file)
     project: ccsdk/cds
     project-name: ccsdk-cds
 
-    stream:
-      - master:
-          branch: '{stream}'
-      - dublin:
-          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index 08c409dbeba3d19c9fdff58bf56eb2585ac5f2f1..1181c3f85503418fd6d94e61c0e78b6278e69913 100644 (file)
@@ -23,9 +23,6 @@
     name: ccsdk-platfom-plugins-push-upstream
     project: ccsdk/platform/plugins
     project-name: ccsdk-platfom-plugins
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index dbe23196ca13f48391dc69acbd9eab3da5e539da..709317cb52ac88f3dc43258b1d7f270f152ae860 100644 (file)
@@ -24,9 +24,6 @@
     name: ccsdk-platfom-plugins-rebase
     project: ccsdk/platform/plugins
     project-name: ccsdk-platfom-plugins
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index 5a7b4089ee6e375c64019dd5832848146bcf3139..e80370685065654c05840f11c775bd5748f5a0d9 100644 (file)
@@ -23,9 +23,6 @@
     name: onap-ci-management-push-upstream
     project: ci-management
     project-name: ci-management
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 52c5b85276fd090bd55c1bc4ec0c617ae3630e81..6306b7d1d86edc6cce9ac62d2c868ab9ea6eb037 100644 (file)
@@ -24,9 +24,6 @@
     name: onap-ci-management-rebase
     project: ci-management
     project-name: ci-management
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index aac089fc461a147244b18737c89a2e459a83301a..404cfc27b1a7a88c67a188b765dbf6aaad02bdb4 100644 (file)
     project: clamp
     project-name: clamp
 
-    stream:
-      - master:
-          branch: '{stream}'
-#      - casablanca:
-#          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 1f907e8cb4ca0b4d29beae77ba98fc44ab166475..2ea86eb0284aee2326ee94ac33917e489b4679f3 100644 (file)
     name: clamp-rebase
     project: clamp
     project-name: clamp
-    stream:
-      - master:
-          branch: '{stream}'
-#      - casablanca:
-#          branch: '{stream}'
+
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index 49a95cd79fe8378536403ff495324dc8f8943516..dd597f71760e43266a0b5a0534ecdcd7b15dca31 100644 (file)
     project: dcaegen2/collectors/datafile
     project-name: dcaegen2-collectors-datafile
 
-    stream:
-      - master:
-          branch: '{stream}'
-      - dublin:
-          branch: '{stream}'          
-
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 1aedb54b71dd3e6d821a1a271026a398c47320f9..e7a4d60c43fb180651b06a62a06eba2827f0f4f4 100644 (file)
     project: dcaegen2/collectors/datafile
     project-name: dcaegen2-collectors-datafile
 
-    stream:
-      - master:
-          branch: '{stream}'
-      - dublin:
-          branch: '{stream}'          
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index bf2d73b8f017c2db8818ea3a3ce7397209e43c98..23967ac5c6325fc1fc66c5db7b3c63572cd81f87 100644 (file)
     name: dcaegen2-collectors-push-upstream
     project: dcaegen2/collectors
     project-name: dcaegen2-collectors
-    stream:
-      - master:
-          branch: '{stream}'
-
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 4f1792d2922655be6952539d2c33984b125a2948..a8a99e33920e1101ac6d07fd5ab0fed1d892197f 100644 (file)
 # this job gets triggered when a change is merged to
 # dcaegen2/collectors/datafile project on ONAP Gerrit.
 - project:
-
     name: dcaegen2-collectors-rebase
-
     project: dcaegen2/collectors
-
     project-name: dcaegen2-collectors
 
-    stream:
-      - master:
-          branch: '{stream}'
-
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index 1099dd780348d80c6158d6b97b3e127ac3562ad9..9d0481a85c425d2f94b978252487e82a9b1cb24d 100644 (file)
@@ -22,9 +22,6 @@
     name: dcaegen2-deployments-push-upstream
     project: dcaegen2/deployments
     project-name: dcaegen2-deployments
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 021d000266c0483a0498a69244ec8e18b0f398dd..0274fcefee8d2def365ddf603646adbdc7dc449c 100644 (file)
 # this job gets triggered when a change is merged to
 # dcaegen2/deployments project on ONAP Gerrit.
 - project:
-
     name: dcaegen2-deployments-rebase
-
     project: dcaegen2/deployments
-
     project-name: dcaegen2-deployments
 
-    stream:
-      - master:
-          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index fe9aa5453a9af4ebbbf73b4e8a925cd931a1f780..d8472b6df4c43b13b4bbb16e151ce8f546ebde02 100644 (file)
@@ -22,9 +22,6 @@
     name: dcaegen2-platform-blueprints-push-upstream
     project: dcaegen2/platform/blueprints
     project-name: dcaegen2-platform-blueprints
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 80095e83f4540db04e4e06da2f18c087cf63a425..aff05ce61e81fbaf5375b85681225eb7d4fa2a90 100644 (file)
 # this job gets triggered when a change is merged to
 # dcaegen2/platform/blueprints project on ONAP Gerrit.
 - project:
-
     name: dcaegen2-platform-blueprints-rebase
     project: dcaegen2/platform/blueprints
     project-name: dcaegen2-platform-blueprints
 
-    stream:
-      - master:
-          branch: '{stream}'
-      - casablanca:
-          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index 48c03ef38f967a973f67c34e8bd827955530d749..ace0bb607745d82f14aed334a80bd0d0f6adcc34 100644 (file)
@@ -23,9 +23,6 @@
     name: dcaegen2-platform-plugins-push-upstream
     project: dcaegen2/platform/plugins
     project-name: dcaegen2-platform-plugins
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index d4ad518db395488027d8df7b6ca6d79fdab53851..da7a4472c4bf14d866a18d4b90a455fad4ff49b7 100644 (file)
@@ -24,9 +24,6 @@
     name: dcaegen2-platform-plugins-rebase
     project: dcaegen2/platform/plugins
     project-name: dcaegen2-platform-plugins
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index 227a93573f3d7048085133246bb3a189bdfda6d7..0e226ae7bffac50de406329ef98d20471e088c4f 100644 (file)
     project: dcaegen2/services/pm-mapper
     project-name: dcaegen2-services-pm-mapper
 
-    stream:
-      - master:
-          branch: '{stream}'
-      - dublin:
-          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 0d3f14dc57e4522fec77a722369dca57bbacde3f..57d3492c1a04a671df2f8e17bb44e9a38fa424c8 100644 (file)
     project: dcaegen2/services/pm-mapper
     project-name: dcaegen2-services-pm-mapper
 
-    stream:
-      - master:
-          branch: '{stream}'
-      - dublin:
-          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index cd28d894e8a427d61476f1eba811013af80752eb..9df64e79bb0a3dd823f953a0ddc397a562e93918 100644 (file)
@@ -22,9 +22,6 @@
     name: dcaegen2-services-prh-push-upstream
     project: dcaegen2/services/prh
     project-name: dcaegen2-services-prh
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index d55448ed928535611da9f114eeaa61d7e4ab45bb..d979f2fce82e5747c1d118d1389b0ac0d0aabe0f 100644 (file)
 # this job gets triggered when a change is merged to
 # dcaegen2/services/prh project on ONAP Gerrit.
 - project:
-
     name: dcaegen2-services-prh-rebase
     project: dcaegen2/services/prh
     project-name: dcaegen2-services-prh
 
-    stream:
-      - master:
-          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index f4ab2d5e03f59f28ce9fad907dce64aeb0507ebd..0dc9e4bcad6ca72ef46a5299ecb6a43a052f31fb 100644 (file)
     name: dcaegen2-push-upstream
     project: dcaegen2
     project-name: dcaegen2
-    stream:
-      - master:
-          branch: '{stream}'
-      - casablanca:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index a69eaae2dd3ea2b7b7de5e3896fc158a46886c28..cbe673d16eca248b422b1d2f393732e96811a68e 100644 (file)
     project: dcaegen2
     project-name: dcaegen2
 
-    stream:
-      - master:
-          branch: '{stream}'
-      - casablanca:
-          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index ae883ca09db635875205c553731b81485dd315af..a94e6c39c2fed8f6132408df0b212bee83c43b2c 100644 (file)
     name: dmaap-buscontroller-push-upstream
     project: dmaap/buscontroller
     project-name: dmaap-buscontroller
-    stream:
-      - master:
-          branch: '{stream}'
-      - casablanca:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index e0a59b13a3922b5f3e7be37b1b9d27c8dafeac66..9b3b4762e1fafd75cd28318edbbdbcfd869b275b 100644 (file)
     name: dmaap-buscontroller-rebase
     project: dmaap/buscontroller
     project-name: dmaap-buscontroller
-    stream:
-      - master:
-          branch: '{stream}'
-      - casablanca:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index c73aba338b6bb0fe8de2ef10bbbf077618ddcbe9..4c0919d5a3419d4fe4897af9390f21293d998fd5 100644 (file)
     name: dmaap-datarouter-push-upstream
     project: dmaap/datarouter
     project-name: dmaap-datarouter
-    stream:
-      - master:
-          branch: '{stream}'
-      - casablanca:
-          branch: '{stream}'
-      - dublin:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index a0a70051b9cd795967d829a0ad667c15d650b714..8c5b9895cae0beb93b6f528ff857a095f8cbfcfa 100644 (file)
     name: dmaap-datarouter-rebase
     project: dmaap/datarouter
     project-name: dmaap-datarouter
-    stream:
-      - master:
-          branch: '{stream}'
-      - casablanca:
-          branch: '{stream}'
-      - dublin:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index 3b79f9eeab3ca8f9f60572fd9834a7d761f7eb95..6d5c37b210b1dbdf674e923176a9046fe307d334 100644 (file)
     name: dmaap-dbcapi-push-upstream
     project: dmaap/dbcapi
     project-name: dmaap-dbcapi
-    stream:
-      - master:
-          branch: '{stream}'
-      - casablanca:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index fea3fba039bbf33da6282f24d2c8728e173dd000..ce9ee2d11ba17f74aca75864d6b514ccebb4a839 100644 (file)
     name: dmaap-dbcapi-rebase
     project: dmaap/dbcapi
     project-name: dmaap-dbcapi
-    stream:
-      - master:
-          branch: '{stream}'
-      - casablanca:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index 5e9dc059e683be454755845d5645b756d801363b..c8d4ab06b50b79bf69a388766207b450085efdeb 100644 (file)
     name: doc-push-upstream
     project: doc
     project-name: doc
-    stream:
-      - master:
-          branch: '{stream}'
-      - dublin:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index b268fb0fd62a4113f4a0af6c34ca1411bc5fde70..eb238855266d61ce83143ab238638d3cf1b5c707 100644 (file)
     name: doc-rebase
     project: doc
     project-name: doc
-    stream:
-      - master:
-          branch: '{stream}'
-      - dublin:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index ab19211c23039d9384a6614ef5b82fc8cde6514b..aefd2f18bef6804d30756f9117d8fa38cc1959ac 100644 (file)
@@ -1,7 +1,7 @@
 - job-template:
-    name: 'onap-{project-name}-{stream}-push-upstream'
+    name: 'onap-{project-name}-push-upstream'
 
-    node: onap-ubuntu1604
+    node: infra-ubuntu1804
 
     disabled: false
 
       - logrotate
 
     parameters:
-      - project-parameters:
-          project: 'onap/{project}'
-          branch: '{branch}'
+      - string:
+          name: PROJECT
+          default: 'onap/{project}'
+          description: JJB configured PROJECT parameter to identify a Nordix Gerrit project
       - nordix-gerrit-parameters
 
     scm:
       - git-scm-gerrit:
           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
-          branch: '{branch}'
+          branch: $GERRIT_BRANCH
           refspec: $GERRIT_REFSPEC
           wipe_workspace: true
           clean_before: false
@@ -27,7 +28,7 @@
     triggers:
       - nordix-gerrit-push-upstream:
           project: 'onap/{project}'
-          branch: '{branch}'
+          branch: '**'
           files: '**'
 
     wrappers:
index 5345d745b71bbb0744fc19e4f7ed842f0c83ff6f..acb47909ab76f8a5f5d073dc5702541226bc9846 100644 (file)
@@ -1,5 +1,5 @@
 - job-template:
-    name: 'onap-{project-name}-{stream}-rebase'
+    name: 'onap-{project-name}-rebase'
 
     node: infra-ubuntu1804
 
       - logrotate
 
     parameters:
-      - project-parameters:
-          project: '{project}'
-          branch: '{branch}'
       - onap-gerrit-parameters
+      - string:
+          name: PROJECT
+          default: '{project}'
+          description: JJB configured PROJECT parameter to identify a Nordix Gerrit project
       - string:
           name: NORDIX_REMOTE
           default: 'ssh://infra@gerrit.nordix.org:29418/onap/{project}.git'
     scm:
       - git-scm:
           ssh-credentials-id: nordixinfra-lfn-gerrit-ssh
-          branch: '{branch}'
+          branch: 'master'
           refspec: ''
-          wipe_workspace: true
-          clean_before: false
+          wipe_workspace: false
+          clean_before: true
 
     triggers:
       - onap-gerrit-trigger-change-merged:
           project: '{project}'
-          branch: '{branch}'
+          branch: '**'
           files: '**'
       - timed: "@midnight"
 
@@ -41,7 +42,7 @@
 
     builders:
       - shell:
-          !include-raw-escape: ../global/rebase-jobs.sh
+          !include-raw-escape: ./rebase-jobs.sh
 
     publishers:
       - notify-slack:
index eb86c516f77e3befd9fd79b8832bac2a98de42b1..bbc53ea13d3171168cb879477a77699add275ca5 100644 (file)
     name: integration-csit-push-upstream
     project: integration/csit
     project-name: integration-csit
-    stream:
-      - master:
-          branch: '{stream}'
-      - casablanca:
-          branch: '{stream}'
-      - dublin:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index aab79c8b2c4a68681e30c5385284867ea9438126..08e59d3a5ccb98a180d37f8ce96b2589a3f1e9e4 100644 (file)
     name: integration-csit-rebase
     project: integration/csit
     project-name: integration-csit
-    stream:
-      - master:
-          branch: '{stream}'
-      - casablanca:
-          branch: '{stream}'
-      - dublin:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
\ No newline at end of file
+      - 'onap-{project-name}-rebase'
\ No newline at end of file
index 533ff56d2174371aa16dc4f89f8d413a9f9a4fc1..f6a10d47dce0318ff1d1eab77ddb385e8e7bec83 100644 (file)
     name: integration-push-upstream
     project: integration
     project-name: integration
-    stream:
-      - master:
-          branch: '{stream}'
-      - casablanca:
-          branch: '{stream}'
-      - dublin:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 4f53d29cf0f0a2d1d83a1f4a51dfdf03e20fb6c0..2eeac08f1cf8fecc991ca05c7f37397e41e5e28c 100644 (file)
     name: integration-rebase
     project: integration
     project-name: integration
-    stream:
-      - master:
-          branch: '{stream}'
-      - casablanca:
-          branch: '{stream}'
-      - dublin:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
\ No newline at end of file
+      - 'onap-{project-name}-rebase'
\ No newline at end of file
index 1a198ca6a688cc17931aa37bc7799e44a57c0d13..2ceab1f009f42f1d4c6d1aad916233d1653b8555 100644 (file)
@@ -21,9 +21,7 @@
     name: oom-offline-installer-push-upstream
     project: oom/offline-installer
     project-name: oom-offline-installer
-    stream:
-      - master:
-          branch: '{stream}'
+
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
 
index e5732c96eb68f4a598566a83b4c9e932d0275da1..754e2393e44ea593d24a2b5b63dc4af99ea44e04 100644 (file)
@@ -22,9 +22,6 @@
     name: oom-offline-installer-rebase
     project: oom/offline-installer
     project-name: oom-offline-installer
-    stream:
-      - master:
-          branch: '{stream}'
-    jobs:
-      - 'onap-{project-name}-{stream}-rebase'
 
+    jobs:
+      - 'onap-{project-name}-rebase'
index ef6caf36c5f7e2ba05294311f135c1b1cdf2a6d5..73be650ecfeeb3e87e4d20ec46cf5b6aed22aee2 100644 (file)
     project: oom
     project-name: oom
 
-    stream:
-      - master:
-          branch: '{stream}'
-      - casablanca:
-          branch: '{stream}'
-      - staging:
-          branch: '{stream}'
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index b48b35fccc642e8b691193a8dac5e6d2d60d2f1f..838d2e9c2519632a00ec65ac039e589d4e063bd4 100644 (file)
     name: oom-rebase
     project: oom
     project-name: oom
-    stream:
-      - master:
-          branch: '{stream}'
-      - casablanca:
-          branch: '{stream}'
-      - staging:
-          branch: '{stream}'
+
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index 7da2279b4940ce146712c8b52be625d997367ecc..795e63b2bbe8bc885b203c3246bb05cbf038864e 100644 (file)
@@ -23,9 +23,6 @@
     name: policy-apex-pdp-push-upstream
     project: policy/apex-pdp
     project-name: policy-apex-pdp
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index e1a7d55cb0cbee20d06e72fa381cc16487e6d11c..347a25d8b39db26125865b45dc9e0888707bf5d9 100644 (file)
     project: policy/apex-pdp
     project-name: policy-apex-pdp
 
-    stream:
-      - master:
-          branch: '{stream}'
-#      - casablanca:
-#          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index b05496987aa10097aafc257986401e13b7d60106..8e174903082f69d29cc80f5d3a4ae7e2e6a117a6 100644 (file)
@@ -23,9 +23,6 @@
     name: policy-api-push-upstream
     project: policy/api
     project-name: policy-api
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 4e76e015ead8dea7d11c02b0eb5e6fe418241485..4867cfeaaa0636689558bf58314123a69b32ae69 100644 (file)
@@ -25,9 +25,5 @@
     project: policy/api
     project-name: policy-api
 
-    stream:
-      - master:
-          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index 3af2ade777647d2c2e33e6a745137e07c078a6b2..f14423ae7c5019f91f32de9080b818b6fb4de400 100644 (file)
@@ -23,9 +23,6 @@
     name: policy-common-push-upstream
     project: policy/common
     project-name: policy-common
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 4812096dfa4eec005d0a8aab85f0138b4c127606..e0fbdb69ab4aea390a10a6c501c3ca19c8025d7e 100644 (file)
     project: policy/common
     project-name: policy-common
 
-    stream:
-      - master:
-          branch: '{stream}'
-#      - casablanca:
-#          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index 6f5db049f5d64bcdeaef08ac16a0f0724f6ba6b2..3a771f52feb5cb6fb89252825747b97c611bc5a8 100644 (file)
@@ -23,9 +23,6 @@
     name: policy-core-push-upstream
     project: policy/core
     project-name: policy-core
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index b1d1d21e5cef1e0016803ed97c74a5e091c4731b..086661be1a50f189d1c6e58a5c7cda99f9036164 100644 (file)
     project: policy/core
     project-name: policy-core
 
-    stream:
-      - master:
-          branch: '{stream}'
-#      - casablanca:
-#          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index be5cc010c8258bf1e21cc874e661c2d99953542b..824c027cd9acf9a95e21650fdea4d3f8fa6e9888 100644 (file)
@@ -23,9 +23,6 @@
     name: policy-distribution-push-upstream
     project: policy/distribution
     project-name: policy-distribution
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 59dd9ffea0952e7960090a9e43da0e9082fbdadd..2e5affd5c6020e3b45031feae8b9276f62091e56 100644 (file)
     project: policy/distribution
     project-name: policy-distribution
 
-    stream:
-      - master:
-          branch: '{stream}'
-#      - casablanca:
-#          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index 1f9ea8a4954b56b5f9d09acc8000cc6e1acff282..bbae868517f17795104f74b5b91e399089bf79ce 100644 (file)
@@ -23,9 +23,6 @@
     name: policy-docker-push-upstream
     project: policy/docker
     project-name: policy-docker
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index c3499e9c798209d180b1ba7d97be239dbb10e0b8..f48c900f850d9c9b2ff2daf43ae73536c8aa10d5 100644 (file)
@@ -25,9 +25,5 @@
     project: policy/docker
     project-name: policy-docker
 
-    stream:
-      - master:
-          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index 703bfb7215ff14a367abe26464fafe3204f589d4..76661f64a43322833469471dece2dab01f335da6 100644 (file)
@@ -23,9 +23,6 @@
     name: policy-drools-applications-push-upstream
     project: policy/drools-applications
     project-name: policy-drools-applications
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 8ef5b614d499536aa5b17b26ad3db6b9709c1565..a6e6ed720dcb48cc65070a1c45ccaaca46587f1e 100644 (file)
     project: policy/drools-applications
     project-name: policy-drools-applications
 
-    stream:
-      - master:
-          branch: '{stream}'
-#      - casablanca:
-#          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index 0ee571da2ea18d20fdbc456048524b3929d94eb4..f977c7ffe87b00de604edcfbc26ec18ab98d8f0d 100644 (file)
@@ -23,9 +23,6 @@
     name: policy-drools-pdp-push-upstream
     project: policy/drools-pdp
     project-name: policy-drools-pdp
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 6f0f0d819ce4081bd21852eb98540dd8a6732b84..994c5523f843448586ae185c32a8ce7893206b5a 100644 (file)
     project: policy/drools-pdp
     project-name: policy-drools-pdp
 
-    stream:
-      - master:
-          branch: '{stream}'
-#      - casablanca:
-#          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index f9765deda2fe1cce66249664b50692e126febefd..fbd87bc435f52242f61542fe470edc8d4e33718f 100644 (file)
@@ -23,9 +23,6 @@
     name: policy-engine-push-upstream
     project: policy/engine
     project-name: policy-engine
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 24da285434e6c8fb847f5ba7e68cdf9333c6e5df..f49b269f62aa0dbd10eebbc35823ec8ae443a6f4 100644 (file)
     project: policy/engine
     project-name: policy-engine
 
-    stream:
-      - master:
-          branch: '{stream}'
-#      - casablanca:
-#          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index 9176bf07a79239c82288ef408e118abca80d483e..7980e46f0695610281f196c6c455d601f810bb4f 100644 (file)
@@ -23,9 +23,6 @@
     name: policy-gui-push-upstream
     project: policy/gui
     project-name: policy-gui
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index c143b907acd168974ee600d03ffc14e9152a479e..7f6bb7c3c1fc71241ffed2a967835bde75a1286e 100644 (file)
@@ -25,9 +25,5 @@
     project: policy/gui
     project-name: policy-gui
 
-    stream:
-      - master:
-          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index 1f4ad85a1eb0926e63982e1f6443f4180c6284cd..5104b10198039804a02ae73fa4793b79a4ef20d7 100644 (file)
@@ -23,9 +23,6 @@
     name: policy-models-push-upstream
     project: policy/models
     project-name: policy-models
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index f5bc7dbc0d54e5cc8b4e43ebecfbfec74064bb09..39c937ce3502e51efb993751876892a638271a95 100644 (file)
     project: policy/models
     project-name: policy-models
 
-    stream:
-      - master:
-          branch: '{stream}'
-#      - casablanca:
-#          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index f73f6237839b3cf64d62ad8ff1fc3d33a599b07d..e53905d2fac7e89997a5fd0a288cab332eed8419 100644 (file)
@@ -23,9 +23,6 @@
     name: policy-oom-push-upstream
     project: policy/oom
     project-name: policy-oom
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 49643501d1a9e98c1910c45bc894bf846e998a83..c661edfdb1f3d71d837dffac3b3f14c912472cb4 100644 (file)
@@ -25,9 +25,5 @@
     project: policy/oom
     project-name: policy-oom
 
-    stream:
-      - master:
-          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index 7e5978763a99080a23560a7cab1b3f256f806795..3c8defbf688bbb58128047d4d2f79900bf411cf6 100644 (file)
@@ -23,9 +23,6 @@
     name: policy-pap-push-upstream
     project: policy/pap
     project-name: policy-pap
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index a28ab2c4b04d4df9f5ef1f351483cc1ba13104a8..164ab16ee6e61dcccdcda2f4bba4f865c5d128ab 100644 (file)
@@ -25,9 +25,5 @@
     project: policy/pap
     project-name: policy-pap
 
-    stream:
-      - master:
-          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index c0f80ba4eb33d74fad5219f7b23250c3b53ef603..6340da9cd5191113c0826825ae3da3793b398996 100644 (file)
@@ -23,9 +23,6 @@
     name: policy-parent-push-upstream
     project: policy/parent
     project-name: policy-parent
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 3351c12b360451afa526c2f4837c1fd8f4b974dd..d593a9e611e45e04fa43e48352ee183cb0305e27 100644 (file)
     project: policy/parent
     project-name: policy-parent
 
-    stream:
-      - master:
-          branch: '{stream}'
-#      - casablanca:
-#          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index e251da858b4c7d25956dd86787eecc7c2c04111b..ac654c3f8251cf51a49954fce08fdefd6bdf6321 100644 (file)
@@ -23,9 +23,6 @@
     name: policy-pdp-push-upstream
     project: policy/pdp
     project-name: policy-pdp
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 2950bd6ab44d815e99e88d3a0e94435516b3f567..4a7b7a29b83240fc9127945d6f8cba3c22e4fdb9 100644 (file)
@@ -25,9 +25,5 @@
     project: policy/pdp
     project-name: policy-pdp
 
-    stream:
-      - master:
-          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index bdeba08a648b4b4a0b81c477a05d207ea173d60e..c712defe412e7792dd67a764f5eaa97096de5cc0 100644 (file)
@@ -23,9 +23,6 @@
     name: policy-xacml-pdp-push-upstream
     project: policy/xacml-pdp
     project-name: policy-xacml-pdp
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 8f0238742f198737adb83f1d72f35e746ae795a0..24b3fef66681349b39ec53820a358fd640fb6c56 100644 (file)
     project: policy/xacml-pdp
     project-name: policy-xacml-pdp
 
-    stream:
-      - master:
-          branch: '{stream}'
-#      - casablanca:
-#          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index 14f19e7cd6ca94f44b15c961940d4c71a449a47f..93ae2408c322160e6395d07123e496ca83fbfa46 100644 (file)
@@ -22,9 +22,6 @@
     name: portal-push-upstream
     project: portal
     project-name: portal
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index b97d9c65f3ab83de29fc3a122df9bfd34ad10ee8..75dc840f05f61cf3314686991eca8308d749e46b 100644 (file)
@@ -24,9 +24,5 @@
     project: portal
     project-name: portal
 
-    stream:
-      - master:
-          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index 7f00fa310e87a573e4cbff056c2189063c5d38ab..6557a18273971a325a4203e61f72e7498a87a208 100755 (executable)
@@ -1,8 +1,8 @@
 #!/bin/bash
 
-# ============LICENSE_START=======================================================
+# ============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
 # limitations under the License.
 #
 # SPDX-License-Identifier: Apache-2.0
-# ============LICENSE_END=========================================================
-
+# ============LICENSE_END======================================================
 #
-# This script will take the changes that are pushed to Nordix Gerrit and push upstream to ONAP
+# This script will take the single commit form the given Nordix Gerrit review
+# and push it, and all its ancestor commit till $GERRIT_BRANCH, to ONAP Gerrit.
 # 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
+# - 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
+set -euxo pipefail
 
-cd $WORKSPACE
-echo "Retrieving information from commit to push towards ONAP"
-project=$(git config --local remote.origin.url | awk -F "29418/onap/" '{print $2}')
-message=$(git show -s --pretty=%B | grep -vi 'Signed-off-by')
-username=$(git show -s --pretty=%an)
+cd "$WORKSPACE"
 
-pattern=" "
-if [[ "$username" =~ $pattern ]]
-then
-    echo "Incorrect username, use Linux Foundation ID as git user.name when pushing to Nordix"
-    exit 1
-fi
+onap_gerrit_base='gerrit.onap.org:29418'
+echo >&2 "Collecting information about what and how to push towards ONAP"
 
-echo "Setting user name and email"
-git config user.email $(git show -s --pretty=%ae)
-git config user.name $username
+# The git hash of the commit in the review this job runs on
+commit_hash="$GERRIT_PATCHSET_REVISION"
 
-echo "Checking out branch on master with new changes"
-git reset HEAD~1 --soft
-git checkout -b delivery_branch origin/$BRANCH
+# GERRIT_PROJECT is in the form of onap/<onap-project>
+onap_project=$(echo "$GERRIT_PROJECT" | cut -d/ -f2- )
+
+# Unfortunately for the some ONAP users, the Nordix Gerrit username don't match
+# the ONAP Gerrit username as the old script use the git author name as
+# the user which will push the change to ONAP Gerrit.
+username=$(git show -s --pretty=%an)
 
-git config --get remote.upstream.url
-retVal=$?
+onap_remote_url="ssh://$username@$onap_gerrit_base/$onap_project"
 
-if [[ $retVal -eq 0 ]]
-then
-  git remote rm upstream
-  git remote add upstream "ssh://$username@gerrit.onap.org:29418/$project.git"
+# GERRIT_BRANCH is the _intended_ branch of the commit under review
+# E.g. git push HEAD:refs/for/master => GERRIT_BRANCH='master'
+# GERRIT_TOPIC is the rest of the refspec after GERRIT_BRANCH when the topic
+# is set for the change.
+if [ -z "${GERRIT_TOPIC:-}" ] ; then
+    refspec="$commit_hash:refs/for/$GERRIT_BRANCH"
 else
-  git remote add upstream "ssh://$username@gerrit.onap.org:29418/$project.git"
+    refspec="$commit_hash:refs/for/$GERRIT_BRANCH/$GERRIT_TOPIC"
 fi
 
-echo "Committing changes and pushing upstream"
-git commit -as -m "$message"
-git push upstream HEAD:refs/for/$BRANCH
+echo >&2 "Pushing to ONAP"
 
-retVal1=$?
-if [[ $retVal1 -eq 0 ]]
-then
-  echo "Push upstream to ONAP succeeded"
-else
-  echo "Push upstream to ONAP failed"
-  exit 2
-fi
+# do not fail if git push fails as in case of no new changes we want to succeed. See below.
+set +o pipefail
 
-git checkout $BRANCH
-git branch -D delivery_branch
+git push "$onap_remote_url" "$refspec" 2>&1 | tee push_result.txt
+push_result=${PIPESTATUS[0]}
+
+# make the job a success if the above git push fails due to no new changes are needed
+# to be created upstream. This will be useful when we switch to automatic triggering
+# of the push-upstream for each patch set and jobs on different commits in a same chain
+# will race with each other to push parts of the chain
+if [ $push_result -ne 0 ]; then
+    grep '(no new changes)' push_result.txt
+fi
diff --git a/jjb/onap/rebase-jobs.sh b/jjb/onap/rebase-jobs.sh
new file mode 100755 (executable)
index 0000000..e888d43
--- /dev/null
@@ -0,0 +1,40 @@
+#!/bin/bash
+set -o errexit
+set -o nounset
+set -o pipefail
+
+cd $WORKSPACE
+# Make sure the Nordix is set from Jenkins Job configuration
+# parameter: NORDIX_REMOTE and not from previous job execution
+if git remote | grep nordix > /dev/null ; then
+    git remote rm nordix
+fi
+# When the GERRIT_BRANCH is not set the rebase job wasn't triggered by merge
+# but it's executed as part of timer. In this case we will make sure that all
+# branches from remote are synced with Nordix Gerrit.
+if [[ -z "${GERRIT_BRANCH:-}" ]] ; then
+    echo "-- Fetch all branches from ONAP for project: ${PROJECT} --"
+    REMOTE_BRANCHES=$(git branch -r | grep -v 'HEAD -> ' | awk '/origin/ {gsub("origin/","");print}')
+    for branch in ${REMOTE_BRANCHES}  ; do
+        git branch -f --track ${branch} origin/${branch}
+    done
+# The job was triggered by merge on ONAP Gerrit. We will make sure that branch set
+# in GERRIT_BRANCH is in sync with Nordix Gerrit.
+else
+    echo "-- Fetch branch: ${GERRIT_BRANCH} from ONAP for project: ${PROJECT} --"
+    REMOTE_BRANCHES=${GERRIT_BRANCH}
+    git branch -f --track ${GERRIT_BRANCH} origin/${GERRIT_BRANCH}
+fi
+git fetch origin -v
+echo "-- Adding new remote $NORDIX_REMOTE for sync --"
+git remote add nordix $NORDIX_REMOTE
+git remote -v
+echo "-- Merging changes from ONAP remote branches to local branch: --"
+for branch in ${REMOTE_BRANCHES}  ; do
+    echo "------ Branch name: ${branch}"
+    git checkout ${branch} -q
+    git merge origin/${branch} --ff-only --stat
+done
+echo "-- Pushing changes to Nordix Gerrit --"
+git push nordix --all -v
+echo "--------------------------------------------------------------------"
index 9cb95251648d5915071888c9c3f9ff802742721a..d9f36e506c46c9c5ab98cb87e72934c37ea73a2c 100644 (file)
     name: sdc-jtosca-push-upstream
     project: sdc/jtosca
     project-name: sdc-jtosca
-    stream:
-      - master:
-          branch: '{stream}'
-      - dublin:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 6bb333323b40e998e1a252a9b9a97cd06c87cd54..7fec65ebdd4ac4cc4ff65e1b1ac26a4843dbf95b 100644 (file)
     project: sdc/jtosca
     project-name: sdc-jtosca
 
-    stream:
-      - master:
-          branch: '{stream}'
-      - dublin:
-          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index 6fda29fe7777a385995d8610eb845b98194aa14a..46b0dd3aa208317223b5bd31df3f81f6cbe0a672 100644 (file)
     name: sdc-push-upstream
     project: sdc
     project-name: sdc
-    stream:
-      - master:
-          branch: '{stream}'
-      - dublin:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 46c9a6254bb0c1cd2d8a16d62b20751065518fc2..d58576c112a9a2b986eafe547f43270ceab8e10b 100644 (file)
     project: sdc
     project-name: sdc
 
-    stream:
-      - master:
-          branch: '{stream}'
-      - dublin:
-          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index f40bce71090a85e1ea1be045709f0f16f106f0e2..33e6aef2ba669c3fdcb5ead7c763b26b0ce3b5b5 100644 (file)
     name: sdnc-oam-push-upstream
     project: sdnc/oam
     project-name: sdnc-oam
-    stream:
-      - master:
-          branch: '{stream}'
-      - dublin:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 12ea1af52d109e4614119ff21839e6e93d186e7b..ac7d63c5d7fd940fb1a8c843ee622cf8dda35efc 100644 (file)
     name: sdnc-oam-rebase
     project: sdnc/oam
     project-name: sdnc-oam
-    stream:
-      - master:
-          branch: '{stream}'
-      - dublin:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index c3bfc126b5786c40df9b8e2594d66148d84800ed..21839fc9aa3189667ad645f701c66df214d09b7a 100644 (file)
     project: so/docker-config
     project-name: so-docker-config
 
-    stream:
-      - master:
-          branch: '{stream}'
-      - dublin:
-          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 55b22a8c77d8dabc39ac17c2218022d48582c9f2..0de0c2f77074fbddb8c94fff09deffb365f86bfc 100644 (file)
     name: so-docker-config-rebase
     project: so/docker-config
     project-name: so-docker-config
-    stream:
-      - master:
-          branch: '{stream}'
-      - dublin:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
\ No newline at end of file
+      - 'onap-{project-name}-rebase'
\ No newline at end of file
index ffebb560990f757ed686f7b040b7092d7bc4f3f8..b5ff92ebe29aeac554abbc1ac767e30485220ea1 100644 (file)
     project: so
     project-name: so
 
-    stream:
-      - master:
-          branch: '{stream}'
-      - casablanca:
-          branch: '{stream}'
-      - dublin:
-          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 2d4601df70299a8750143358803a20bddfe6843e..197603baf43ae86302f1bc8a67458b7da2d846b6 100644 (file)
     name: so-rebase
     project: so
     project-name: so
-    stream:
-      - master:
-          branch: '{stream}'
-      - casablanca:
-          branch: '{stream}'
-      - dublin:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index 9fdabb47e10a4033cfa613adf238a526941a5517..68a29b3dbb86612f12be058d8c7edfd9b18d5354 100644 (file)
@@ -23,9 +23,6 @@
     name: testsuite_oom-push-upstream
     project: testsuite/oom
     project-name: testsuite_oom
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 9fcac15f1182ae8d2865b1dc5ca824d341179731..ccf41260174859c7125f0efff4b79d8914a47026 100644 (file)
@@ -25,9 +25,5 @@
     project: testsuite/oom
     project-name: testsuite_oom
 
-    stream:
-      - master:
-          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index b6532ce7ae79281f14c6efc34c7bb04009ff35b9..9280ed586d96abdf26f7de9008b7071bd96087c1 100644 (file)
@@ -23,9 +23,6 @@
     name: testsuite-push-upstream
     project: testsuite
     project-name: testsuite
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index 12238219fd42db1e81db5e51100e2399d75214eb..2dabc313f19beb8a05d62edc4edf46c77dda7d21 100644 (file)
@@ -25,9 +25,5 @@
     project: testsuite
     project-name: testsuite
 
-    stream:
-      - master:
-          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
index 399ece9539ee0c241de874e14501213b3c5028ea..9ffe7645e62291c283a59904d6bf9fd1026f8c50 100644 (file)
@@ -22,9 +22,6 @@
     name: vid-push-upstream
     project: vid
     project-name: vid
-    stream:
-      - master:
-          branch: '{stream}'
 
     jobs:
-      - 'onap-{project-name}-{stream}-push-upstream'
+      - 'onap-{project-name}-push-upstream'
index e0ae6392ec3b2135df43c9d02d0574012c0755df..cc3b4e51c06da4ee171ef1d85a8133155b3ad11f 100644 (file)
@@ -24,9 +24,5 @@
     project: vid
     project-name: vid
 
-    stream:
-      - master:
-          branch: '{stream}'
-
     jobs:
-      - 'onap-{project-name}-{stream}-rebase'
+      - 'onap-{project-name}-rebase'
diff --git a/jjb/opendev/openstack-heat-tempest-plugin/openstack-heat-tempest-plugin-push-upstream-jobs.yml b/jjb/opendev/openstack-heat-tempest-plugin/openstack-heat-tempest-plugin-push-upstream-jobs.yml
new file mode 100644 (file)
index 0000000..ea1b045
--- /dev/null
@@ -0,0 +1,26 @@
+---
+# ============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: openstack-heat-tempest-plugin-push-upstream
+    project: openstack/heat-tempest-plugin
+    project-name: openstack-heat-tempest-plugin
+
+    jobs:
+      - 'opendev-{project-name}-push-upstream'
\ No newline at end of file
diff --git a/jjb/opendev/openstack-heat-tempest-plugin/openstack-heat-tempest-plugin-rebase-jobs.yml b/jjb/opendev/openstack-heat-tempest-plugin/openstack-heat-tempest-plugin-rebase-jobs.yml
new file mode 100644 (file)
index 0000000..82d6e36
--- /dev/null
@@ -0,0 +1,26 @@
+---
+# ============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: openstack-heat-tempest-plugin-rebase
+    project: openstack/heat-tempest-plugin
+    project-name: openstack-heat-tempest-plugin
+
+    jobs:
+      - 'opendev-{project-name}-rebase'
\ No newline at end of file