docs: rust-unifier: Iterate over all pipelines to find latest gstreamer-rs docs

Since the documentation job is manually triggered, the latest docs might not be
in the most recent pipelines. Change the pipeline listing to iterate over all
pipelines until we find the last successful documentation build.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8463>
This commit is contained in:
Thibault Saunier 2025-02-12 09:06:53 -03:00 committed by GStreamer Marge Bot
parent def2f12d84
commit bdce7166b8

View File

@ -29,7 +29,7 @@ def get_documentation_artifact_url(project_name='gstreamer/gstreamer',
"""
gl = gitlab.Gitlab("https://gitlab.freedesktop.org/")
project = gl.projects.get(project_name)
pipelines = project.pipelines.list(get_all=False)
pipelines = project.pipelines.list(iterator=True)
for pipeline in pipelines:
if pipeline.ref != branch:
continue