Skip to content
Snippets Groups Projects
Commit 944af1c1f669 authored by Georges Racinet's avatar Georges Racinet :squid:
Browse files

Heptapod CI: deduplicated rule excluding from hg-git triggered pipelines

parent 8d0601f315fa
No related branches found
No related tags found
1 merge request!79Compat tests: fixing test failing on current Mercurial stable
Pipeline #54978 passed
......@@ -32,7 +32,11 @@
variables:
HEPTAPOD_CI_SKIP_LINT: "yes"
.unless-hg-git-triggered: &unless-hg-git-triggered
if: '$HG_GIT_TRIGGERING_SHA'
when: never
.only_py_heptapod_default:
rules:
# only the hg-git compat job is relevant for pipeline triggered
# by upstream hg-git pipelines
......@@ -35,10 +39,9 @@
.only_py_heptapod_default:
rules:
# only the hg-git compat job is relevant for pipeline triggered
# by upstream hg-git pipelines
- if: '$HG_GIT_TRIGGERING_SHA'
when: never
- <<: *unless-hg-git-triggered
- if: '$CI_COMMIT_HG_BRANCH == "default"'
- when: never
tests-current:
......@@ -41,7 +44,9 @@
- if: '$CI_COMMIT_HG_BRANCH == "default"'
- when: never
tests-current:
# only the hg-git compat job is relevant for job triggered by upstream
# hg-git pipelines
rules:
# only the hg-git compat job is relevant for pipeline triggered
# by upstream hg-git pipelines
......@@ -45,8 +50,7 @@
rules:
# only the hg-git compat job is relevant for pipeline triggered
# by upstream hg-git pipelines
- if: '$HG_GIT_TRIGGERING_SHA'
when: never
- <<: *unless-hg-git-triggered
- when: always
extends:
- .tests
......@@ -86,8 +90,7 @@
hgitaly:
rules:
- if: '$HG_GIT_TRIGGERING_SHA'
when: never
- <<: *unless-hg-git-triggered
- if: '$CI_COMMIT_BRANCH =~ /^branch\/.*/' # named branch (not a topic)
- when: never
stage: downstream
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment