From 78991115584ce75dcb28b2abcc7afc49949d2ede Mon Sep 17 00:00:00 2001 From: Evgeni Golov Date: Fri, 1 Dec 2023 08:18:47 +0100 Subject: [PATCH] also use stagingyum in stable pipes --- .../release/pipelines/foreman-pipeline.groovy | 57 ++++++++++++++++++- 1 file changed, 55 insertions(+), 2 deletions(-) diff --git a/theforeman.org/pipelines/release/pipelines/foreman-pipeline.groovy b/theforeman.org/pipelines/release/pipelines/foreman-pipeline.groovy index 9bc77dd1..648d7ac4 100644 --- a/theforeman.org/pipelines/release/pipelines/foreman-pipeline.groovy +++ b/theforeman.org/pipelines/release/pipelines/foreman-pipeline.groovy @@ -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) @@ -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 @@ -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) { @@ -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' }