Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gitlab-ci
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
4
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
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
SECO Northern Europe
Yocto
infrastructure
gitlab-ci
Commits
8bfa443a
Commit
8bfa443a
authored
3 years ago
by
Jonas Höppner
Browse files
Options
Downloads
Patches
Plain Diff
CI: Use only one stage for integration to allow parallel execution
parent
bb392f50
No related branches found
No related tags found
1 merge request
!101
CI: Create pipeline to deploy changes in gitlab-ci to all subprojects, include all CI implementations from there.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
manifest-integration.yml
+21
-17
21 additions, 17 deletions
manifest-integration.yml
with
21 additions
and
17 deletions
manifest-integration.yml
+
21
−
17
View file @
8bfa443a
...
...
@@ -5,7 +5,7 @@
image
:
"
${CI_IMAGES}/python/3.9:99e363bc5feaa27ff18dbe7731a76ff04d7d0deb"
stages
:
-
prepa
re
-
infrastructu
re
-
integrate
-
merge
-
build
...
...
@@ -56,24 +56,36 @@ workflow:
-
if
:
$CI_PROJECT_ROOT_NAMESPACE == "SECO-Northern-Europe"
&& $CI_MERGE_REQUEST_SOURCE_PROJECT_ID == $CI_MERGE_REQUEST_PROJECT_ID
# --------------------------------------------------------------------------------------
# Common infrastructure settings
# --------------------------------------------------------------------------------------
.infrastructure
:
stage
:
infrastructure
tags
:
-
infrastructure
timeout
:
5m
image
:
"
${CI_IMAGE_PYTHON}"
needs
:
[]
variables
:
# Include git submodules
GIT_SUBMODULE_STRATEGY
:
recursive
# ---------------------------------------------------------------------------------------
# Stage: prepare
# ---------------------------------------------------------------------------------------
yamllint
:
stage
:
prepa
re
extends
:
.infrastructu
re
rules
:
-
if
:
$CI_COMMIT_REF_NAME != $MASTER_BRANCH
tags
:
-
infrastructure
timeout
:
2m
script
:
-
yamllint -c .gitlab-ci/.yamllint.yml .*.yml
# ---------------------------------------------------------------------------------------
# Stage: integrate
# integrate
# Create a commit in the manifest to pull this change
# ---------------------------------------------------------------------------------------
integrate
:
stage
:
in
tegrat
e
extends
:
.
in
frastructur
e
rules
:
# We have to make sure that the pipeline runs for the current manifest
# master at the time a merge request is created. Otherwise we cannot
...
...
@@ -81,9 +93,6 @@ integrate:
-
if
:
$CI_MERGE_REQUEST_IID
# Explicitly allow externally triggered pipelines in every case
-
if
:
$CI_PIPELINE_SOURCE == "pipeline" || $CI_PIPELINE_SOURCE == "api"
tags
:
-
infrastructure
timeout
:
5m
cache
:
policy
:
push
script
:
...
...
@@ -111,12 +120,10 @@ integrate:
# Stage: merge
# ---------------------------------------------------------------------------------------
merge
:
extends
:
.infrastructure
stage
:
merge
rules
:
-
if
:
$CI_COMMIT_BRANCH == $MASTER_BRANCH_PROJECT
tags
:
-
infrastructure
timeout
:
5m
script
:
-
cd ${CI_PROJECT_DIR}
-
.gitlab-ci/merge_into_manifest.py
...
...
@@ -152,15 +159,12 @@ build:
# Stage: check
# ---------------------------------------------------------------------------------------
check
:
stage
:
check
extends
:
.infrastructure
rules
:
-
if
:
$CI_MERGE_REQUEST_IID
# Explicitly allow externally triggered pipelines in every case
-
if
:
$CI_PIPELINE_SOURCE == "pipeline" || $CI_PIPELINE_SOURCE == "api"
needs
:
[
"
integrate"
]
tags
:
-
infrastructure
timeout
:
5m
script
:
-
cd ${CI_PROJECT_DIR}
-
if [ -n "${CI_MERGE_REQUEST_IID}" ];then
...
...
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