Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
Merge pull request #4311 from cloudfoundry/fix-fork-e2e
Browse files Browse the repository at this point in the history
Wrap check for missing env var for forked CI
  • Loading branch information
richard-cox committed May 28, 2020
2 parents a866b7a + fbc7ab0 commit 6152be5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions deploy/ci/travis/job-e2e-before_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ fi
docker run -d -p 8080:8080 splatform/stratos-uaa

# Check that the S3 server is available
curl -k --max-time 20 ${AWS_ENDPOINT}
if [ $? -ne 0 ]; then
echo "Can not contact S3 Server"
exit 1
if [ -n "${AWS_ENDPOINT}" ]; then
curl -k --max-time 20 ${AWS_ENDPOINT}
if [ $? -ne 0 ]; then
echo "Can not contact S3 Server"
exit 1
fi
fi

0 comments on commit 6152be5

Please sign in to comment.