From: robert.tomczyk Date: Fri, 18 Oct 2019 10:46:03 +0000 (+0100) Subject: GLOBAL: Update rebase-jobs script to handle git tags X-Git-Url: https://gerrit.nordix.org/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F54%2F2654%2F2;p=infra%2Fcicd.git GLOBAL: Update rebase-jobs script to handle git tags Change-Id: Ieb428d4f7bdf8528aba65c8de467f8c69324c538 --- diff --git a/jjb/global/rebase-jobs.sh b/jjb/global/rebase-jobs.sh index f124691a..4431bf48 100644 --- a/jjb/global/rebase-jobs.sh +++ b/jjb/global/rebase-jobs.sh @@ -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 -v done -echo "-- Pushing changes to Nordix Gerrit --" -git push nordix --all -v echo "--------------------------------------------------------------------"