Skip to content

Commit

Permalink
Reuse version inclusion in defining the stable views
Browse files Browse the repository at this point in the history
This removes the last manual action on branching. This is now possible
because every version is included verbatim instead of sometimes having
an underscore in it.
  • Loading branch information
ekohl committed Jan 7, 2025
1 parent f6543e3 commit 00b580e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 17 deletions.
3 changes: 0 additions & 3 deletions branch-foreman
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,3 @@ echo "- '${FOREMAN_VERSION}'" >> theforeman.org/yaml/includes/foreman_versions.y
echo "- '${FOREMAN_VERSION}'" >> theforeman.org/yaml/includes/foreman_versions_copr.yaml.inc

echo " - '${KATELLO_VERSION}'" >> theforeman.org/yaml/jobs/pipeline/katello-rpm-pipeline.yaml

# TODO This is a non-trivial addition to script
echo "Add ${FOREMAN_VERSION%*.} as a minor to theforeman.org/yaml/views/release.yml"
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
jobs:
- 'foreman-{version}-stable-test'
- 'smart-proxy-{version}-stable-test'
views:
- 'Foreman {version}'
empty: ''
version:
!include: ../../includes/foreman_versions.yaml.inc
17 changes: 3 additions & 14 deletions theforeman.org/yaml/views/release.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
- view-template:
name: 'Foreman {major}.{minor}'
description: 'Foreman {major}.{minor} jobs'
name: 'Foreman {version}'
description: 'Foreman {version} jobs'
view-type: list
regex: '.*{major}[_\.]{minor}.*'

- project:
name: 'foreman-releases'
views:
- 'Foreman {major}.{minor}'
major:
- '3'
minor:
- '11'
- '12'
- '13'
regex: '.*-{version}-.*'

- view:
name: 'Foreman Nightly'
Expand Down

0 comments on commit 00b580e

Please sign in to comment.