Skip to content
Snippets Groups Projects
Unverified Commit ac1c0f50 authored by Pablo Correa Gomez's avatar Pablo Correa Gomez :beach:
Browse files

mrhlpr: pipeline: add support for Alpine's dynamic dowstream pipelines

Fixes #30
parent aeb2cb28
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,17 @@ class PipelineMetadata:
f" status '{pipeline_status}' instead of 'success'"
)
if origin.project == "alpine":
trigger_jobs = gitlab.download_json(
origin,
f"/projects/{pipeline_project_id}/pipelines/{pipeline_id}/bridges",
True,
)
if trigger_jobs:
assert len(trigger_jobs) == 1
pipeline_id = trigger_jobs[0]["downstream_pipeline"]["id"]
pipeline_project_id = trigger_jobs[0]["downstream_pipeline"]["project_id"]
# Query the jobs of the pipeline (without cache, the result may change e.g.
# if this ran earlier while the pipeline was not successful and now it is)
api_pipeline_jobs = gitlab.download_json(
......
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