Fix branches to pull and rebase against 81/181/1
authorFatih Degirmenci <fdegir@gmail.com>
Tue, 11 Dec 2018 19:30:08 +0000 (11:30 -0800)
committerFatih Degirmenci <fdegir@gmail.com>
Tue, 11 Dec 2018 19:30:08 +0000 (11:30 -0800)
The previous version of the jobs were misconfigured, trying to rebase
nordix-dev and nordix-casablanca branches which is incorrect.

The branches that are kept in sync are master and casablanca so
this change fixes that.

Change-Id: I0aebf3adb62e504dc1c19cd4931a45d9330d53bc
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
jjb/dcaegen2/dcaegen2-collectors-datafile-rebase-jobs.yaml
jjb/global/global-templates-rebase.yaml
jjb/global/rebase-jobs.sh

index 4e17f38b5d91d2aee2845a6b960b1d06bd514792..66ac0bdbc1aabfa35c8ff8b288c6ecb7736c80ff 100644 (file)
     project-name: dcaegen2-collectors-datafile
 
     stream:
-      - nordix-dev:
+      - master:
           branch: '{stream}'
-          upstream-branch: 'master'
-      - nordix-casablanca:
+      - casablanca:
           branch: '{stream}'
-          upstream-branch: 'casablanca'
 
     jobs:
       - '{project-name}-{stream}-rebase'
index 19c3af7102e51744aa03727528f97d8828bb850b..843175e60143527c6108c481fdbae5f8ba8fa5fb 100644 (file)
@@ -1,7 +1,7 @@
 - job-template:
     name: '{project-name}-{stream}-rebase'
 
-    node: ubuntu1804
+    node: infra-build01-ubuntu1804
 
     disabled: false
 
           name: NORDIX_REMOTE
           default: 'ssh://infra@gerrit.nordix.org:29418/{project}.git'
           description: The remote to add for Nordix.
-      - string:
-          name: UPSTREAM_BRANCH
-          default: '{upstream-branch}'
-          description: The upstream branch to rebase against.
 
     scm:
       - git-scm:
           ssh-credentials-id: nordixinfra-lfn-gerrit-ssh
-          branch: "$UPSTREAM_BRANCH"
+          branch: '{branch}'
           refspec: ''
 
     triggers:
       - onap-gerrit-trigger-change-merged:
           project: '{project}'
-          branch: "$UPSTREAM_BRANCH"
+          branch: '{branch}'
           files: '**'
 
     builders:
index b451f5fc94c3039c99157566687f1598df3d7097..b2f77378b504355daa6cb975ba82b3e7e87c1b6d 100755 (executable)
@@ -4,16 +4,17 @@ set -o nounset
 set -o pipefail
 
 cd $WORKSPACE
-git checkout $UPSTREAM_BRANCH -q
+echo "Checking out $BRANCH"
+git checkout $BRANCH -q
 git pull -q
 echo "Commit is"
 echo "-------------------------------------------"
 git show -s
 echo "-------------------------------------------"
-echo "Adding new remote for sync"
+echo "Adding new remote $NORDIX_REMOTE for sync"
 git remote add nordix $NORDIX_REMOTE
 echo "-------------------------------------------"
 git remote -v
 echo "-------------------------------------------"
-echo "Pushing changes to Nordix BRANCH"
+echo "Pushing changes to Nordix branch $BRANCH"
 git push nordix $BRANCH