Skip to content

Commit

Permalink
Drop koji related code
Browse files Browse the repository at this point in the history
  • Loading branch information
ekohl committed Mar 22, 2024
1 parent c350b82 commit 13a8f8d
Show file tree
Hide file tree
Showing 29 changed files with 2 additions and 429 deletions.
18 changes: 0 additions & 18 deletions theforeman.org/pipelines/lib/koji.groovy

This file was deleted.

6 changes: 0 additions & 6 deletions theforeman.org/pipelines/lib/release.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ void push_katello_rpms(version, distro) {
push_rpms_direct("katello-${version}/candlepin/${distro}", "katello/${version}/candlepin/${distro}", !keep_old, keep_old)
}

void mash(collection, version) {
sshagent(['mash']) {
sh "ssh -o 'BatchMode yes' [email protected] collection-mash-split.py ${collection} ${version}"
}
}

void push_staging_rpms(repo_src, repo_dest, version, distro, keep_old_files = false) {
if (repo_dest == 'foreman') {
destination = "releases/${version}/${distro}"
Expand Down
51 changes: 0 additions & 51 deletions theforeman.org/pipelines/release/pipelines/client.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -9,59 +9,8 @@ pipeline {
}

stages {
stage('koji') {
when {
expression { stage_source == 'koji' }
}
stages {
stage('koji-mash-repositories') {
agent { label 'sshkey' }

steps {
mash('foreman-client', foreman_version)
}
}
stage('koji-repoclosure') {
agent { label 'el' }

steps {
script {
def parallelStagesMap = [:]
def name = 'foreman-client'
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
}
}
post {
always {
deleteDir()
}
}
}
stage('koji-push-rpms') {
agent { label 'sshkey' }

steps {
script {
foreman_client_distros.each { distro ->
push_foreman_rpms('client', foreman_version, distro)
}
}
}
}
}
}
stage('staging') {
agent { label 'el8' }
when {
expression { stage_source == 'stagingyum' }
}
stages {
stage('staging-build-repository') {
when {
Expand Down
53 changes: 0 additions & 53 deletions theforeman.org/pipelines/release/pipelines/foreman-pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -9,43 +9,9 @@ pipeline {
}

stages {
stage('Mash Koji Repositories') {
agent { label 'sshkey' }

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

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

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

steps {
script {
parallel repoclosures('foreman', foreman_el_releases, foreman_version)
}
}
post {
always {
deleteDir()
}
}
}

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

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

steps {
script {
parallel repoclosures('foreman-staging', foreman_el_releases, foreman_version)
Expand All @@ -66,29 +32,10 @@ pipeline {
}
}
}
stage('Push Koji RPMs') {
agent { label 'sshkey' }

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

steps {
script {
for (release in foreman_el_releases) {
push_rpms_direct("foreman-${foreman_version}/${release}", "releases/${foreman_version}/${release}", false, true)
}
}
}
}

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

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

steps {
script {
foreman_el_releases.each { distro ->
Expand Down
50 changes: 0 additions & 50 deletions theforeman.org/pipelines/release/pipelines/foreman-rpm.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -9,58 +9,8 @@ pipeline {
}

stages {
stage('koji') {
when {
expression { stage_source == 'koji' }
}
stages {
stage('koji-mash-repositories') {
agent { label 'sshkey' }

steps {
mash('foreman', 'nightly')
}
}
stage('koji-repoclosure') {
agent { label 'el' }

steps {
script {
parallel repoclosures('foreman', foreman_el_releases, foreman_version)
}
}
post {
always {
deleteDir()
}
}
}
stage('koji-install-test') {
agent any

steps {
script {
runDuffyPipeline('foreman-rpm', foreman_version)
}
}
}
stage('koji-push-rpms') {
agent { label 'sshkey' }
steps {
script {
for (release in foreman_el_releases) {
push_rpms_direct("foreman-${foreman_version}/${release}", "${foreman_version}/${release}")
}
}
}
}
}
}
stage('staging') {
agent { label 'el8' }
when {
expression { stage_source == 'stagingyum' }
}
stages {
stage('staging-build-repository') {
when {
Expand Down
51 changes: 0 additions & 51 deletions theforeman.org/pipelines/release/pipelines/katello.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -9,59 +9,8 @@ pipeline {
}

stages {
stage('koji') {
when {
expression { stage_source == 'koji' }
}
stages {
stage('koji-mash-repositories') {
agent { label 'sshkey' }

steps {
mash("katello", katello_version)
}
}
stage('koji-repoclosure') {
agent { label 'el' }

steps {
script {
parallel repoclosures('katello', foreman_el_releases, foreman_version)
}
}
post {
always {
deleteDir()
}
}
}
stage('koji-install-test') {
agent any

steps {
script {
runDuffyPipeline('katello-rpm', katello_version)
}
}
}
stage('koji-push-rpms') {
agent { label 'sshkey' }

steps {
script {
foreman_el_releases.each { distro ->
push_katello_rpms(katello_version, distro)
}
}
}
}
}
}
stage('staging') {
agent { label 'el8' }
when {
expression { stage_source == 'stagingyum' }
}
stages {
stage('staging-build-repository') {
when {
Expand Down
44 changes: 0 additions & 44 deletions theforeman.org/pipelines/release/pipelines/plugins.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -9,52 +9,8 @@ pipeline {
}

stages {
stage('koji') {
when {
expression { stage_source == 'koji' }
}
stages {
stage('koji-mash-repositories') {
agent { label 'sshkey' }

steps {
mash('foreman-plugins', foreman_version)
}
}
stage('koji-repoclosure') {
agent { label 'el' }

steps {
script {
parallel repoclosures('plugins', foreman_el_releases, foreman_version)
}
}
post {
always {
deleteDir()
}
}
}
stage('koji-push-rpms') {
agent { label 'sshkey' }

steps {
script {
def overwrite = foreman_version == 'nightly'
def merge = foreman_version != 'nightly'
for (release in foreman_el_releases) {
push_rpms_direct("foreman-plugins-${foreman_version}/${release}", "plugins/${foreman_version}/${release}", overwrite, merge)
}
}
}
}
}
}
stage('staging') {
agent { label 'el8' }
when {
expression { stage_source == 'stagingyum' }
}
stages {
stage('staging-build-repository') {
steps {
Expand Down
Loading

0 comments on commit 13a8f8d

Please sign in to comment.