From 60e6b62daeca688f8f345f88caa399e28f88cabe Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Thu, 31 Oct 2024 02:32:21 +0530 Subject: [PATCH] ci: Switch from URL to PATH for trigger CI variable Use a path, which contains the namespace and the repo name instead of the complete URL when triggering the Cerbero CI pipeline. Some of the jobs in the Cerbero pipeline (specifically the examples build) need to curl the API, and they need the path for that, not the website or git URL. Part-of: --- ci/gitlab/trigger_cerbero_pipeline.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/gitlab/trigger_cerbero_pipeline.py b/ci/gitlab/trigger_cerbero_pipeline.py index 4a95f39e90..caef3e2e7e 100755 --- a/ci/gitlab/trigger_cerbero_pipeline.py +++ b/ci/gitlab/trigger_cerbero_pipeline.py @@ -69,14 +69,14 @@ if __name__ == "__main__": # 'gstreamer' namespace. Fetch the branch name in the same way, just in # case it breaks in the future. if 'CI_MERGE_REQUEST_SOURCE_PROJECT_URL' in os.environ: - project_url = os.environ['CI_MERGE_REQUEST_SOURCE_PROJECT_URL'] + project_path = os.environ['CI_MERGE_REQUEST_SOURCE_PROJECT_PATH'] project_branch = os.environ['CI_MERGE_REQUEST_SOURCE_BRANCH_NAME'] else: - project_url = os.environ['CI_PROJECT_URL'] + project_path = os.environ['CI_PROJECT_PATH'] project_branch = os.environ['CI_COMMIT_REF_NAME'] variables = { - "CI_GSTREAMER_URL": project_url, + "CI_GSTREAMER_PATH": project_path, "CI_GSTREAMER_REF_NAME": project_branch, # This tells cerbero CI that this is a pipeline started via the # trigger API, which means it can use a deps cache instead of