Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Naundorf
HPC_Vehicle_Classification
Commits
80462dc5
Commit
80462dc5
authored
May 03, 2022
by
Naundorf
Browse files
Update .gitlab-ci.yml
parent
d483e53b
Pipeline
#6389
failed with stage
in 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
80462dc5
...
@@ -7,13 +7,14 @@ before_script:
...
@@ -7,13 +7,14 @@ before_script:
-
echo "$SSH_PRIVATE_KEY" | base64 -d | tr -d '\r' | ssh-add - > /dev/null
-
echo "$SSH_PRIVATE_KEY" | base64 -d | tr -d '\r' | ssh-add - > /dev/null
-
mkdir -p ~/.ssh
-
mkdir -p ~/.ssh
-
chmod 700 ~/.ssh
-
chmod 700 ~/.ssh
# - ssh-keyscan bwunicluster.scc.kit.edu > ~/.ssh/known_hosts
-
ssh-keyscan 193.196.53.93 > ~/.ssh/known_hosts
-
echo "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts
-
ssh-keyscan bwunicluster.scc.kit.edu > ~/.ssh/known_hosts
# - echo "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts
-
chmod 644 ~/.ssh/known_hosts
-
chmod 644 ~/.ssh/known_hosts
Test SSH
:
Test SSH
:
script
:
script
:
#
- GITLAB_KEY=$(echo "$GITLAB_KEY" | tr -d '\r' | tr -d '\n')
-
GITLAB_KEY=$(echo "$GITLAB_KEY" | tr -d '\r' | tr -d '\n')
-
ssh -J ubuntu@193.196.5
2.202
$USER_NAME "mkdir -p test_dir"
-
ssh -J ubuntu@193.196.5
3.93
$USER_NAME "mkdir -p test_dir"
-
scp
-v
testscript.sh $USER_NAME:~/test_dir/testscript.sh
-
scp testscript.sh $USER_NAME:~/test_dir/testscript.sh
-
ssh
-J ubuntu@193.196.52.202
$USER_NAME "chmod 700 test_dir/testscript.sh && sbatch -p single ./test_dir/testscript.sh $GITLAB_KEY"
-
ssh $USER_NAME "chmod 700 test_dir/testscript.sh && sbatch -p single ./test_dir/testscript.sh $GITLAB_KEY"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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