Skip to content

Commit

Permalink
[cluster-test] cti: only verify access to code build when needed
Browse files Browse the repository at this point in the history
With `--tag` flag we don't need code build, so no need to check for it

Closes: diem#2379
Approved by: phoenix-antigravity
  • Loading branch information
Andrey Chursin authored and bors-libra committed Jan 30, 2020
1 parent 5252fe7 commit 18273fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/cti
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ fi

JUMPHOST=ssh.${WORKSPACE}.aws.hlw3truzy4ls.com

aws codebuild list-projects >/dev/null || (echo "Failed to access codebuild, try awsmfa?"; exit 1)
ssh $JUMPHOST echo "ssh ok" >/dev/null || (echo "Failed to ssh to jump host $JUMPHOST. Try renew corp canal cert with cc-certs"; exit 1)

if [ -z "$TAG" ]; then
aws codebuild list-projects >/dev/null || (echo "Failed to access codebuild, try awsmfa?"; exit 1)
./docker/build-aws.sh --build-all --version pull/$PR
TAG=dev_${USER}_pull_${PR}
echo "**TIP Use cti -T $TAG <...> to restart this run with same tag without rebuilding it"
Expand Down

0 comments on commit 18273fd

Please sign in to comment.