tools/appsre-build-worker-packer: Verbose ssh check
This commit is contained in:
parent
8c514308e7
commit
93ec151c60
1 changed files with 2 additions and 1 deletions
|
|
@ -106,9 +106,10 @@ function ec2_rpm_build {
|
|||
|
||||
|
||||
for LOOP_COUNTER in {0..30}; do
|
||||
if ssh -i ./keypair.pem -o ConnectTimeout=10 -o StrictHostKeyChecking=no "ec2-user@$RPMBUILDER_HOST" true > /dev/null 2>&1; then
|
||||
if ssh -i ./keypair.pem -o ConnectTimeout=5 -o StrictHostKeyChecking=no "ec2-user@$RPMBUILDER_HOST" true; then
|
||||
break
|
||||
fi
|
||||
sleep 5
|
||||
echo "sleeping, try #$LOOP_COUNTER"
|
||||
done
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue