mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +00:00
ci: Propagate MESON_COMMIT to cerbero pipeline
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4305>
This commit is contained in:
parent
8cf21fe744
commit
17d1e5d627
1 changed files with 17 additions and 8 deletions
|
@ -75,9 +75,6 @@ if __name__ == "__main__":
|
||||||
project_url = os.environ['CI_PROJECT_URL']
|
project_url = os.environ['CI_PROJECT_URL']
|
||||||
project_branch = os.environ['CI_COMMIT_REF_NAME']
|
project_branch = os.environ['CI_COMMIT_REF_NAME']
|
||||||
|
|
||||||
pipe = cerbero.trigger_pipeline(
|
|
||||||
token=os.environ['CI_JOB_TOKEN'],
|
|
||||||
ref=cerbero_branch,
|
|
||||||
variables = {
|
variables = {
|
||||||
"CI_GSTREAMER_URL": project_url,
|
"CI_GSTREAMER_URL": project_url,
|
||||||
"CI_GSTREAMER_REF_NAME": project_branch,
|
"CI_GSTREAMER_REF_NAME": project_branch,
|
||||||
|
@ -86,6 +83,18 @@ if __name__ == "__main__":
|
||||||
# building from scratch.
|
# building from scratch.
|
||||||
"CI_GSTREAMER_TRIGGERED": "true",
|
"CI_GSTREAMER_TRIGGERED": "true",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
meson_commit = os.environ.get('MESON_COMMIT')
|
||||||
|
if meson_commit:
|
||||||
|
# Propagate the Meson commit to cerbero pipeline and make sure it's not
|
||||||
|
# using deps cache.
|
||||||
|
variables['MESON_COMMIT'] = meson_commit
|
||||||
|
del variables['CI_GSTREAMER_TRIGGERED']
|
||||||
|
|
||||||
|
pipe = cerbero.trigger_pipeline(
|
||||||
|
token=os.environ['CI_JOB_TOKEN'],
|
||||||
|
ref=cerbero_branch,
|
||||||
|
variables=variables,
|
||||||
)
|
)
|
||||||
|
|
||||||
fprint(f'Cerbero pipeline running at {pipe.web_url} ')
|
fprint(f'Cerbero pipeline running at {pipe.web_url} ')
|
||||||
|
|
Loading…
Reference in a new issue