-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
118 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
theforeman.org/pipelines/release/pipelines/candlepin.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
pipeline { | ||
agent { label 'el8' } | ||
|
||
options { | ||
timestamps() | ||
timeout(time: 2, unit: 'HOURS') | ||
disableConcurrentBuilds() | ||
ansiColor('xterm') | ||
} | ||
|
||
stages { | ||
stage('staging-build-repository') { | ||
when { | ||
expression { candlepin_version == 'nightly' } | ||
} | ||
steps { | ||
git url: "https://github.com/theforeman/theforeman-rel-eng", poll: false | ||
|
||
script { | ||
candlepin_distros.each { distro -> | ||
sh "./build_stage_repository candlepin ${candlepin_version} ${distro}" | ||
} | ||
} | ||
} | ||
} | ||
stage('staging-copy-repository') { | ||
when { | ||
expression { candlepin_version == 'nightly' } | ||
} | ||
steps { | ||
script { | ||
dir('tmp') { | ||
rsync_to_yum_stage('candlepin', 'candlepin', candlepin_version) | ||
} | ||
} | ||
} | ||
} | ||
stage('staging-repoclosure') { | ||
steps { | ||
script { | ||
parallel repoclosures('candlepin', candlepin_distros, candlepin_version) | ||
} | ||
} | ||
post { | ||
always { | ||
deleteDir() | ||
} | ||
} | ||
} | ||
stage('staging-push-rpms') { | ||
agent { label 'admin && sshkey' } | ||
|
||
steps { | ||
script { | ||
candlepin_distros.each { distro -> | ||
push_foreman_staging_rpms('candlepin', candlepin_version, distro) | ||
} | ||
} | ||
} | ||
} | ||
} | ||
post { | ||
failure { | ||
notifyDiscourse(env, "Candlepin ${candlepin_version} RPM pipeline failed:", currentBuild.description) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
def candlepin_version = '4.3' | ||
def candlepin_distros = ['el8'] | ||
def packaging_branch = 'rpm/4.3' | ||
def pipelines = [ | ||
'candlepin': [ | ||
'centos8-stream' | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
def candlepin_version = 'nightly' | ||
def candlepin_distros = ['el8'] | ||
def packaging_branch = 'rpm/develop' | ||
def pipelines = [ | ||
'candlepin': [ | ||
'centos8-stream' | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- 'nightly' | ||
- '4.3' |
24 changes: 24 additions & 0 deletions
24
theforeman.org/yaml/jobs/pipeline/candlepin-release-pipelines.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
- job-template: | ||
name: 'candlepin-{version}-rpm-pipeline' | ||
project-type: pipeline | ||
sandbox: true | ||
triggers: | ||
- timed: 'H 21 * * *' | ||
dsl: | ||
!include-raw: | ||
- 'pipelines/vars/candlepin/{version}.groovy' | ||
- 'pipelines/release/pipelines/candlepin.groovy{empty}' | ||
- 'pipelines/lib/rvm.groovy{empty}' | ||
- 'pipelines/lib/ansible.groovy{empty}' | ||
- 'pipelines/lib/obal.groovy{empty}' | ||
- 'pipelines/lib/packaging.groovy{empty}' | ||
- 'pipelines/lib/release.groovy{empty}' | ||
- 'pipelines/lib/foreman_infra.groovy{empty}' | ||
|
||
- project: | ||
name: candlepin | ||
jobs: | ||
- 'candlepin-{version}-rpm-pipeline' | ||
empty: '' | ||
version: | ||
!include: ../../includes/candlepin_versions.yaml.inc |