Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
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
dumux-repositories
dumux
Commits
cba97a42
Commit
cba97a42
authored
3 years ago
by
Dennis Gläser
Browse files
Options
Downloads
Patches
Plain Diff
[ci] enable lecture trigger
parent
ee20fc79
No related branches found
No related tags found
1 merge request
!2408
Feature/ci integration
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+22
-16
22 additions, 16 deletions
.gitlab-ci.yml
with
22 additions
and
16 deletions
.gitlab-ci.yml
+
22
−
16
View file @
cba97a42
stages
:
stages
:
-
configure
-
configure
-
trigger
-
trigger
#
- downstream modules
-
downstream modules
variables
:
variables
:
IMAGE_REGISTRY_URL
:
$CI_REGISTRY/dumux-repositories/dumux-docker-ci
IMAGE_REGISTRY_URL
:
$CI_REGISTRY/dumux-repositories/dumux-docker-ci
...
@@ -15,6 +15,7 @@ workflow:
...
@@ -15,6 +15,7 @@ workflow:
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
-
if
:
$CI_PIPELINE_SOURCE == "merge_request_event"
-
if
:
$CI_PIPELINE_SOURCE == "merge_request_event"
################################################################################
################################################################################
# Stage 1: configure the test pipeline. #
# Stage 1: configure the test pipeline. #
# This creates the .yml to be used for the test pipeline trigger stage. Within #
# This creates the .yml to be used for the test pipeline trigger stage. Within #
...
@@ -42,8 +43,9 @@ select-pipeline:
...
@@ -42,8 +43,9 @@ select-pipeline:
-
if
:
$CI_PIPELINE_SOURCE == "merge_request_event"
-
if
:
$CI_PIPELINE_SOURCE == "merge_request_event"
when
:
manual
when
:
manual
###################################################################################
###################################################################################
# Stage 2: trigger the test pipelines
#
# Stage 2: trigger the
Dumux
test pipelines #
# In this stage, we trigger the test pipeline with different configurations, i.e. #
# In this stage, we trigger the test pipeline with different configurations, i.e. #
# different Dune versions, compilers, etc. Within merge requests, we create three #
# different Dune versions, compilers, etc. Within merge requests, we create three #
# test pipelines including two different compilers and a full and minimal setup #
# test pipelines including two different compilers and a full and minimal setup #
...
@@ -62,7 +64,7 @@ select-pipeline:
...
@@ -62,7 +64,7 @@ select-pipeline:
strategy
:
depend
strategy
:
depend
# trigger for jobs that should not be created in merge requests
# trigger for jobs that should not be created in merge requests
.non-m
erge-request
-trigger
:
.non-m
r
-trigger
:
extends
:
.base-trigger
extends
:
.base-trigger
rules
:
rules
:
-
if
:
$CI_PIPELINE_SOURCE != "merge_request_event"
-
if
:
$CI_PIPELINE_SOURCE != "merge_request_event"
...
@@ -87,23 +89,27 @@ full-dune-2.7-clang:
...
@@ -87,23 +89,27 @@ full-dune-2.7-clang:
##################################
##################################
# additional scheduled pipelines #
# additional scheduled pipelines #
full-dune-master-gcc
:
full-dune-master-gcc
:
extends
:
.non-m
erge-request
-trigger
extends
:
.non-m
r
-trigger
variables
:
variables
:
IMAGE
:
$IMAGE_REGISTRY_URL/full:dune-master-gcc-ubuntu-20.04
IMAGE
:
$IMAGE_REGISTRY_URL/full:dune-master-gcc-ubuntu-20.04
full-dune-master-clang
:
full-dune-master-clang
:
extends
:
.non-m
erge-request
-trigger
extends
:
.non-m
r
-trigger
variables
:
variables
:
IMAGE
:
$IMAGE_REGISTRY_URL/full:dune-master-clang-ubuntu-20.04
IMAGE
:
$IMAGE_REGISTRY_URL/full:dune-master-clang-ubuntu-20.04
# ###################################
# # triggers for downstream modules #
#########################################################
# trigger lecture:
# Stage 3: trigger test pipelines of downstream modules #
# stage: trigger downstream modules
#########################################################
# trigger:
# project: dumux-repositories/dumux-lecture
# trigger lecture test
# # TODO: replace by master once development in lecture is finished
trigger lecture
:
# branch: feature/test-dumux-trigger
stage
:
downstream modules
# strategy: depend
trigger
:
# variables:
project
:
dumux-repositories/dumux-lecture
# DUMUX_BRANCH: $CI_COMMIT_BRANCH
# TODO: use master when lecture pipeline is set up
branch
:
feature/test-dumux-trigger
strategy
:
depend
variables
:
DUMUX_MERGE_REQUEST_BRANCH
:
$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME
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