summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorMichel Dänzer <mdaenzer@redhat.com>2020-08-28 17:08:57 +0200
committerMarge Bot <eric+marge@anholt.net>2020-09-01 08:01:26 +0000
commita6c4db9798b3a4b496ad18430dcba1839986b896 (patch)
tree4f832367db686b0047b4fa7989b454d071062840 /.gitlab-ci.yml
parentd383133ce1ddd16e3099615fcd31e6f28c11b17b (diff)
ci: Restrict "success" job to pipelines for MRs
Expected benefits: * No more spurious non-MR pipelines with just this job. * No more warnings from GitLab such as on https://gitlab.freedesktop.org/mesa/mesa/-/pipelines/195778 Reviewed-by: Daniel Stone <daniels@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6492>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 35593d7909f..3fea645d414 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -126,7 +126,8 @@ success:
when: never
- changes: *all_paths
when: never
- - when: on_success
+ - if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $CI_COMMIT_REF_NAME'
+ when: on_success
variables:
GIT_STRATEGY: none
script: