From 0e4fcbb175b85135763a3c3bf3907b0836349508 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Tue, 12 Feb 2019 17:01:01 +0100 Subject: [PATCH] 10. fix use ssh in ci script --- .gitlab-ci.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b497a23..a8280a7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,6 +9,19 @@ 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 + - echo "Preparing ssh environment done" + - apt update + - apt install -y msp430-libc + - apt install -y binutils-msp430 + - apt install -y gcc-msp430 script: - echo "Hallo" - echo "Welt" @@ -38,19 +51,6 @@ job3: variables: GIT_SUBMODULE_STRATEGY: recursive - 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 - - echo "Preparing ssh environment done" - - apt update - - apt install -y msp430-libc - - apt install -y binutils-msp430 - - apt install -y gcc-msp430 script: - make clean