The CR
365d0c0fe65 for the ODL release custom bits
uses the GERRIT_BRANCH while pushing the tag and code,
however that does not work returns an error.
error: src refspec stable/chlorine does not match any
Push the code bundle and tag as separate operations.
Issue: RELENG-4696
Change-Id: I62d472b998a2d799990605482e5433fb7c721e5f
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
--- /dev/null
+---
+fixes:
+ - |
+ Use the GERRIT_REFSPEC while pushing code and tags
+ separately.
fi
git config user.name "$RELEASE_USERNAME"
git config user.email "$RELEASE_EMAIL"
fi
git config user.name "$RELEASE_USERNAME"
git config user.email "$RELEASE_EMAIL"
+ echo "INFO: push tag: $GIT_TAG"
+ git push origin "$GIT_TAG"
# Check if sentinal file exists
if [[ -f .testhash ]]; then
# Check if sentinal file exists
if [[ -f .testhash ]]; then
- git push origin "${GERRIT_BRANCH}" "$GIT_TAG"
- else
- git push origin "$GIT_TAG"
+ echo "INFO: push code bundle"
+ git push origin "HEAD:${GERRIT_REFSPEC}"
git fetch "$PATCH_DIR/${PROJECT//\//-}.bundle"
git merge --ff-only FETCH_HEAD
git fetch "$PATCH_DIR/${PROJECT//\//-}.bundle"
git merge --ff-only FETCH_HEAD
+ # print last few changes to see how the bundle is applied
+ git log --graph --all --decorate --pretty=oneline -n10
nexus_release
tag-git-repo
}
nexus_release
tag-git-repo
}