ci_run_n_monitor: track new job when retrying a job
When retrying a job, we are creating a new job, so we need to keep track of this new job now. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27499>
This commit is contained in:

committed by
Marge Bot

parent
5bc1a62fbb
commit
8a05cb8da7
@@ -217,7 +217,8 @@ def enable_job(
|
||||
pjob = project.jobs.get(job.id, lazy=True)
|
||||
|
||||
if job.status in ["success", "failed", "canceled"]:
|
||||
pjob.retry()
|
||||
new_job = pjob.retry()
|
||||
job = get_pipeline_job(pipeline, new_job["id"])
|
||||
else:
|
||||
pjob.play()
|
||||
|
||||
|
Reference in New Issue
Block a user