tools/appsre-build-worker-packer: Verbose ssh check

This commit is contained in:
sanne 2022-01-12 12:30:43 +01:00 committed by Sanne Raymaekers
parent 8c514308e7
commit 93ec151c60

View file

@ -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