-
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.
Refactor foreman-packaging-*-release jobs for reuse
This introduces a completely reusable foreman-packaging-{packaging_label}-{version}-release job template. Then it instantiates the various versions of it. The design is currently that it creates both koji and copr for nightly, but only a single rpm instance for releases. The branch-foreman script is modified to do the right thing.
- Loading branch information
Showing
6 changed files
with
85 additions
and
100 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
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 @@ | ||
- '3.7' | ||
- '3.8' |
36 changes: 0 additions & 36 deletions
36
theforeman.org/yaml/jobs/release/foreman-packaging-deb-release.yaml
This file was deleted.
Oops, something went wrong.
80 changes: 80 additions & 0 deletions
80
theforeman.org/yaml/jobs/release/foreman-packaging-release.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,80 @@ | ||
--- | ||
- job-template: | ||
name: 'foreman-packaging-{packaging_label}-{version}-release' | ||
project-type: pipeline | ||
sandbox: true | ||
concurrent: false | ||
properties: | ||
- github: | ||
url: https://github.com/theforeman/foreman-packaging | ||
triggers: | ||
- github | ||
dsl: | ||
!include-raw: | ||
- 'pipelines/vars/foreman/{version}.groovy' | ||
- 'pipelines/release/foreman_packaging_{packaging_type}_release.groovy{empty}' | ||
- 'pipelines/lib/git.groovy{empty}' | ||
- 'pipelines/lib/ansible.groovy{empty}' | ||
- 'pipelines/lib/obal.groovy{empty}' | ||
- 'pipelines/lib/packaging.groovy{empty}' | ||
- 'pipelines/lib/foreman_infra.groovy{empty}' | ||
|
||
- project: | ||
name: foreman-packaging-deb | ||
jobs: | ||
- 'foreman-packaging-{packaging_label}-{version}-release' | ||
empty: '' | ||
packaging_label: deb | ||
packaging_type: deb | ||
version: | ||
!include: ../../includes/foreman_versions.yaml.inc | ||
|
||
- project: | ||
name: foreman-packaging-rpm-koji-release | ||
jobs: | ||
- 'foreman-packaging-{packaging_label}-{version}-release' | ||
empty: '' | ||
packaging_label: rpm | ||
packaging_type: rpm | ||
version: | ||
!include: ../../includes/foreman_versions_koji.yaml.inc | ||
|
||
- project: | ||
name: foreman-packaging-rpm-copr-release | ||
jobs: | ||
- 'foreman-packaging-{packaging_label}-{version}-release' | ||
empty: '' | ||
packaging_label: rpm | ||
packaging_type: rpm_copr | ||
version: | ||
!include: ../../includes/foreman_versions_copr.yaml.inc | ||
|
||
- project: | ||
name: foreman-packaging-deb-nightly | ||
jobs: | ||
- 'foreman-packaging-{packaging_label}-{version}-release' | ||
empty: '' | ||
packaging_label: deb | ||
packaging_type: deb | ||
version: | ||
- 'nightly' | ||
|
||
- project: | ||
name: foreman-packaging-rpm-nightly | ||
jobs: | ||
- 'foreman-packaging-{packaging_label}-{version}-release' | ||
empty: '' | ||
packaging_label: rpm | ||
packaging_type: rpm | ||
version: | ||
- 'nightly' | ||
|
||
- project: | ||
name: foreman-packaging-nightly-copr | ||
jobs: | ||
- 'foreman-packaging-{packaging_label}-{version}-release' | ||
empty: '' | ||
packaging_label: rpm-copr | ||
packaging_type: rpm_copr | ||
version: | ||
- 'nightly' |
64 changes: 0 additions & 64 deletions
64
theforeman.org/yaml/jobs/release/foreman-packaging-rpm-release.yaml
This file was deleted.
Oops, something went wrong.