metal3: Parameterize version and reorganize projects
[infra/cicd.git] / jjb / metal3 / job_feature_tests_upgrade.yml
similarity index 92%
rename from jjb/metal3/job_feature_tests_upgrade_ubuntu.yml
rename to jjb/metal3/job_feature_tests_upgrade.yml
index ef751b019acef183cfeb2dff6e853b4622458f24..fb44f5b2f3e675dff3009a5573b3117c2a10d274 100644 (file)
@@ -26,9 +26,9 @@
 # pipeline job. The pipeline scripts are maintained in Metal3 CI project infra repository.
 
 - job-template:
-    id: feature_tests_upgrade_ubuntu
-    name: '{job_prefix}_{name}_feature_tests_upgrade_ubuntu'
-    description: "Upgrade tests on Ubuntu."
+    id: feature_tests_upgrade
+    name: '{job_prefix}_{proj}_feature_tests_upgrade_{image_os}'
+    description: "Upgrade tests on {image_os}."
     project-type: pipeline
     defaults: global
     disabled: False
     parameters:
     - string:
         name: PROJECT_REPO_ORG
-        default: '{repo[org]}'
+        default: '{org}'
         description: 'Project github repo org name'
     - string:
         name: PROJECT_REPO_NAME
-        default: '{repo[name]}'
+        default: '{repo}'
         description: 'Project github repo name'
     - string:
         name: ghprbActualCommit
@@ -48,7 +48,7 @@
         description: 'CI Repo branch for triggering manual build'
     - string:
         name: ghprbAuthorRepoGitUrl
-        default: 'https://github.com/{repo[org]}/{repo[name]}.git'
+        default: 'https://github.com/{org}/{repo}.git'
         description: 'CI Repo URL for triggering manual build'
     - string:
         name: ghprbTargetBranch
@@ -56,7 +56,7 @@
         description: 'Target branch of the PR'
     - string:
         name: IMAGE_OS
-        default: 'ubuntu'
+        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
@@ -92,7 +92,7 @@
         artifact-days-to-keep: -1
         artifact-num-to-keep: -1
     - github:
-        url: https://github.com/{repo[org]}/{repo[name]}
+        url: https://github.com/{org}/{repo}
 
     triggers:
     - github-pull-request: