HBASE-13081 Branch precommit builds are not updating to branch head before patch application
This commit is contained in:
parent
9a311303a8
commit
a8555f65f0
|
@ -230,8 +230,9 @@ checkoutBranch() {
|
||||||
echo ""
|
echo ""
|
||||||
if [[ $JENKINS == "true" ]] ; then
|
if [[ $JENKINS == "true" ]] ; then
|
||||||
if [[ "$BRANCH_NAME" != "master" ]]; then
|
if [[ "$BRANCH_NAME" != "master" ]]; then
|
||||||
echo "${GIT} checkout ${BRANCH_NAME}"
|
echo "origin/${BRANCH_NAME} HEAD is commit `${GIT} rev-list origin/${BRANCH_NAME} -1`"
|
||||||
${GIT} checkout ${BRANCH_NAME}
|
echo "${GIT} checkout -f `${GIT} rev-list origin/${BRANCH_NAME} -1`"
|
||||||
|
${GIT} checkout -f `${GIT} rev-list origin/${BRANCH_NAME} -1`
|
||||||
echo "${GIT} status"
|
echo "${GIT} status"
|
||||||
${GIT} status
|
${GIT} status
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue