Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
test_CI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nicolo Parmiggiani
test_CI
Commits
a5ff2758
Commit
a5ff2758
authored
4 years ago
by
Nicolo Parmiggiani
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml
parent
3a3dc0f0
No related branches found
No related tags found
No related merge requests found
Pipeline
#1268
failed
4 years ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+11
-11
11 additions, 11 deletions
.gitlab-ci.yml
with
11 additions
and
11 deletions
.gitlab-ci.yml
+
11
−
11
View file @
a5ff2758
...
@@ -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_ci
3
.git
-
ls -la test_ci
_2
-
ls -la test_ci
3
build-job
:
build-job
:
stage
:
build
stage
:
build
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment