Skip to content
Snippets Groups Projects
Commit 185c3b15 authored by Dylan Aïssi's avatar Dylan Aïssi
Browse files

gitlab-cancel-outdated-pipelines: pass get_all=True to list()


Otherwse, we won't get the full list of pipelines and python will emit
a warning.

Signed-off-by: default avatarDylan Aïssi <dylan.aissi@collabora.com>
parent 167c0b87
No related branches found
No related tags found
1 merge request!90gitlab-cancel-outdated-pipelines: small fixes
......@@ -41,7 +41,7 @@ if __name__ == "__main__":
f"Checking if pipelines for project {args.project_id} need to be cancelled..."
)
project = gl.projects.get(args.project_id)
list_pipelines = project.pipelines.list()
list_pipelines = project.pipelines.list(get_all=True)
current_pipeline = project.pipelines.get(args.current_pipeline_id)
print(f"Running pipeline: {current_pipeline.id}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment