metal3: parameterize image_os
[infra/cicd.git] / jjb / metal3 / job_keep_integration_vm_v1b1.yml
similarity index 92%
rename from jjb/metal3/job_keep_integration_vm_v1b1_centos.yml
rename to jjb/metal3/job_keep_integration_vm_v1b1.yml
index a2ad7ec73866bf4907aa93f2f14f794ab7f8f529..791dbfc406b1e075dbb928b1d8c06656707fcdf1 100644 (file)
@@ -26,9 +26,9 @@
 # pipeline job. The pipeline scripts are maintained in Metal3 CI project infra repository.
 
 - job-template:
-    id: keep_v1b1_test_centos_alive
-    name: '{job_prefix}_{name}_keep_v1b1_test_centos_alive'
-    description: "CAPM3 v1beta1 integration tests for keeping the vm for {repo[org]}/{repo[name]} on CentOS."
+    id: keep_v1b1_test_alive
+    name: '{job_prefix}_{name}_keep_v1b1_test_{image_os}_alive'
+    description: "CAPM3 v1beta1 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-v1b1-centos-integration(\s(.|\n)*)?'
+        trigger-phrase: '((.|\n)*\s)?/keep-test-v1b1-{image_os}-integration(\s(.|\n)*)?'
         skip-build-phrase: '/skip-test'
         only-trigger-phrase: True
         github-hooks: True
         white-list-target-branches:
           - 'master'
           - 'main'
-        status-context: "keep-test-v1b1-centos-integration"
+        status-context: "keep-test-v1b1-{image_os}-integration"
         success-status: "Passed"
         failure-status: "Failed"
         error-status: "Error"