metal3: parameterize image_os
[infra/cicd.git] / jjb / metal3 / job_metal3_dev_tools_integration_test.yml
similarity index 93%
rename from jjb/metal3/job_metal3_dev_tools_integration_test_centos.yml
rename to jjb/metal3/job_metal3_dev_tools_integration_test.yml
index 84db9cc2ce68db95418571140f548b31b2ea49a6..9e19186deb250b8dbdf9d04a4a9a2923e284dac7 100644 (file)
@@ -26,9 +26,9 @@
 # pipeline job. The pipeline scripts are maintained in Nordix/metal3-dev-tools repository.
 
 - job-template:
-    id: metal3_dev_tools_integration_test_centos
-    name: 'metal3_dev_tools_integration_test_centos'
-    description: "CAPM3 v1beta1 metal3-dev-tools integration tests for {repo[org]}/{repo[name]} on CentOS."
+    id: metal3_dev_tools_integration_test
+    name: 'metal3_dev_tools_integration_test_{image_os}'
+    description: "CAPM3 v1beta1 metal3-dev-tools integration tests for {repo[org]}/{repo[name]} on {image_os}."
     project-type: pipeline
     defaults: global
     disabled: False
@@ -56,7 +56,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
@@ -91,7 +91,7 @@
         org-list: "{ci_github_whitelist_org}"
         cron: 'H/5 * * * *'
         auth-id: "{ci_ghprb_auth_id}"
-        trigger-phrase: '((.|\n)*\s)?/test-integration-metal3-dev-tools-centos(\s(.|\n)*)?'
+        trigger-phrase: '((.|\n)*\s)?/test-integration-metal3-dev-tools-{image_os}(\s(.|\n)*)?'
         skip-build-phrase: '/skip-test'
         only-trigger-phrase: True
         github-hooks: True
         white-list-target-branches:
           - 'master'
           - 'main'
-        status-context: "test-integration-metal3-dev-tools-centos"
+        status-context: "test-integration-metal3-dev-tools-{image_os}"
         success-status: "Passed"
         failure-status: "Failed"
         error-status: "Error"