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 {