X-Git-Url: https://gerrit.nordix.org/gitweb?a=blobdiff_plain;f=jjb%2Fonap%2Fpush-upstream-jobs.sh;h=67b7f246b42c9d97a60a37c9b2878f2469ccf420;hb=3c92f18f48b4ab75710ff0b954d47c494438885b;hp=6557a18273971a325a4203e61f72e7498a87a208;hpb=06eef088d2234c4de89d222a36536c3650c5bfde;p=infra%2Fcicd.git 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"