Add sleep time to wait for all vms will be resumed

It looks like sometimes we're trying to ssh faster than vm is up. We
should wait about 1-2 sec, so let set 5 sec sleep to be sure.

Change-Id: I3c71dfb5ad1df7355016ca637a42197bad56b317
This commit is contained in:
Artur Zarzycki 2017-02-06 17:46:35 +01:00
parent d9df6e7aa9
commit 05bcb16a47
1 changed files with 3 additions and 0 deletions

View File

@ -82,6 +82,9 @@ SCP_COMMAND="sshpass -p vagrant scp -o StrictHostKeyChecking=no"
# remove old key:
ssh-keygen -R "${ADMIN_IP}"
# Let's wait 5 sec to all vms up
sleep 5
# Store info about Jenkins job on VM:
echo "${BUILD_TAG}" | ${SSH_COMMAND} "tee -a JENKINS_INFO.TXT"