From 8750ae174e7a22481c71e29138d5d1d3ca472f70 Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 1 Dec 2023 09:32:12 +0100 Subject: [PATCH] use repoclosures() helper function --- .../pipelines/release/pipelines/foreman-pipeline.groovy | 7 +------ .../pipelines/release/pipelines/foreman-rpm.groovy | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/theforeman.org/pipelines/release/pipelines/foreman-pipeline.groovy b/theforeman.org/pipelines/release/pipelines/foreman-pipeline.groovy index 648d7ac4..c3f070d9 100644 --- a/theforeman.org/pipelines/release/pipelines/foreman-pipeline.groovy +++ b/theforeman.org/pipelines/release/pipelines/foreman-pipeline.groovy @@ -48,12 +48,7 @@ pipeline { steps { script { - def parallelStagesMap = [:] - def name = 'foreman-staging' - foreman_el_releases.each { distro -> - parallelStagesMap[distro] = { repoclosure(name, distro, foreman_version) } - } - parallel parallelStagesMap + parallel repoclosures('foreman-staging', foreman_el_releases, foreman_version) } } post { diff --git a/theforeman.org/pipelines/release/pipelines/foreman-rpm.groovy b/theforeman.org/pipelines/release/pipelines/foreman-rpm.groovy index da00f6fe..efab3a60 100644 --- a/theforeman.org/pipelines/release/pipelines/foreman-rpm.groovy +++ b/theforeman.org/pipelines/release/pipelines/foreman-rpm.groovy @@ -91,12 +91,7 @@ pipeline { stage('staging-repoclosure') { steps { script { - def parallelStagesMap = [:] - def name = 'foreman-staging' - foreman_el_releases.each { distro -> - parallelStagesMap[distro] = { repoclosure(name, distro, foreman_version) } - } - parallel parallelStagesMap + parallel repoclosures('foreman-staging', foreman_el_releases, foreman_version) } } post {