Skip to content

Commit

Permalink
Merge pull request apache#2988 from PurelyApplied/geode-6188
Browse files Browse the repository at this point in the history
GEODE-6188: Select zone for testing at random to avoid availability c…
  • Loading branch information
dickcav authored Dec 11, 2018
2 parents 56c3593 + 835b9c7 commit 0c10b3f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ci/scripts/create_instance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ if [[ "${SANITIZED_BUILD_JOB_NAME}" =~ [Ww]indows ]]; then
WINDOWS_PREFIX="windows-"
fi

ZONE=us-central1-f
PERMITTED_ZONES=(us-central1-a us-central1-b us-central1-c us-central1-f)
ZONE=${PERMITTED_ZONES[$((${RANDOM} % 4))]}
echo "Deploying to zone ${ZONE}"

INSTANCE_NAME_STRING="${BUILD_PIPELINE_NAME}-${BUILD_JOB_NAME}-build${JAVA_BUILD_VERSION}-test${JAVA_TEST_VERSION}-job#${BUILD_NAME}"

INSTANCE_NAME="heavy-lifter-$(uuidgen -n @dns -s -N "${INSTANCE_NAME_STRING}")"
Expand Down

0 comments on commit 0c10b3f

Please sign in to comment.