From: Daniel Stone Date: Thu, 14 Sep 2023 10:47:40 +0000 (+0100) Subject: ci: Fix pre-merge pipelines with no code changes X-Git-Tag: upstream/23.3.3~1942 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7521dbae60260fded7897cc59738a63d7dfa2835;p=platform%2Fupstream%2Fmesa.git ci: Fix pre-merge pipelines with no code changes Make sure we don't end up with manual container jobs in MR pipelines, because they'll never start. This cleans up the container and build rules so always 'do the right thing' on MRs (container+build if required, nothing if not) and user branches (all manual). Signed-off-by: Daniel Stone Part-of: --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 443e3e1..31e5ba1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -176,7 +176,14 @@ include: - include/**/* - src/**/* when: on_success - # Otherwise, build/test jobs won't run because no rule matched. + # Just skip everything for MRs which don't actually change anything in the + # build + - if: *is-pre-merge-for-marge + when: never + - if: *is-post-merge + when: never + # Always allow user branches etc to trigger jobs manually + - when: manual .ci-deqp-artifacts: @@ -214,9 +221,14 @@ include: changes: *all_paths when: on_success - # Allow triggering jobs manually in other cases + # Just skip everything for MRs which don't actually change anything in the + # build - the same rules as above, but without the file-change rules + - if: *is-pre-merge-for-marge + when: never + - if: *is-post-merge + when: never + # Always allow user branches etc to trigger jobs manually - when: manual - # Otherwise, container jobs won't run because no rule matched. # Git archive