Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3401994
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3401994
Commits
fe8bed7b
Verified
Commit
fe8bed7b
authored
1 year ago
by
Dave Long
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3404487
by fjgarlin, catch: Run child jobs in sequence?
parent
a9865eb3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+78
-16
78 additions, 16 deletions
.gitlab-ci.yml
with
78 additions
and
16 deletions
.gitlab-ci.yml
+
78
−
16
View file @
fe8bed7b
...
...
@@ -113,13 +113,13 @@ default:
.run-on-commit
:
&run-on-commit
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_ROOT_NAMESPACE == "project"
-
if
:
$CI_PIPELINE_SOURCE == "merge_request_event"
when
:
manual
allow_failure
:
true
.run-daily
:
&run-daily
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "schedule" && $CI_PROJECT_ROOT_NAMESPACE == "project" && $DAILY_TEST == "1"
.run-on-mr
:
&run-on-mr
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "merge_request_event"
when
:
manual
allow_failure
:
true
...
...
@@ -132,11 +132,14 @@ default:
_TARGET_DB
:
"
mysql-8"
PERFORMANCE_TEST
:
$PERFORMANCE_TEST
OTEL_COLLECTOR
:
$OTEL_COLLECTOR
# Run on MR, schedule, push and performance test.
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_ROOT_NAMESPACE == "project"
-
if
:
$CI_PIPELINE_SOURCE == "schedule" && $CI_PROJECT_ROOT_NAMESPACE == "project" && $DAILY_TEST == "1"
-
if
:
$CI_PIPELINE_SOURCE == "merge_request_event"
-
if
:
$PERFORMANCE_TEST == "1"
# Special job for MRs for test-only checks.
'
DEFAULT:
Test-only
(PHP
8.2
MySQL
8)'
:
<<
:
[
*default-stage
,
*with-composer
]
when
:
manual
...
...
@@ -145,7 +148,6 @@ default:
_TARGET_PHP
:
"
8.2"
_TARGET_DB
:
"
mysql-8"
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "push" && $CI_PROJECT_ROOT_NAMESPACE == "project"
-
if
:
$CI_PIPELINE_SOURCE == "merge_request_event"
trigger
:
# Rely on the status of the child pipeline.
...
...
@@ -153,73 +155,133 @@ default:
include
:
-
local
:
.gitlab-ci/pipeline-test-only.yml
# Run on commit, or manually.
# Main listing of jobs.
# All of these are available on Merge Requests and also work as base jobs for
# on-commit and daily jobs to extend from.
'
PHP
8.1
MySQL
5.7'
:
<<
:
[
*default-stage
,
*run-on-
commit
]
<<
:
[
*default-stage
,
*run-on-
mr
]
variables
:
_TARGET_PHP
:
"
8.1"
_TARGET_DB
:
"
mysql-5.7"
'
PHP
8.2
PostgreSQL
14.1'
:
<<
:
[
*default-stage
,
*run-
daily
]
<<
:
[
*default-stage
,
*run-
on-mr
]
variables
:
_TARGET_PHP
:
"
8.2"
_TARGET_DB
:
"
pgsql-14.1"
'
PHP
8.2
PostgreSQL
15'
:
<<
:
[
*default-stage
,
*run-
daily
]
<<
:
[
*default-stage
,
*run-
on-mr
]
variables
:
_TARGET_PHP
:
"
8.2"
_TARGET_DB
:
"
pgsql-15"
'
PHP
8.2
PostgreSQL
16'
:
<<
:
[
*default-stage
,
*run-on-
commit
]
<<
:
[
*default-stage
,
*run-on-
mr
]
variables
:
_TARGET_PHP
:
"
8.2"
_TARGET_DB
:
"
pgsql-16"
'
PHP
8.2
SQLite
3'
:
<<
:
[
*default-stage
,
*run-on-
commit
]
<<
:
[
*default-stage
,
*run-on-
mr
]
variables
:
_TARGET_PHP
:
"
8.2"
_TARGET_DB
:
"
sqlite-3"
'
PHP
8.3
MySQL
8'
:
<<
:
[
*default-stage
,
*run-
daily
]
<<
:
[
*default-stage
,
*run-
on-mr
]
variables
:
_TARGET_PHP
:
"
8.3"
_TARGET_DB
:
"
mysql-8"
'
PHP
8.3
PostgreSQL
16'
:
<<
:
[
*default-stage
,
*run-
daily
]
<<
:
[
*default-stage
,
*run-
on-mr
]
variables
:
_TARGET_PHP
:
"
8.3"
_TARGET_DB
:
"
pgsql-16"
'
PHP
8.3
SQLite
3'
:
<<
:
[
*default-stage
,
*run-
daily
]
<<
:
[
*default-stage
,
*run-
on-mr
]
variables
:
_TARGET_PHP
:
"
8.3"
_TARGET_DB
:
"
sqlite-3"
'
PHP
8.1
MariaDB
10.3.22'
:
<<
:
[
*default-stage
,
*run-
daily
]
<<
:
[
*default-stage
,
*run-
on-mr
]
variables
:
_TARGET_PHP
:
"
8.1"
_TARGET_DB
:
"
mariadb-10.3.22"
'
PHP
8.1
PostgreSQL
14.1'
:
<<
:
[
*default-stage
,
*run-
daily
]
<<
:
[
*default-stage
,
*run-
on-mr
]
variables
:
_TARGET_PHP
:
"
8.1"
_TARGET_DB
:
"
pgsql-14.1"
'
PHP
8.1
SQLite
3'
:
<<
:
[
*default-stage
,
*run-
daily
]
<<
:
[
*default-stage
,
*run-
on-mr
]
variables
:
_TARGET_PHP
:
"
8.1"
_TARGET_DB
:
"
sqlite-3"
# Jobs running on commits.
# The value set in the "needs" property will determine the order in the sequence.
'
[Commit]
PHP
8.1
MySQL
5.7'
:
extends
:
'
PHP
8.1
MySQL
5.7'
needs
:
[
'
DEFAULT:
PHP
8.2
MySQL
8'
]
<<
:
[
*run-on-commit
]
'
[Commit]
PHP
8.2
PostgreSQL
16'
:
extends
:
'
PHP
8.2
PostgreSQL
16'
needs
:
[
'
[Commit]
PHP
8.1
MySQL
5.7'
]
<<
:
[
*run-on-commit
]
'
[Commit]
PHP
8.2
SQLite
3'
:
extends
:
'
PHP
8.2
SQLite
3'
needs
:
[
'
[Commit]
PHP
8.2
PostgreSQL
16'
]
<<
:
[
*run-on-commit
]
# Jobs running daily.
# The value set in the "needs" property will determine the order in the sequence.
'
[Daily]
PHP
8.2
PostgreSQL
14.1'
:
extends
:
'
PHP
8.2
PostgreSQL
14.1'
needs
:
[
'
DEFAULT:
PHP
8.2
MySQL
8'
]
<<
:
[
*run-daily
]
'
[Daily]
PHP
8.2
PostgreSQL
15'
:
extends
:
'
PHP
8.2
PostgreSQL
15'
needs
:
[
'
[Daily]
PHP
8.2
PostgreSQL
14.1'
]
<<
:
[
*run-daily
]
'
[Daily]
PHP
8.3
MySQL
8'
:
extends
:
'
PHP
8.3
MySQL
8'
needs
:
[
'
[Daily]
PHP
8.2
PostgreSQL
15'
]
<<
:
[
*run-daily
]
'
[Daily]
PHP
8.3
PostgreSQL
16'
:
extends
:
'
PHP
8.3
PostgreSQL
16'
needs
:
[
'
[Daily]
PHP
8.3
MySQL
8'
]
<<
:
[
*run-daily
]
'
[Daily]
PHP
8.3
SQLite
3'
:
extends
:
'
PHP
8.3
SQLite
3'
needs
:
[
'
[Daily]
PHP
8.3
PostgreSQL
16'
]
<<
:
[
*run-daily
]
'
[Daily]
PHP
8.1
MariaDB
10.3.22'
:
extends
:
'
PHP
8.1
MariaDB
10.3.22'
needs
:
[
'
[Daily]
PHP
8.3
SQLite
3'
]
<<
:
[
*run-daily
]
'
[Daily]
PHP
8.1
PostgreSQL
14.1'
:
extends
:
'
PHP
8.1
PostgreSQL
14.1'
needs
:
[
'
[Daily]
PHP
8.1
MariaDB
10.3.22'
]
<<
:
[
*run-daily
]
'
[Daily]
PHP
8.1
SQLite
3'
:
extends
:
'
PHP
8.1
SQLite
3'
needs
:
[
'
[Daily]
PHP
8.1
PostgreSQL
14.1'
]
<<
:
[
*run-daily
]
################
# Build Jobs for linting
...
...
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