Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LabraCORE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EIP
Labrador
LabraCORE
Merge requests
!91
Attempt at deploy via gitlab
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Attempt at deploy via gitlab
deploy
into
development
Overview
6
Commits
2
Pipelines
5
Changes
1
Merged
Attempt at deploy via gitlab
Otto Visser
requested to merge
deploy
into
development
Jun 4, 2020
Overview
6
Commits
2
Pipelines
5
Changes
1
What does this MR do (summary)?
Attempt at deploying via GitLab
Screenshots
What changes have you made (detailed)?
Does this MR meet the acceptance criteria?
The main application was run to make sure the server still runs without errors.
Tests were written to verify the behaviour of this code.
Javadoc and other comments were added to make the code understandable.
The code adheres to the style guidelines.
0
0
Merge request reports
Compare
development
version 1
d222572a
Jun 4, 2020
development (base)
and
latest version
latest version
de1d42b7
2 commits,
Jun 8, 2020
version 1
d222572a
1 commit,
Jun 4, 2020
1 file
+
32
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
.gitlab-ci.yml
+
32
−
0
View file @ de1d42b7
Edit in single-file editor
Open in Web IDE
Show full file
@@ -33,6 +33,7 @@ stages:
-
review
-
gitlab reports
-
publish
-
deploy
# Default build cache settings to extend from
.build_cached
:
@@ -356,3 +357,34 @@ license_scanning:
variables
:
MAVEN_CLI_OPTS
:
-q -Dmaven.main.skip -Dmaven.test.skip=true -DskipTests --batch-mode
LM_JAVA_VERSION
:
11
deploy
:
stage
:
deploy
dependencies
:
-
publish_jar
before_script
:
-
'
which
ssh-agent
||
(
apt-get
update
-y
&&
apt-get
install
openssh-client
-y
)'
-
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
##
-
echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
-
mkdir -p ~/.ssh
-
chmod 700 ~/.ssh
-
ssh-keyscan labrador.tudelft.nl >> ~/.ssh/known_hosts
-
chmod 644 ~/.ssh/known_hosts
script
:
-
scp labracore.jar labrador.tudelft.nl:/var/www/labracore/
environment
:
name
:
production
url
:
https://labrador.tudelft.nl
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "trigger" ||
$CI_MERGE_REQUEST_EVENT_TYPE == "merge_train"
when
:
never
-
if
:
$CI_COMMIT_BRANCH == "master"
when
:
manual
Loading