ci: Propagate MESON_COMMIT to cerbero pipeline

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4305>
This commit is contained in:
Xavier Claessens 2023-03-30 08:07:11 -04:00 committed by GStreamer Marge Bot
parent 8cf21fe744
commit 17d1e5d627

View file

@ -75,10 +75,7 @@ if __name__ == "__main__":
project_url = os.environ['CI_PROJECT_URL']
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_REF_NAME": project_branch,
# This tells cerbero CI that this is a pipeline started via the
@ -86,6 +83,18 @@ if __name__ == "__main__":
# building from scratch.
"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} ')