mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-22 03:21:00 +00:00
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. The examples build doesn't use gst-plugins-rs, but we change this at the same time as the monorepo for consistency. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1900>
This commit is contained in:
parent
372c44655a
commit
d9ed642057
1 changed files with 3 additions and 3 deletions
|
@ -71,14 +71,14 @@ if __name__ == "__main__":
|
||||||
# 'gstreamer' namespace. Fetch the branch name in the same way, just in
|
# 'gstreamer' namespace. Fetch the branch name in the same way, just in
|
||||||
# case it breaks in the future.
|
# case it breaks in the future.
|
||||||
if 'CI_MERGE_REQUEST_SOURCE_PROJECT_URL' in os.environ:
|
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']
|
project_branch = os.environ['CI_MERGE_REQUEST_SOURCE_BRANCH_NAME']
|
||||||
else:
|
else:
|
||||||
project_url = os.environ['CI_PROJECT_URL']
|
project_path = os.environ['CI_PROJECT_PATH']
|
||||||
project_branch = os.environ['CI_COMMIT_REF_NAME']
|
project_branch = os.environ['CI_COMMIT_REF_NAME']
|
||||||
|
|
||||||
variables = {
|
variables = {
|
||||||
"CI_GST_PLUGINS_RS_URL": project_url,
|
"CI_GST_PLUGINS_RS_PATH": project_path,
|
||||||
"CI_GST_PLUGINS_RS_REF_NAME": project_branch,
|
"CI_GST_PLUGINS_RS_REF_NAME": project_branch,
|
||||||
# This tells cerbero 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
|
# trigger API, which means it can use a deps cache instead of
|
||||||
|
|
Loading…
Reference in a new issue