Continuing the script when failing to check out... it happens for Jenkins for some reason

This commit is contained in:
Marcin Grzejszczak
2016-08-18 16:10:50 +02:00
parent 9726d21b93
commit fa67b987a3

View File

@@ -47,8 +47,7 @@ function retrieve_current_branch() {
CURRENT_BRANCH=${CURRENT_BRANCH:-HEAD}
fi
echo "Current branch is [${CURRENT_BRANCH}]"
git checkout ${CURRENT_BRANCH}
git checkout ${CURRENT_BRANCH} || echo "Failed to check the branch... continuing with the script"
}
# Switches to the provided value of the release version. We always prefix it with `v`