Skip to content

Commit

Permalink
Align pipelines on repoclosures() function
Browse files Browse the repository at this point in the history
For client it still had Fedora compatiblity code, but that has been
dropped in Foreman 3.1 so no longer relevant.
  • Loading branch information
ekohl committed Jun 4, 2024
1 parent 7744549 commit b60c126
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 28 deletions.
11 changes: 1 addition & 10 deletions theforeman.org/pipelines/release/pipelines/client.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,7 @@ pipeline {
stage('staging-repoclosure') {
steps {
script {
def parallelStagesMap = [:]
def name = 'foreman-client-staging'
foreman_client_distros.each { distro ->
if (distro.startsWith('el')) {
parallelStagesMap[distro] = { repoclosure(name, distro, foreman_version) }
} else if (distro.startsWith('fc')) {
parallelStagesMap[distro] = { repoclosure(name, distro.replace('fc', 'f'), foreman_version) }
}
}
parallel parallelStagesMap
parallel repoclosures('foreman-client-staging', foreman_client_distros, foreman_version)
}
}
post {
Expand Down
7 changes: 1 addition & 6 deletions theforeman.org/pipelines/release/pipelines/katello.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,7 @@ pipeline {
stage('staging-repoclosure') {
steps {
script {
def parallelStagesMap = [:]
def name = 'katello-staging'
foreman_el_releases.each { distro ->
parallelStagesMap[distro] = { repoclosure(name, distro, foreman_version) }
}
parallel parallelStagesMap
parallel repoclosures('katello-staging', foreman_el_releases, foreman_version)
}
}
post {
Expand Down
7 changes: 1 addition & 6 deletions theforeman.org/pipelines/release/pipelines/plugins.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,7 @@ pipeline {
stage('staging-repoclosure') {
steps {
script {
def parallelStagesMap = [:]
def name = 'plugins-staging'
foreman_el_releases.each { distro ->
parallelStagesMap[distro] = { repoclosure(name, distro, foreman_version) }
}
parallel parallelStagesMap
parallel repoclosures('plugins-staging', foreman_el_releases, foreman_version)
}
}
post {
Expand Down
7 changes: 1 addition & 6 deletions theforeman.org/pipelines/release/pipelines/pulpcore.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,7 @@ pipeline {
stage('staging-repoclosure') {
steps {
script {
def parallelStagesMap = [:]
def name = 'pulpcore-staging'
pulpcore_distros.each { distro ->
parallelStagesMap[distro] = { repoclosure(name, distro, pulpcore_version) }
}
parallel parallelStagesMap
parallel repoclosures('pulpcore-staging', foreman_el_releases, foreman_version)
}
}
post {
Expand Down

0 comments on commit b60c126

Please sign in to comment.