FIX: Handling of git topic when push upstream 57/6257/1
authorrobert.tomczyk <robert.tomczyk@est.tech>
Tue, 13 Oct 2020 10:03:13 +0000 (11:03 +0100)
committerrobert.tomczyk <robert.tomczyk@est.tech>
Tue, 13 Oct 2020 10:03:13 +0000 (11:03 +0100)
Change-Id: Ia0004612aee7724d2db3cc435b64d4f9dcc06608

jjb/acumos/push-upstream-jobs.sh
jjb/fast-data-project/push-upstream-jobs.sh
jjb/onap/push-upstream-jobs.sh
jjb/opendaylight/push-upstream-jobs.sh
jjb/opendev/push-upstream-jobs.sh
jjb/oransc/push-upstream-jobs.sh

index 9354bfbbf1d0bf27d930ed4fb2bf9251a04e73f7..2aed5974029f3691869aca56d56f3171385d88b2 100755 (executable)
@@ -58,9 +58,9 @@ acumos_remote_url="ssh://$username@$acumos_gerrit_base/$acumos_project"
 # 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"
+    refspec="${commit_hash}:refs/for/${GERRIT_BRANCH}"
 else
-    refspec="$commit_hash:refs/for/$GERRIT_BRANCH/$GERRIT_TOPIC"
+    refspec="${commit_hash}:refs/for/${GERRIT_BRANCH}%topic=${GERRIT_TOPIC}"
 fi
 
 echo >&2 "Pushing to Acumos"
index 810e1b309abce5dc6f9bd6d0b94c77861181c565..099c75f7d951483457b9cc4828dfadbf3fe03cc6 100755 (executable)
@@ -57,9 +57,9 @@ fdio_remote_url="ssh://$username@$fdio_gerrit_base/$fdio_project"
 # 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"
+    refspec="${commit_hash}:refs/for/${GERRIT_BRANCH}"
 else
-    refspec="$commit_hash:refs/for/$GERRIT_BRANCH/$GERRIT_TOPIC"
+    refspec="${commit_hash}:refs/for/${GERRIT_BRANCH}%topic=${GERRIT_TOPIC}"
 fi
 
 echo >&2 "Pushing to FDio Gerrit"
index 6557a18273971a325a4203e61f72e7498a87a208..67b7f246b42c9d97a60a37c9b2878f2469ccf420 100755 (executable)
@@ -51,9 +51,9 @@ onap_remote_url="ssh://$username@$onap_gerrit_base/$onap_project"
 # 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"
+    refspec="${commit_hash}:refs/for/${GERRIT_BRANCH}"
 else
-    refspec="$commit_hash:refs/for/$GERRIT_BRANCH/$GERRIT_TOPIC"
+    refspec="${commit_hash}:refs/for/${GERRIT_BRANCH}%topic=${GERRIT_TOPIC}"
 fi
 
 echo >&2 "Pushing to ONAP"
index 19bfc4edaf11f163c1123d797acccff2210b82b2..f285230e7292cf012aed57cfa6c9408cf27b41cf 100755 (executable)
@@ -69,9 +69,9 @@ opendaylight_remote_url="ssh://$username@$opendaylight_gerrit_base/$opendaylight
 # 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"
+    refspec="${commit_hash}:refs/for/${GERRIT_BRANCH}"
 else
-    refspec="$commit_hash:refs/for/$GERRIT_BRANCH/$GERRIT_TOPIC"
+    refspec="${commit_hash}:refs/for/${GERRIT_BRANCH}%topic=${GERRIT_TOPIC}"
 fi
 
 echo >&2 "Pushing to OpenDaylight"
index 0e1326f93126b8cb2345b53883319948bf4dda1a..7f2a696d24cea49d4ec1d9fd6de7e175e5817e4d 100755 (executable)
@@ -58,9 +58,9 @@ opendev_remote_url="ssh://$username@$opendev_gerrit_base/$opendev_project"
 # 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"
+    refspec="${commit_hash}:refs/for/${GERRIT_BRANCH}"
 else
-    refspec="$commit_hash:refs/for/$GERRIT_BRANCH/$GERRIT_TOPIC"
+    refspec="${commit_hash}:refs/for/${GERRIT_BRANCH}%topic=${GERRIT_TOPIC}"
 fi
 
 echo >&2 "Pushing to OpenDev"
index 03f412f37b54a4ce669e54892b65f09d2c5f9ef2..7286aef45672fea6ed77b32f4bd39d9063f595e5 100755 (executable)
@@ -51,9 +51,9 @@ oransc_remote_url="ssh://$username@$oransc_gerrit_base/$oransc_project"
 # 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"
+    refspec="${commit_hash}:refs/for/${GERRIT_BRANCH}"
 else
-    refspec="$commit_hash:refs/for/$GERRIT_BRANCH/$GERRIT_TOPIC"
+    refspec="${commit_hash}:refs/for/${GERRIT_BRANCH}%topic=${GERRIT_TOPIC}"
 fi
 
 echo >&2 "Pushing to ORANSC Gerrit"