X-Git-Url: https://gerrit.nordix.org/gitweb?a=blobdiff_plain;f=jjb%2Foransc%2Fpush-upstream-jobs.sh;h=7286aef45672fea6ed77b32f4bd39d9063f595e5;hb=3b5d5d8f359a4207872edf32773fdb72c3193eb7;hp=03f412f37b54a4ce669e54892b65f09d2c5f9ef2;hpb=f97b3c2096712eff370bb227db3a6fa5ba9665cf;p=infra%2Fcicd.git 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"