Skip to content

Commit

Permalink
also use stagingyum in stable pipes
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni authored and ekohl committed Dec 1, 2023
1 parent b993393 commit 7899111
Showing 1 changed file with 55 additions and 2 deletions.
57 changes: 55 additions & 2 deletions theforeman.org/pipelines/release/pipelines/foreman-pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,21 @@ pipeline {
stage('Mash Koji Repositories') {
agent { label 'sshkey' }

when {
expression { stage_source == 'koji' }
}

steps {
mash("foreman", foreman_version)
}
}
stage('Repoclosure') {
stage('Koji Repoclosure') {
agent { label 'el' }

when {
expression { stage_source == 'koji' }
}

steps {
script {
parallel repoclosures('foreman', foreman_el_releases, foreman_version)
Expand All @@ -30,6 +38,30 @@ pipeline {
}
}
}

stage('Staging Repoclosure') {
agent { label 'el8' }

when {
expression { stage_source == 'stagingyum' }
}

steps {
script {
def parallelStagesMap = [:]
def name = 'foreman-staging'
foreman_el_releases.each { distro ->
parallelStagesMap[distro] = { repoclosure(name, distro, foreman_version) }
}
parallel parallelStagesMap
}
}
post {
always {
deleteDir()
}
}
}
stage('Install Test') {
agent any

Expand All @@ -39,9 +71,13 @@ pipeline {
}
}
}
stage('Push RPMs') {
stage('Push Koji RPMs') {
agent { label 'admin && sshkey' }

when {
expression { stage_source == 'koji' }
}

steps {
script {
for (release in foreman_el_releases) {
Expand All @@ -50,6 +86,23 @@ pipeline {
}
}
}

stage('Push Staging RPMs') {
agent { label 'admin && sshkey' }

when {
expression { stage_source == 'stagingyum' }
}

steps {
script {
foreman_el_releases.each { distro ->
push_foreman_staging_rpms('foreman', foreman_version, distro)
}
}
}
}

stage('Push DEBs') {
agent { label 'debian' }

Expand Down

0 comments on commit 7899111

Please sign in to comment.