From c155dfe903b33755a3d4e88885b6d090563d0b8c Mon Sep 17 00:00:00 2001 From: Adam Brousseau Date: Mon, 30 Oct 2023 15:17:07 -0400 Subject: [PATCH] Add ability to run Update ref repo job serially Signed-off-by: Adam Brousseau --- .../jobs/infrastructure/Update-Reference-Repos.groovy | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/buildenv/jenkins/jobs/infrastructure/Update-Reference-Repos.groovy b/buildenv/jenkins/jobs/infrastructure/Update-Reference-Repos.groovy index 5ea3a21c292..b9703c5afb1 100644 --- a/buildenv/jenkins/jobs/infrastructure/Update-Reference-Repos.groovy +++ b/buildenv/jenkins/jobs/infrastructure/Update-Reference-Repos.groovy @@ -173,7 +173,13 @@ timeout(time: 6, unit: 'HOURS') { } } - parallel jobs + if (params.PARALLEL) { + parallel jobs + } else { + jobs.each{ key, value -> + value() + } + } } }