ci: Add a variable to identify triggered cerbero pipelines
authorNirbheek Chauhan <nirbheek@centricular.com>
Fri, 4 Feb 2022 14:49:57 +0000 (20:19 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Fri, 4 Feb 2022 14:49:57 +0000 (20:19 +0530)
This commit is required for proper functioning of the following
cerbero merge request: https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/800

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

ci/gitlab/trigger_cerbero_pipeline.py

index 87a968fa93942ddeb1d99922da6b54b1bb77846e..14dfef5d3f97c637ebe871f04ef92608fde5c3f5 100755 (executable)
@@ -46,6 +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
+            # trigger API, which means it can use a deps cache instead of
+            # building from scratch.
+            "CI_GSTREMER_TRIGGERED": "true",
         }
     )