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