Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
caosdb
Software
caosdb-server
Commits
a2b224a8
Verified
Commit
a2b224a8
authored
3 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
Pipeline
parent
f153c80b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!44
Release 0.6
Pipeline
#16194
passed
3 years ago
Stage: info
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+6
-19
6 additions, 19 deletions
.gitlab-ci.yml
with
6 additions
and
19 deletions
.gitlab-ci.yml
+
6
−
19
View file @
a2b224a8
#
# ** header v3.0
# This file is a part of the CaosDB Project.
#
# Copyright (C) 2018 Research Group Biomedical Physics,
# Max-Planck-Institute for Dynamics and Self-Organization Göttingen
# Copyright (C) 2019 Henrik tom Wörden
# Copyright (C) 2021 Timm Fitschen <t.fitschen@indiscale.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
...
...
@@ -19,8 +19,6 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
# ** end header
#
variables
:
DEPLOY_REF
:
f-grpc
...
...
@@ -41,6 +39,9 @@ stages:
-
test
-
deploy
.env
:
&env
-
F_BRANCH="${CI_COMMIT_REF_NAME}"
info
:
tags
:
[
cached-dind
]
image
:
docker:20.10
...
...
@@ -50,7 +51,8 @@ info:
-
*env
-
echo "Pipeline triggered by $TRIGGERED_BY_REPO@$TRIGGERED_BY_REF ($TRIGGERED_BY_HASH)"
-
echo "Pipeline will trigger DEPLOY with branch $DEPLOY_REF"
-
echo "F_BRANCH
:
$F_BRANCH"
-
echo "F_BRANCH = $F_BRANCH"
# Setup: Build a docker image in which tests for this repository can run
build-testenv
:
...
...
@@ -81,22 +83,7 @@ test:
-
mvn compile
-
mvn test
.env
:
&env
-
F_BRANCH="${CI_COMMIT_REF_NAME}"
# TODO remove, this is grpc-special stuff
# server in f-grpc-dev branch matches with dev branch of cpplib/cppinttest
-
if echo "$F_BRANCH" | grep -c "^f-grpc-dev$"; then
F_BRANCH=dev;
fi
# server in f-grpc-main branch matches with main branch of cpplib/cppinttest
-
if echo "$F_BRANCH" | grep -c "^f-grpc-main$"; then
F_BRANCH=main;
fi
# server in f-grpc-f-something branch matches with f-something branch of cpplib/cppinttest
-
if echo "$F_BRANCH" | grep -c "^f-grpc-f-.*$"; then
F_BRANCH=`echo "${F_BRANCH:7}"`;
fi
# Deploy: Trigger building of server image and integration tests
trigger_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