Parameterize DISTRIBUTION and merge job templates
This is an attempt to merge job templates for v1a4_integration_tests so
that instead of having one template for ubuntu and one for centos, we
have a single template and use the distribution variable to render two
separate jobs (for ubuntu and centos respectively).
Change-Id: I0d9563f1f2d545f5aa32f1a9418df63314fa0b4a
diff --git a/jjb/metal3/projects.yml b/jjb/metal3/projects.yml
index ef6530e..50e3a13 100644
--- a/jjb/metal3/projects.yml
+++ b/jjb/metal3/projects.yml
@@ -58,8 +58,10 @@
name: "project-infra"
ci_github_repo: '${{ghprbAuthorRepoGitUrl}}'
jobs:
- - capm3_v1a4_integration_tests_centos
- - capm3_v1a4_integration_tests_ubuntu
+ - capm3_v1a4_integration_tests:
+ distribution:
+ - ubuntu
+ - centos
- capm3_v1a5_integration_tests_centos
- capm3_v1a5_integration_tests_ubuntu
- capm3_v1b1_integration_tests_centos
@@ -88,8 +90,10 @@
org: "metal3-io"
name: "baremetal-operator"
jobs:
- - capm3_v1a4_integration_tests_centos
- - capm3_v1a4_integration_tests_ubuntu
+ - capm3_v1a4_integration_tests:
+ distribution:
+ - ubuntu
+ - centos
- capm3_v1a5_integration_tests_centos
- capm3_v1a5_integration_tests_ubuntu
- capm3_v1b1_integration_tests_centos
@@ -106,8 +110,10 @@
org: "metal3-io"
name: "ip-address-manager"
jobs:
- - capm3_v1a4_integration_tests_centos
- - capm3_v1a4_integration_tests_ubuntu
+ - capm3_v1a4_integration_tests:
+ distribution:
+ - ubuntu
+ - centos
- capm3_v1a5_integration_tests_centos
- capm3_v1a5_integration_tests_ubuntu
- capm3_v1b1_integration_tests_centos
@@ -120,8 +126,10 @@
- project:
name: "metal3_dev_env"
jobs:
- - capm3_v1a4_integration_tests_centos
- - capm3_v1a4_integration_tests_ubuntu
+ - capm3_v1a4_integration_tests:
+ distribution:
+ - ubuntu
+ - centos
- capm3_v1a4_main_integration_tests_centos
- capm3_v1a4_main_integration_tests_ubuntu
- capm3_v1a5_integration_tests_centos
@@ -155,8 +163,10 @@
org: "metal3-io"
name: "cluster-api-provider-metal3"
jobs:
- - capm3_v1a4_integration_tests_centos
- - capm3_v1a4_integration_tests_ubuntu
+ - capm3_v1a4_integration_tests:
+ distribution:
+ - ubuntu
+ - centos
- capm3_v1a5_integration_tests_centos
- capm3_v1a5_integration_tests_ubuntu
- capm3_v1a5_e2e_tests_ubuntu
@@ -182,8 +192,10 @@
org: "metal3-io"
name: "ironic-image"
jobs:
- - capm3_v1a4_integration_tests_centos
- - capm3_v1a4_integration_tests_ubuntu
+ - capm3_v1a4_integration_tests:
+ distribution:
+ - ubuntu
+ - centos
- capm3_v1a5_integration_tests_centos
- capm3_v1a5_integration_tests_ubuntu
- capm3_v1b1_integration_tests_centos
@@ -199,7 +211,8 @@
org: "metal3-io"
name: "ironic-ipa-downloader"
jobs:
- - capm3_v1a4_integration_tests_ubuntu
+ - capm3_v1a4_integration_tests:
+ distribution: ubuntu
- capm3_v1a5_integration_tests_ubuntu
- capm3_v1b1_integration_tests_centos
- capm3_v1b1_integration_tests_ubuntu