X-Git-Url: https://gerrit.nordix.org/gitweb?a=blobdiff_plain;f=jjb%2Ffast-data-project%2Fpush-upstream-jobs.sh;h=099c75f7d951483457b9cc4828dfadbf3fe03cc6;hb=9201e7809b59148ae7e1cd958038ea25b9bbbd8a;hp=810e1b309abce5dc6f9bd6d0b94c77861181c565;hpb=6881a59a7e27c049d996f426e0e154eee9366d9a;p=infra%2Fcicd.git 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"