Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

limit PR tests to 3.9/4.11, newer releases can use GHA #443

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 11 additions & 18 deletions branch-foreman
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,19 @@ echo "Create theforeman.org/yaml/jobs/test_${FOREMAN_VERSION/./_}_stable.yaml"
echo "Add ${FOREMAN_VERSION%*.} as a minor to theforeman.org/yaml/views/release.yml"

# TODO The sed line was too complex
echo "Add the following to the foreman_integration_versions section in theforeman.org/pipelines/test/foreman/vars.groovy"
echo "Update .github/workflows/foreman.yml in foreman.git and set plugin_version for Katello like this:"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this branch script should be limited to just this repository.

cat <<EOF
'${FOREMAN_VERSION}-stable': [
'ruby': ['2.7'],
'katello': 'KATELLO-${KATELLO_VERSION}'
],
uses: theforeman/actions/.github/workflows/foreman_plugin.yml@v0
with:
plugin: katello
plugin_repository: Katello/katello
plugin_version: KATELLO-${KATELLO_VERSION}
EOF

echo "Add the following to the foreman_unit_versions section in theforeman.org/pipelines/test/foreman/vars.groovy"
echo "Update .github/workflows/ruby.yml in katello.git and set foreman_version like this"
cat <<EOF
'${FOREMAN_VERSION}-stable': [
'ruby': ['2.7'],
'katello': 'KATELLO-${KATELLO_VERSION}'
],
EOF

echo "Add the following to theforeman.org/pipelines/test/testKatello.groovy"
cat <<EOF
'KATELLO-${KATELLO_VERSION}': [
'foreman': '${FOREMAN_VERSION}-stable',
'ruby': ['2.7']
],
uses: theforeman/actions/.github/workflows/foreman_plugin.yml@v0
with:
plugin: katello
foreman_version: ${FOREMAN_VERSION}-stable
EOF
3 changes: 3 additions & 0 deletions theforeman.org/yaml/triggers/github_pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,6 @@
- github-pull-request:
<<: *ghprb_defaults
status-url: https://ci.theforeman.org/blue/organizations/jenkins/$JOB_NAME/detail/$JOB_NAME/$BUILD_ID/pipeline
white-list-target-branches:
- KATELLO-4.11
- 3.9-stable