7. fix use ssh in ci script
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
stages:
|
||||
- hello
|
||||
- testssh
|
||||
- build
|
||||
|
||||
before_script:
|
||||
@ -10,7 +11,6 @@ before_script:
|
||||
- chmod 700 ~/.ssh
|
||||
- ssh-keyscan gitlab.com >> ~/.ssh/known_hosts
|
||||
- chmod 644 ~/.ssh/known_hosts
|
||||
- ssh git@gitlab.com
|
||||
- echo "Preparing ssh environment done"
|
||||
|
||||
job1:
|
||||
@ -53,4 +53,12 @@ job3:
|
||||
- make clean
|
||||
- make all
|
||||
|
||||
job4:
|
||||
stage: testssh
|
||||
tags:
|
||||
- hottis
|
||||
- linux
|
||||
- debian
|
||||
script:
|
||||
- ssh git@gitlab.com
|
||||
|
||||
|
Reference in New Issue
Block a user