Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
wolf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
mobile_robotics
wolf_projects
wolf_lib
wolf
Merge requests
!427
Resolve "Wolf license"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Wolf license"
198-wolf-license
into
devel
Overview
0
Commits
66
Pipelines
61
Changes
1
Merged
Joan Vallvé Navarro
requested to merge
198-wolf-license
into
devel
3 years ago
Overview
0
Commits
66
Pipelines
61
Changes
1
Expand
Closes
#198 (closed)
Closes
#415 (closed)
Edited
3 years ago
by
Joan Vallvé Navarro
0
0
Merge request reports
Viewing commit
e54c8a53
Prev
Next
Show latest version
1 file
+
32
−
14
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
e54c8a53
Update .gitlab-ci.yml file
· e54c8a53
Joan Vallvé Navarro
authored
3 years ago
.gitlab-ci.yml
+
32
−
14
Options
@@ -18,19 +18,39 @@ stages:
license_header
:
stage
:
license
image
:
labrobotica/wolf_deps:16.04
before_script
:
-
echo "$(whoami)@$(hostname):$PWD"
before_script
:
## Install ssh-agent if not already installed, it is required by Docker.
## (change apt-get to yum if you use an RPM-based image)
-
'
which
ssh-agent
||
(
apt-get
update
-y
&&
apt-get
install
openssh-client
-y
)'
## Run ssh-agent (inside the build environment)
-
eval $(ssh-agent -s)
## Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store
## We're using tr to fix line endings which makes ed25519 keys work
## without extra base64 encoding.
## https://gitlab.com/gitlab-examples/ssh-private-key/issues/1#note_48526556
-
mkdir -p ~/.ssh
-
chmod 644 ~/.ssh
-
echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
# - echo "$SSH_KNOWN_HOSTS" > $HOME/.ssh/known_hosts
-
ssh-keyscan -H -p 2202 gitlab.iri.upc.edu >> $HOME/.ssh/known_hosts
# update apt
-
apt-get update
##
## Install ssh-agent if not already installed, it is required by Docker.
## (change apt-get to yum if you use an RPM-based image)
##
-
'
command
-v
ssh-agent
>/dev/null
||
(
apt-get
update
-y
&&
apt-get
install
openssh-client
-y
)'
#
- 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )'
##
## 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
@@ -38,26 +58,24 @@ license_header:
## without extra base64 encoding.
## 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
##
-
mkdir -p ~/.ssh
-
chmod 700 ~/.ssh
#
- mkdir -p ~/.ssh
#
- chmod 700 ~/.ssh
##
## Assuming you created the SSH_KNOWN_HOSTS variable, uncomment the
## following two lines.
##
-
echo "$SSH_KNOWN_HOSTS"
-
echo "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts
-
ssh-keyscan -H -p 2202 gitlab.iri.upc.edu
-
ssh-keyscan -H -p 2202 gitlab.iri.upc.edu >> $HOME/.ssh/known_hosts
-
chmod 644 ~/.ssh/known_hosts
#
- echo "$SSH_KNOWN_HOSTS"
#
- echo "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts
#
- ssh-keyscan -H -p 2202 gitlab.iri.upc.edu
#
- ssh-keyscan -H -p 2202 gitlab.iri.upc.edu >> $HOME/.ssh/known_hosts
#
- chmod 644 ~/.ssh/known_hosts
#- echo "$SSH_PUBLIC_KEY"
#- echo "$SSH_PUBLIC_KEY" >> ~/.ssh/id_rsa.pub
script
:
-
git clone ssh://git@gitlab.iri.upc.edu:2202/mobile_robotics/wolf_projects/wolf_lib/plugins/gnss.git
-
git checkout -b ci_processing || git checkout ci_processing
Loading