17. fix use ssh in ci script

This commit is contained in:
2019-02-12 17:36:08 +01:00
parent 9d0481928c
commit 8577413417

View File

@ -9,17 +9,6 @@ job1:
- hottis
- linux
- debian
before_script:
- echo "Prepare ssh environment"
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan gitlab.com >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
- ssh git@gitlab.com
- echo "Preparing ssh environment done"
- whoami
script:
- echo "Hallo"
- echo "Welt"
@ -38,19 +27,15 @@ job2:
job3:
stage: build
tags:
- hottis
- linux
- debian
only:
refs:
- master
variables:
GIT_SUBMODULE_STRATEGY: recursive
GIT_SUBMODULE_STRATEGY: none
before_script:
- echo "Prepare ssh environment"
- eval $(ssh-agent -s)
@ -61,9 +46,9 @@ job3:
- chmod 644 ~/.ssh/known_hosts
- ssh git@gitlab.com
- echo "Preparing ssh environment done"
- whoami
script:
- git submodule init
- git submodule update
- whoami
- make clean
- make all