metal3: parameterize image_os
[infra/cicd.git] / jjb / metal3 / job_capm3_v1a5_e2e_tests.yml
similarity index 93%
rename from jjb/metal3/job_capm3_v1a5_e2e_tests_centos.yml
rename to jjb/metal3/job_capm3_v1a5_e2e_tests.yml
index f9908ee4b35837d3b9d44d4618340564bc95824d..57ad7502b82d802702ea27e76a71eda3d4df03c0 100644 (file)
@@ -25,9 +25,9 @@
 # pipeline job. The pipeline scripts are maintained in Metal3 CI project infra repository.
 
 - job-template:
-    id: capm3_v1a5_e2e_tests_centos
-    name: '{job_prefix}_{name}_v1a5_e2e_test_centos'
-    description: "CAPM3 v1alpha5 e2e tests for {repo[org]}/{repo[name]} on CentOS."
+    id: capm3_v1a5_e2e_tests
+    name: '{job_prefix}_{name}_v1a5_e2e_test_{image_os}'
+    description: "CAPM3 v1alpha5 e2e tests for {repo[org]}/{repo[name]} 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
@@ -90,7 +90,7 @@
         org-list: "{ci_github_whitelist_org}"
         cron: 'H/5 * * * *'
         auth-id: "{ci_ghprb_auth_id}"
-        trigger-phrase: '((.|\n)*\s)?/test-v1a5-centos-e2e(\s(.|\n)*)?'
+        trigger-phrase: '((.|\n)*\s)?/test-v1a5-{image_os}-e2e(\s(.|\n)*)?'
         skip-build-phrase: '/skip-test'
         only-trigger-phrase: True
         github-hooks: True
           - 'master'
           - 'main'
           - 'release-0.5'
-        status-context: "test-v1a5-centos-e2e"
+        status-context: "test-v1a5-{image_os}-e2e"
         success-status: "Passed"
         failure-status: "Failed"
         error-status: "Error"