Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
linux
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Vignesh Raman
linux
Commits
4986a9ea
Commit
4986a9ea
authored
2 months ago
by
Vignesh Raman
Browse files
Options
Downloads
Patches
Plain Diff
Workflow
Signed-off-by:
Vignesh Raman
<
vignesh.raman@collabora.com
>
parent
03cb6f83
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#134127
failed
2 months ago
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/ci/gitlab-ci/gitlab-ci.yml
+28
-36
28 additions, 36 deletions
tools/ci/gitlab-ci/gitlab-ci.yml
with
28 additions
and
36 deletions
tools/ci/gitlab-ci/gitlab-ci.yml
+
28
−
36
View file @
4986a9ea
...
@@ -2,43 +2,35 @@
...
@@ -2,43 +2,35 @@
#
#
# Copyright (C) 2024 Collabora, Helen Koike <helen.koike@collabora.com>
# Copyright (C) 2024 Collabora, Helen Koike <helen.koike@collabora.com>
# YAML anchors for rule conditions
workflow
:
# --------------------------------
name
:
$PIPELINE_NAME
.rules-anchors
:
rules
:
rules
:
# do not duplicate pipelines on merge pipelines
# when triggered as a multi-project pipeline for an MR
-
if
:
$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push"
-
if
:
$CI_PIPELINE_SOURCE == 'pipeline' && $PARENT_MERGE_REQUEST_IID !=
null
&& $PARENT_MERGE_REQUEST_IID != ""
when
:
never
variables
:
# merge pipeline
PIPELINE_NAME
:
'
Downstream
pipeline
for
$PARENT_PROJECT_PATH!$PARENT_MERGE_REQUEST_IID'
-
if
:
&is-merge-attempt
$GITLAB_USER_LOGIN == "marge-bot" && $CI_PIPELINE_SOURCE == "merge_request_event"
# when triggered as a multi-project pipeline
# post-merge pipeline
-
if
:
$CI_PIPELINE_SOURCE == 'pipeline'
-
if
:
&is-post-merge
$GITLAB_USER_LOGIN == "marge-bot" && $CI_PIPELINE_SOURCE == "push"
variables
:
# Pre-merge pipeline
PIPELINE_NAME
:
'
Downstream
pipeline
for
$PARENT_PROJECT_PATH'
-
if
:
&is-pre-merge
$CI_PIPELINE_SOURCE == "merge_request_event"
# when triggered via a schedule
# Push to a branch on a fork
-
if
:
$CI_PIPELINE_SOURCE == 'schedule'
-
if
:
&is-fork-push
$CI_PIPELINE_SOURCE == "push"
variables
:
# nightly pipeline
PIPELINE_NAME
:
'
Scheduled
pipeline
for
$ONLY_JOB_NAME'
-
if
:
&is-scheduled-pipeline
$CI_PIPELINE_SOURCE == "schedule"
# for merge requests
# pipeline for direct pushes that bypassed the CI
-
if
:
$CI_MERGE_REQUEST_ID
-
if
:
&is-direct-push
$CI_PIPELINE_SOURCE == "push" && $GITLAB_USER_LOGIN != "marge-bot"
# when triggered via the REST api
-
if
:
$CI_PIPELINE_SOURCE == 'api'
.container+build-rules
:
# for the tip of the default branch
rules
:
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# Build everything in merge pipelines
# when triggered via a trigger token
-
if
:
*is-merge-attempt
-
if
:
$CI_PIPELINE_SOURCE == 'trigger'
when
:
on_success
# when triggered from a button press in the web interface
# Same as above, but for pre-merge pipelines
-
if
:
$CI_PIPELINE_SOURCE == 'web'
-
if
:
*is-pre-merge
# for branch tips without open MRs, ignoring special branches
when
:
manual
-
if
:
$CI_PIPELINE_SOURCE == 'push' && $CI_OPEN_MERGE_REQUESTS ==
null
# Build everything after someone bypassed the CI
# when forced via '-o ci.variable="FORCE_CI=true"' during pushing
-
if
:
*is-direct-push
-
if
:
$FORCE_CI == 'true'
when
:
manual
# Build everything in scheduled pipelines
-
if
:
*is-scheduled-pipeline
when
:
on_success
# Allow building everything in fork pipelines, but build nothing unless
# manually triggered
-
when
:
manual
variables
:
variables
:
SMATCH_DB_DIR
:
/smatch/smatch_data
SMATCH_DB_DIR
:
/smatch/smatch_data
...
...
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