metal3: parameterize image_os
[infra/cicd.git] / jjb / metal3 / job_feature_tests.yml
similarity index 92%
rename from jjb/metal3/job_feature_tests_centos.yml
rename to jjb/metal3/job_feature_tests.yml
index d7d8989af33e0ae71bca2bbe8e8b49e927584a34..a51f5f51ef1b760ce16d930cad98cb51e83bb9e6 100644 (file)
@@ -25,9 +25,9 @@
 # pipeline job. The pipeline scripts are maintained in Metal3 CI project infra repository.
 
 - job-template:
-    id: feature_tests_centos
-    name: '{job_prefix}_{name}_feature_tests_centos'
-    description: "Inspection, remediation, pivoting, node reuse and repivoting feature tests on Centos."
+    id: feature_tests
+    name: '{job_prefix}_{name}_feature_tests_{image_os}'
+    description: "Inspection, remediation, pivoting, node reuse and repivoting feature tests on {image_os}."
     project-type: pipeline
     defaults: global
     disabled: False
@@ -55,7 +55,7 @@
         description: 'Target branch of the PR'
     - string:
         name: IMAGE_OS
-        default: 'centos'
+        default: '{image_os}'
         description: 'Distribution to use for the target host as well as source and target cluster. Can be ubuntu or centos'
     - string:
         name: CAPI_VERSION
@@ -75,7 +75,7 @@
         description: 'Number of libvirt VMs.'
     - string:
         name: TESTS_FOR
-        default: "feature_tests_centos"
+        default: "feature_tests_{image_os}"
         description: 'Tests for pivoting and remediation.'
 
     properties:
@@ -94,7 +94,7 @@
         org-list: "{ci_github_whitelist_org}"
         cron: 'H/5 * * * *'
         auth-id: "{ci_ghprb_auth_id}"
-        trigger-phrase: '((.|\n)*\s)?/test-features-centos(\s(.|\n)*)?'
+        trigger-phrase: '((.|\n)*\s)?/test-features-{image_os}(\s(.|\n)*)?'
         skip-build-phrase: '/skip-test'
         only-trigger-phrase: True
         github-hooks: True
           - 'main'
           - 'release-0.5'
           - 'release-0.1'
-        status-context: "test-features-centos"
+        status-context: "test-features-{image_os}"
         success-status: "Passed"
         failure-status: "Failed"
         error-status: "Error"