ci: Trigger all jobs on gitlab CI script changes
authorNirbheek Chauhan <nirbheek@centricular.com>
Sat, 5 Feb 2022 03:46:49 +0000 (09:16 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Sat, 5 Feb 2022 03:51:48 +0000 (09:21 +0530)
Also fix typo in trigger variable that was causing triggered cerbero
pipelines to run deps builds and upload cache.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1641>

.gitlab-ci.yml
ci/gitlab/trigger_cerbero_pipeline.py

index fc6b716..1b2acd4 100644 (file)
@@ -289,6 +289,7 @@ gst indent:
 
 .base_modules_changes: &modules_changes
   - .gitlab-ci.yml
+  - ci/gitlab/*.py
   - meson.build
   - subprojects/*.wrap
   - subprojects/gst-devtools/**/*
@@ -739,7 +740,7 @@ build documentation:
       when: never
     - changes:
       - .gitlab-ci.yml
-      - ci/gitlab/freedesktop_doc_importer.sh
+      - ci/gitlab/*.py
       - subprojects/*.wrap
       - subprojects/gst-docs/**/*
       - subprojects/gst-devtools/**/*
@@ -772,7 +773,7 @@ cerbero trigger:
       when: never
     - changes:
       - .gitlab-ci.yml
-      - ci/gitlab/trigger_cerbero_pipeline.py
+      - ci/gitlab/*.py
       - subprojects/gst-devtools/**/*
       - subprojects/gst-editing-services/**/*
       - subprojects/gst-libav/**/*
index 14dfef5..b349146 100755 (executable)
@@ -46,10 +46,10 @@ if __name__ == "__main__":
         variables={
             "CI_GSTREAMER_URL": os.environ["CI_PROJECT_URL"],
             "CI_GSTREAMER_REF_NAME": os.environ["CI_COMMIT_REF_NAME"],
-            # This tells cerebero CI that this is a pipeline started via the
+            # This tells cerbero CI that this is a pipeline started via the
             # trigger API, which means it can use a deps cache instead of
             # building from scratch.
-            "CI_GSTREMER_TRIGGERED": "true",
+            "CI_GSTREAMER_TRIGGERED": "true",
         }
     )