metal3: parameterize image_os
[infra/cicd.git] / jjb / metal3 / job_capm3_v1b1_integration_tests.yml
similarity index 92%
rename from jjb/metal3/job_capm3_v1b1_integration_tests_centos.yml
rename to jjb/metal3/job_capm3_v1b1_integration_tests.yml
index 3369f68a47b9755f006d7b6cb54cc5e5e65bd3a1..26ef8aef0045288fb4f362087ab31e472f0c9838 100644 (file)
@@ -25,9 +25,9 @@
 # pipeline job. The pipeline scripts are maintained in Metal3 CI project infra repository.
 
 - job-template:
-    id: capm3_v1b1_integration_tests_centos
-    name: '{job_prefix}_{name}_v1b1_integration_test_centos'
-    description: "CAPM3 v1beta1 integration tests for {repo[org]}/{repo[name]} on CentOS."
+    id: capm3_v1b1_integration_tests
+    name: '{job_prefix}_{name}_v1b1_integration_test_{image_os}'
+    description: "CAPM3 v1beta1 integration 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
@@ -86,7 +86,7 @@
         org-list: "{ci_github_whitelist_org}"
         cron: 'H/5 * * * *'
         auth-id: "{ci_ghprb_auth_id}"
-        trigger-phrase: '((.|\n)*\s)?/test-v1b1-centos-integration(\s(.|\n)*)?'
+        trigger-phrase: '((.|\n)*\s)?/test-v1b1-{image_os}-integration(\s(.|\n)*)?'
         skip-build-phrase: '/skip-test'
         only-trigger-phrase: True
         github-hooks: True
@@ -96,7 +96,7 @@
         white-list-target-branches:
           - 'master'
           - 'main'
-        status-context: "test-v1b1-centos-integration"
+        status-context: "test-v1b1-{image_os}-integration"
         success-status: "Passed"
         failure-status: "Failed"
         error-status: "Error"