Skip to content

Commit

Permalink
[ci] use es snapshots on non pull requests (#22834)
Browse files Browse the repository at this point in the history
* [ci] use es snapshots on non pull requests

* remove extra export

* always clone
  • Loading branch information
jbudz authored Sep 10, 2018
1 parent faaf1b4 commit 47cd173
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dev/ci_setup/git_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ function checkout_sibling {

cloneBranch="$PR_TARGET_BRANCH"
if clone_target_is_valid ; then
export TEST_ES_FROM=snapshot
return 0
fi

Expand All @@ -81,6 +80,9 @@ function checkout_sibling {

function checkout_clone_target {
pick_clone_target
if [[ $cloneBranch = "master" && $cloneAuthor = "elastic" ]]; then
export TEST_ES_FROM=snapshot
fi

echo " -> checking out '${cloneBranch}' branch from ${cloneAuthor}/${project}..."
git clone -b "$cloneBranch" "git@github.com:${cloneAuthor}/${project}.git" "$targetDir" --depth=1
Expand Down

0 comments on commit 47cd173

Please sign in to comment.