# 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"
# 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"
# 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"
# 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"
# 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"
# 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"