INFRA: Switch to tox for JJB verify and merge jobs
[infra/cicd.git] / jjb / global / rebase-jobs.sh
index f124691a73792c6410dc539819eee89c55102ec3..657ed112dd9500d6c7aed26ef8793a4577bf9c68 100644 (file)
@@ -25,16 +25,18 @@ else
     REMOTE_BRANCHES=${GERRIT_BRANCH}
     git branch -f --track ${GERRIT_BRANCH} origin/${GERRIT_BRANCH}
 fi
-git fetch origin -v
+git fetch origin --tags -v
 echo "-- Adding new remote $NORDIX_REMOTE for sync --"
 git remote add nordix $NORDIX_REMOTE
 git remote -v
 echo "-- Merging changes from Gerrit upstream remote branches to local branch: --"
 for branch in ${REMOTE_BRANCHES}  ; do
-    echo "------ Branch name: ${branch}"
+    echo "--- Branch name: ${branch}"
     git checkout ${branch} -q -f
     git merge origin/${branch} --ff-only --stat
+    echo "------ Pushing changes from branch: ${branch} to Nordix Gerrit"
+    git push nordix -v
+    echo "------ Pushing new tags from branch: ${branch} to Nordix Gerrit"
+    git push nordix --tags -f -v
 done
-echo "-- Pushing changes to Nordix Gerrit --"
-git push nordix --all -v
 echo "--------------------------------------------------------------------"