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 - hottis
- linux - linux
- debian - 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: script:
- echo "Hallo" - echo "Hallo"
- echo "Welt" - echo "Welt"
@ -38,19 +27,15 @@ job2:
job3: job3:
stage: build stage: build
tags: tags:
- hottis - hottis
- linux - linux
- debian - debian
only: only:
refs: refs:
- master - master
variables: variables:
GIT_SUBMODULE_STRATEGY: recursive GIT_SUBMODULE_STRATEGY: none
before_script: before_script:
- echo "Prepare ssh environment" - echo "Prepare ssh environment"
- eval $(ssh-agent -s) - eval $(ssh-agent -s)
@ -61,9 +46,9 @@ job3:
- chmod 644 ~/.ssh/known_hosts - chmod 644 ~/.ssh/known_hosts
- ssh git@gitlab.com - ssh git@gitlab.com
- echo "Preparing ssh environment done" - echo "Preparing ssh environment done"
- whoami
script: script:
- git submodule init
- git submodule update
- whoami - whoami
- make clean - make clean
- make all - make all