diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2024-03-22 14:26:22 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2024-03-23 09:46:27 +0000 |
commit | 63ddc55017cfa70104d6b0548332e8579223e314 (patch) | |
tree | 44886f4cc0dbf565e4d4169206ea65dec26cd74d | |
parent | e0bd6c34c19f6b5cd5bb0a351cf4f97de9446e51 (diff) |
ci: Don't trigger deps jobs when running in another namespace
The only case where we run the cerbero pipeline in another namespace
when the pipeline is a triggered pipeline, is when we're running in
the namespace of the same user as the gstreamer pipeline, because we
found a matching cerbero branch of the same name as the gstreamer MR.
There is no reason to not use the deps cache in that case.
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1423>
-rw-r--r-- | .gitlab-ci.yml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index da27c90a..2698fb11 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -147,14 +147,14 @@ android fedora image: # Used when a GStreamer MR is used using the triggered pipeline .cerbero mr rules: rules: - - if: '$CI_GSTREAMER_TRIGGERED == "true" && $CI_PROJECT_NAMESPACE == "gstreamer"' + - if: '$CI_GSTREAMER_TRIGGERED == "true"' # Don't interrupt gstreamer MR CI when cerbero main gets pushes interruptible: false # Used when any other usage is encountered, cerbero MR, branch push, etc .cerbero not-mr rules: rules: - - if: '$CI_GSTREAMER_TRIGGERED != "true" || $CI_PROJECT_NAMESPACE != "gstreamer"' + - if: '$CI_GSTREAMER_TRIGGERED != "true"' # Template for all Cerbero GStreamer builds # @@ -581,9 +581,9 @@ cerbero deps msvc x86_64: - C:\msys64\msys2_shell.cmd -ucrt64 -defterm -no-start -here -use-full-path -lc "./ci/cerbero_setup.sh cerbero_deps_script" rules: # This is an extended rule of .cerbero not-mr rules - - if: ($CI_GSTREAMER_TRIGGERED != "true" || $CI_PROJECT_NAMESPACE != "gstreamer") && $CI_PIPELINE_SOURCE != "schedule" + - if: ($CI_GSTREAMER_TRIGGERED != "true") && $CI_PIPELINE_SOURCE != "schedule" # Don't run automatically for scheduled pipeline - - if: ($CI_GSTREAMER_TRIGGERED != "true" || $CI_PROJECT_NAMESPACE != "gstreamer") && $CI_PIPELINE_SOURCE == "schedule" + - if: ($CI_GSTREAMER_TRIGGERED != "true") && $CI_PIPELINE_SOURCE == "schedule" when: 'manual' # workaround for gitlab bug where it otherwise blocks the pipeline for manual jobs from rules allow_failure: true @@ -616,9 +616,9 @@ cerbero deps msvc x86_64 msi package: rules: # This is an extended rule of .cerbero not-mr rules # Run automatically if it's a scheduled pipeline - - if: ($CI_GSTREAMER_TRIGGERED != "true" || $CI_PROJECT_NAMESPACE != "gstreamer") && $CI_PIPELINE_SOURCE == "schedule" + - if: ($CI_GSTREAMER_TRIGGERED != "true") && $CI_PIPELINE_SOURCE == "schedule" # Otherwise require manual trigger - - if: ($CI_GSTREAMER_TRIGGERED != "true" || $CI_PROJECT_NAMESPACE != "gstreamer") && $CI_PIPELINE_SOURCE != "schedule" + - if: ($CI_GSTREAMER_TRIGGERED != "true") && $CI_PIPELINE_SOURCE != "schedule" when: 'manual' # workaround for gitlab bug where it otherwise blocks the pipeline for manual jobs from rules allow_failure: true |