Commit 879ec8d7 authored by nanahira's avatar nanahira

ssh path

parent 0839259f
...@@ -36,7 +36,7 @@ done ...@@ -36,7 +36,7 @@ done
# Wait for ssh to become available # Wait for ssh to become available
echo "Waiting for sshd to be available" echo "Waiting for sshd to be available"
for i in $(seq 1 30); do for i in $(seq 1 30); do
if ssh -i "${currentDir}/id_rsa" -o StrictHostKeyChecking=no "$SSH_USER@$VM_IP" >/dev/null 2>/dev/null; then if ssh -i "${currentDir}/../ssh/id_rsa" -o StrictHostKeyChecking=no "$SSH_USER@$VM_IP" >/dev/null 2>/dev/null; then
break break
fi fi
......
...@@ -7,7 +7,7 @@ source ${currentDir}/base # Get variables from base script. ...@@ -7,7 +7,7 @@ source ${currentDir}/base # Get variables from base script.
VM_IP=$(_get_vm_ip) VM_IP=$(_get_vm_ip)
ssh -i "${currentDir}/ssh/id_rsa" -o StrictHostKeyChecking=no "$SSH_USER@$VM_IP" /bin/bash < "${1}" ssh -i "${currentDir}/../ssh/id_rsa" -o StrictHostKeyChecking=no "$SSH_USER@$VM_IP" /bin/bash < "${1}"
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
# Exit using the variable, to make the build as failure in GitLab # Exit using the variable, to make the build as failure in GitLab
# CI. # CI.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment