Skip to content
Snippets Groups Projects
Commit a5ff2758 authored by Nicolo Parmiggiani's avatar Nicolo Parmiggiani
Browse files

Update .gitlab-ci.yml

parent 3a3dc0f0
No related branches found
No related tags found
No related merge requests found
Pipeline #1268 failed
...@@ -25,12 +25,12 @@ before_script: ...@@ -25,12 +25,12 @@ before_script:
## Install ssh-agent if not already installed, it is required by Docker. ## Install ssh-agent if not already installed, it is required by Docker.
## (change apt-get to yum if you use an RPM-based image) ## (change apt-get to yum if you use an RPM-based image)
## ##
- 'command -v ssh-agent >/dev/null || ( yum install openssh-client -y )' #- 'command -v ssh-agent >/dev/null || ( yum install openssh-client -y )'
## ##
## Run ssh-agent (inside the build environment) ## Run ssh-agent (inside the build environment)
## ##
- eval $(ssh-agent -s) #- eval $(ssh-agent -s)
## ##
## Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store ## Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store
...@@ -38,18 +38,18 @@ before_script: ...@@ -38,18 +38,18 @@ before_script:
## without extra base64 encoding. ## without extra base64 encoding.
## https://gitlab.com/gitlab-examples/ssh-private-key/issues/1#note_48526556 ## https://gitlab.com/gitlab-examples/ssh-private-key/issues/1#note_48526556
## ##
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - #- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
## ##
## Create the SSH directory and give it the right permissions ## Create the SSH directory and give it the right permissions
## ##
- mkdir -p ~/.ssh #- mkdir -p ~/.ssh
- chmod 700 ~/.ssh #- chmod 700 ~/.ssh
- echo "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts #- echo "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts #- chmod 644 ~/.ssh/known_hosts
- cat ~/.ssh/known_hosts #- cat ~/.ssh/known_hosts
## ##
## Optionally, if you will be using any Git commands, set the user name and ## Optionally, if you will be using any Git commands, set the user name and
## and email. ## and email.
...@@ -57,11 +57,11 @@ before_script: ...@@ -57,11 +57,11 @@ before_script:
# - git config --global user.email "user@example.com" # - git config --global user.email "user@example.com"
# - git config --global user.name "User name" # - git config --global user.name "User name"
- ssh-add -l #- ssh-add -l
- git clone git@git.ia2.inaf.it:nicolo.parmiggiani/test_ci_2.git - git clone https://test_cu:UHsawm6MvxUmDRVsAHrs@www.ict.inaf.it/gitlab/nicolo.parmiggiani/test_ci3.git
- ls -la test_ci_2 - ls -la test_ci3
build-job: build-job:
stage: build stage: build
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment