Skip to content

Commit

Permalink
use repoclosures() helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni authored and ekohl committed Dec 1, 2023
1 parent 7899111 commit 8750ae1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8750ae1

Please sign in to comment.