diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8cb7773dfa7e6cb69747f8033a0e9129c8c68b90..56c0f160e720808bd4ef1d41a9f41696c1d349dc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,7 +11,7 @@ before_script: Test SSH: script: - #- scp testscript.sh $USER_NAME:~/testscript/testscript.sh - #- scp helloworld.c $USER_NAME:~/testscript/helloworld.c - #- ssh $USER_NAME "cd ~/testscript && chmod 700 testscript.sh && ./testscript.sh" - - ssh -o 'StrictHostKeyChecking no' $USER_NAME "mkdir -p testscript && scp testscript.sh $USER_NAME:~/testscript/testscript.sh && cd testscript && ls -al" + - ssh $USER_NAME "mkdir -p testscript" + - scp testscript.sh $USER_NAME:~/testscript/testscript.sh + - scp helloworld.c $USER_NAME:~/testscript/helloworld.c + - ssh $USER_NAME "cd ~/testscript && chmod 700 testscript.sh && ./testscript.sh"