metal3: parameterize image_os
[infra/cicd.git] / jjb / metal3 / job_keep_integration_vm_v1a5.yml
similarity index 92%
rename from jjb/metal3/job_keep_integration_vm_v1a5_centos.yml
rename to jjb/metal3/job_keep_integration_vm_v1a5.yml
index 2c4914d02199ed2027aed009144495027c8deda8..2405de73b1167c01c0cc24f889bd227cdad427ce 100644 (file)
@@ -26,9 +26,9 @@
 # pipeline job. The pipeline scripts are maintained in Metal3 CI project infra repository.
 
 - job-template:
-    id: keep_v1a5_test_centos_alive
-    name: '{job_prefix}_{name}_keep_v1a5_test_centos_alive'
-    description: "CAPM3 v1alpha5 integration tests for keeping the vm for {repo[org]}/{repo[name]} on CentOS."
+    id: keep_v1a5_test_alive
+    name: '{job_prefix}_{name}_keep_v1a5_test_{image_os}_alive'
+    description: "CAPM3 v1alpha5 integration tests for keeping the vm 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)?/keep-test-v1a5-centos-integration(\s(.|\n)*)?'
+        trigger-phrase: '((.|\n)*\s)?/keep-test-v1a5-{image_os}-integration(\s(.|\n)*)?'
         skip-build-phrase: '/skip-test'
         only-trigger-phrase: True
         github-hooks: True
           - 'main'
           - 'release-0.5'
           - 'release-0.1'
-        status-context: "keep-test-v1a5-centos-integration"
+        status-context: "keep-test-v1a5-{image_os}-integration"
         success-status: "Passed"
         failure-status: "Failed"
         error-status: "Error"