From bb98fc86c455f127c975af0ee5bfa12aa0c09983 Mon Sep 17 00:00:00 2001
From: Evgeni Golov <evgeni@golov.de>
Date: Wed, 29 Nov 2023 09:25:01 +0100
Subject: [PATCH] fix 3.9 jenkins job definitions

Fixes: 55c177cca3c740e7dae231b3fbcb7f51025f1e53
---
 centos.org/jobs/katello-pipelines.yml                     | 1 +
 theforeman.org/pipelines/test/foreman/vars.groovy         | 8 ++++----
 theforeman.org/pipelines/test/testKatello.groovy          | 4 ++--
 theforeman.org/pipelines/vars/foreman/3.9.groovy          | 5 ++---
 theforeman.org/pipelines/vars/katello/4.11.groovy         | 2 +-
 .../yaml/includes/foreman_versions_copr.yaml.inc          | 2 +-
 .../yaml/jobs/pipeline/katello-rpm-pipeline.yaml          | 1 +
 theforeman.org/yaml/views/release.yml                     | 1 +
 8 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/centos.org/jobs/katello-pipelines.yml b/centos.org/jobs/katello-pipelines.yml
index e5d323f3..b35f80cb 100644
--- a/centos.org/jobs/katello-pipelines.yml
+++ b/centos.org/jobs/katello-pipelines.yml
@@ -7,6 +7,7 @@
     version:
       - '4.9'
       - '4.10'
+      - '4.11'
       - 'nightly'
     type:
       - katello
diff --git a/theforeman.org/pipelines/test/foreman/vars.groovy b/theforeman.org/pipelines/test/foreman/vars.groovy
index eea5aa87..552a22bb 100644
--- a/theforeman.org/pipelines/test/foreman/vars.groovy
+++ b/theforeman.org/pipelines/test/foreman/vars.groovy
@@ -4,8 +4,8 @@ def foreman_integration_versions = [
         'katello': 'master'
     ],
     '3.9-stable': [
-	'ruby': ['2.7'],
-	'katello': 'KATELLO-4.11'
+        'ruby': ['2.7'],
+        'katello': 'KATELLO-4.11'
     ],
     '3.8-stable': [
         'ruby': ['2.7'],
@@ -46,8 +46,8 @@ def foreman_unit_versions = [
         'ruby': ['2.7']
     ],
     '3.9-stable': [
-	'ruby': ['2.7'],
-	'katello': 'KATELLO-4.11'
+        'ruby': ['2.7'],
+        'katello': 'KATELLO-4.11'
     ],
     '3.8-stable': [
         'ruby': ['2.7'],
diff --git a/theforeman.org/pipelines/test/testKatello.groovy b/theforeman.org/pipelines/test/testKatello.groovy
index 42dadaa6..4e27723f 100644
--- a/theforeman.org/pipelines/test/testKatello.groovy
+++ b/theforeman.org/pipelines/test/testKatello.groovy
@@ -4,8 +4,8 @@ def katello_versions = [
         'ruby': ['2.7']
     ],
     'KATELLO-4.11': [
-	'foreman': '3.9-stable',
-	'ruby': ['2.7']
+        'foreman': '3.9-stable',
+        'ruby': ['2.7']
     ],
     'KATELLO-4.10': [
         'foreman': '3.8-stable',
diff --git a/theforeman.org/pipelines/vars/foreman/3.9.groovy b/theforeman.org/pipelines/vars/foreman/3.9.groovy
index f08d8a8e..88619103 100644
--- a/theforeman.org/pipelines/vars/foreman/3.9.groovy
+++ b/theforeman.org/pipelines/vars/foreman/3.9.groovy
@@ -1,12 +1,11 @@
 def foreman_version = '3.9'
 def git_branch = "${foreman_version}-stable"
-def stage_source = 'copr'
+def stage_source = 'stagingyum'
 
 def foreman_client_distros = [
     'el9',
     'el8',
-    'el7',
-    'sles12'
+    'el7'
 ]
 def foreman_el_releases = [
     'el8'
diff --git a/theforeman.org/pipelines/vars/katello/4.11.groovy b/theforeman.org/pipelines/vars/katello/4.11.groovy
index b9d6f30b..fac73b0e 100644
--- a/theforeman.org/pipelines/vars/katello/4.11.groovy
+++ b/theforeman.org/pipelines/vars/katello/4.11.groovy
@@ -1,6 +1,6 @@
 def foreman_version = '3.9'
 def katello_version = '4.11'
-def stage_source = 'copr'
+def stage_source = 'stagingyum'
 def foreman_el_releases = [
     'el8'
 ]
diff --git a/theforeman.org/yaml/includes/foreman_versions_copr.yaml.inc b/theforeman.org/yaml/includes/foreman_versions_copr.yaml.inc
index fe51488c..befc68b3 100644
--- a/theforeman.org/yaml/includes/foreman_versions_copr.yaml.inc
+++ b/theforeman.org/yaml/includes/foreman_versions_copr.yaml.inc
@@ -1 +1 @@
-[]
+- '3.9'
diff --git a/theforeman.org/yaml/jobs/pipeline/katello-rpm-pipeline.yaml b/theforeman.org/yaml/jobs/pipeline/katello-rpm-pipeline.yaml
index 0998c60b..384086bb 100644
--- a/theforeman.org/yaml/jobs/pipeline/katello-rpm-pipeline.yaml
+++ b/theforeman.org/yaml/jobs/pipeline/katello-rpm-pipeline.yaml
@@ -20,3 +20,4 @@
     version:
       - '4.9'
       - '4.10'
+      - '4.11'
diff --git a/theforeman.org/yaml/views/release.yml b/theforeman.org/yaml/views/release.yml
index c4c7b758..93179691 100644
--- a/theforeman.org/yaml/views/release.yml
+++ b/theforeman.org/yaml/views/release.yml
@@ -13,6 +13,7 @@
     minor:
         - '7'
         - '8'
+        - '9'
 
 - view:
     name: 'Foreman Nightly'