From: Robert Tomczyk Date: Wed, 14 Oct 2020 13:23:20 +0000 (+0000) Subject: Merge "FIX: Handling of git topic when push upstream" X-Git-Url: https://gerrit.nordix.org/gitweb?a=commitdiff_plain;h=010d6ca93841abc4376c69f4df303a65c7a05ddc;hp=bf7ab7f6b5c2ab5411d2cb1c8d98cc4384acddf3;p=infra%2Fcicd.git Merge "FIX: Handling of git topic when push upstream" --- diff --git a/jjb/acumos/push-upstream-jobs.sh b/jjb/acumos/push-upstream-jobs.sh index 9354bfbb..2aed5974 100755 --- a/jjb/acumos/push-upstream-jobs.sh +++ b/jjb/acumos/push-upstream-jobs.sh @@ -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" diff --git a/jjb/fast-data-project/push-upstream-jobs.sh b/jjb/fast-data-project/push-upstream-jobs.sh index 810e1b30..099c75f7 100755 --- a/jjb/fast-data-project/push-upstream-jobs.sh +++ b/jjb/fast-data-project/push-upstream-jobs.sh @@ -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" diff --git a/jjb/onap/push-upstream-jobs.sh b/jjb/onap/push-upstream-jobs.sh index 6557a182..67b7f246 100755 --- a/jjb/onap/push-upstream-jobs.sh +++ b/jjb/onap/push-upstream-jobs.sh @@ -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" diff --git a/jjb/opendaylight/push-upstream-jobs.sh b/jjb/opendaylight/push-upstream-jobs.sh index 19bfc4ed..f285230e 100755 --- a/jjb/opendaylight/push-upstream-jobs.sh +++ b/jjb/opendaylight/push-upstream-jobs.sh @@ -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" diff --git a/jjb/opendev/push-upstream-jobs.sh b/jjb/opendev/push-upstream-jobs.sh index 0e1326f9..7f2a696d 100755 --- a/jjb/opendev/push-upstream-jobs.sh +++ b/jjb/opendev/push-upstream-jobs.sh @@ -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" diff --git a/jjb/oransc/push-upstream-jobs.sh b/jjb/oransc/push-upstream-jobs.sh index 03f412f3..7286aef4 100755 --- a/jjb/oransc/push-upstream-jobs.sh +++ b/jjb/oransc/push-upstream-jobs.sh @@ -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"