X-Git-Url: https://gerrit.nordix.org/gitweb?a=blobdiff_plain;f=jjb%2Facumos%2Fpush-upstream-jobs.sh;h=2aed5974029f3691869aca56d56f3171385d88b2;hb=411ab84bc9692e150ccf6776350a50e96b8ed198;hp=9354bfbbf1d0bf27d930ed4fb2bf9251a04e73f7;hpb=591f1b850cb87f7ed424fd8a6063624f71e25c6d;p=infra%2Fcicd.git 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"