summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorEric Engestrom <eric@igalia.com>2024-02-05 22:59:51 +0000
committerMarge Bot <emma+marge@anholt.net>2024-02-08 22:22:54 +0000
commit8a05cb8da70310d2ba76a48f1a3d892b9aecb41b (patch)
tree139c397b7bfb62824850871d842f8aa4e5720b7b /bin
parent5bc1a62fbb62b9697c30a8587a79975190183e5a (diff)
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>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ci/ci_run_n_monitor.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ci/ci_run_n_monitor.py b/bin/ci/ci_run_n_monitor.py
index 800d3d57e8c..ad9cb8e6a15 100755
--- a/bin/ci/ci_run_n_monitor.py
+++ b/bin/ci/ci_run_n_monitor.py
@@ -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()