Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Bash
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SmartDataLab
public
CI-CD components
Bash
Commits
7257a5fc
Commit
7257a5fc
authored
May 27, 2023
by
Pierre Smeyers
Browse files
Options
Downloads
Patches
Plain Diff
feat(workflow): extend (skip ci) feature
parent
762f4d5b
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
templates/gitlab-ci-bash.yml
+14
-0
14 additions, 0 deletions
templates/gitlab-ci-bash.yml
with
14 additions
and
0 deletions
templates/gitlab-ci-bash.yml
+
14
−
0
View file @
7257a5fc
...
...
@@ -19,6 +19,20 @@ workflow:
# prevent branch pipeline when an MR is open (prefer MR pipeline)
-
if
:
'
$CI_COMMIT_BRANCH
&&
$CI_OPEN_MERGE_REQUESTS'
when
:
never
-
if
:
'
$CI_COMMIT_MESSAGE
=~
"/\[(ci
skip|skip
ci)
on
([^],]*,)*tag(,[^],]*)*\]/"
&&
$CI_COMMIT_TAG'
when
:
never
-
if
:
'
$CI_COMMIT_MESSAGE
=~
"/\[(ci
skip|skip
ci)
on
([^],]*,)*branch(,[^],]*)*\]/"
&&
$CI_COMMIT_BRANCH'
when
:
never
-
if
:
'
$CI_COMMIT_MESSAGE
=~
"/\[(ci
skip|skip
ci)
on
([^],]*,)*mr(,[^],]*)*\]/"
&&
$CI_MERGE_REQUEST_ID'
when
:
never
-
if
:
'
$CI_COMMIT_MESSAGE
=~
"/\[(ci
skip|skip
ci)
on
([^],]*,)*default(,[^],]*)*\]/"
&&
$CI_COMMIT_REF_NAME
=~
$CI_DEFAULT_BRANCH'
when
:
never
-
if
:
'
$CI_COMMIT_MESSAGE
=~
"/\[(ci
skip|skip
ci)
on
([^],]*,)*prod(,[^],]*)*\]/"
&&
$CI_COMMIT_REF_NAME
=~
$PROD_REF'
when
:
never
-
if
:
'
$CI_COMMIT_MESSAGE
=~
"/\[(ci
skip|skip
ci)
on
([^],]*,)*integ(,[^],]*)*\]/"
&&
$CI_COMMIT_REF_NAME
=~
$INTEG_REF'
when
:
never
-
if
:
'
$CI_COMMIT_MESSAGE
=~
"/\[(ci
skip|skip
ci)
on
([^],]*,)*dev(,[^],]*)*\]/"
&&
$CI_COMMIT_REF_NAME
!~
$PROD_REF
&&
$CI_COMMIT_REF_NAME
!~
$INTEG_REF'
when
:
never
-
when
:
always
# test job prototype: implement adaptive pipeline rules
...
...
This diff is collapsed.
Click to expand it.
Benguria Elguezabal, Gorka
@gorka.benguria
mentioned in commit
8e2da2f0
·
May 10, 2024
mentioned in commit
8e2da2f0
mentioned in commit 8e2da2f01e34c00e78862ac56ac4767c3eeb2255
Toggle commit list
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
sign in
to comment