Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
G
gitlab-runner-vcenter-executor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
gitlab-runner-vcenter-executor
Commits
879ec8d7
Commit
879ec8d7
authored
Jul 08, 2020
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ssh path
parent
0839259f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/prepare.sh
src/prepare.sh
+1
-1
src/run.sh
src/run.sh
+1
-1
No files found.
src/prepare.sh
View file @
879ec8d7
...
@@ -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
...
...
src/run.sh
View file @
879ec8d7
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment