ci: don't use ssh to check elasticsearch repo for a sibling branch

ssh keys are not always available

Original commit: elastic/x-pack-elasticsearch@5c974724ea
This commit is contained in:
Boaz Leskes 2016-12-06 11:37:50 +01:00
parent 7b044a6e16
commit 7a996da86d
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ if [ -z ${USE_EXISTING_ES:+x} ]; then
BRANCH=${PR_SOURCE_BRANCH:-${GIT_BRANCH#*/}} # GIT_BRANCH starts with the repo, i.e., origin/master
BRANCH=${BRANCH:-master} # fall back to CI branch if not testing a PR
echo "Checking if branch '$BRANCH' has elasticsearch sibling..."
if [[ -z "$(git ls-remote --heads git@github.com:elastic/elasticsearch.git $BRANCH)" ]]; then
if [[ -z "$(git ls-remote --heads https://github.com/elastic/elasticsearch.git $BRANCH)" ]]; then
echo "No sibling branch, using PR target branch"
BRANCH=$PR_TARGET_BRANCH
fi