Add e2e tests trigger to project-infra 31/13531/2
authormboukhalfa <mohammed.boukhalfa@est.tech>
Tue, 3 May 2022 14:09:25 +0000 (17:09 +0300)
committermboukhalfa <mohammed.boukhalfa@est.tech>
Tue, 3 May 2022 15:01:22 +0000 (18:01 +0300)
Change-Id: I411ad3a3815a515ff245f5b63b0e043c8c2083b6

jjb/metal3/job_capm3_e2e_tests.yml
jjb/metal3/job_capm3_e2e_upgrade_tests.yml
jjb/metal3/job_keep_capm3_e2e_tests.yml
jjb/metal3/projects.yml

index d5eb963a0ab86b98c9ebf29b06336377ff4d740d..bcc55421eaafdb57184e087ac63fe8a4b5caffa2 100644 (file)
@@ -26,8 +26,8 @@
 
 - job-template:
     id: capm3_e2e_tests
-    name: '{job_prefix}_{name}_{version}_e2e_test_{image_os}'
-    description: "CAPM3 {capm3_version} e2e tests for {repo[org]}/{repo[name]} on {image_os}."
+    name: '{job_prefix}_{proj}_{version}_e2e_test_{image_os}'
+    description: "CAPM3 {capm3_version} e2e tests for {org}/{repo} 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
@@ -47,7 +47,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
@@ -81,7 +81,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:
index 2014a479f6298bc5c31959a2d2a4d22ea8df14cb..188dd0713781c3d115a366f5019c7c86a2bc347f 100644 (file)
@@ -26,8 +26,8 @@
 
 - job-template:
     id: capm3_e2e_upgrade_tests
-    name: '{job_prefix}_{name}_v1b1_e2e_upgrade_test_{image_os}'
-    description: "CAPM3 e2e upgrade tests for {repo[org]}/{repo[name]} on {image_os}."
+    name: '{job_prefix}_{proj}_v1b1_e2e_upgrade_test_{image_os}'
+    description: "CAPM3 e2e upgrade tests for {org}/{repo} 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
@@ -47,7 +47,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
@@ -85,7 +85,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:
index 185f8d9387ad9a542759dc208551fcc9304c203d..4f01ed433d28cb9618213426d7052affd423767a 100644 (file)
@@ -26,8 +26,8 @@
 
 - job-template:
     id: keep_capm3_e2e_tests
-    name: '{job_prefix}_keep_{name}_{version}_e2e_test_{image_os}'
-    description: "CAPM3 {capm3_version} e2e tests for {repo[org]}/{repo[name]} on {image_os}."
+    name: '{job_prefix}_keep_{proj}_{version}_e2e_test_{image_os}'
+    description: "CAPM3 {capm3_version} e2e tests for {org}/{repo} 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
@@ -47,7 +47,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
@@ -85,7 +85,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:
index 12c339f8f4d4c94f2e55516ae9d11cc45ba16133..4b9632167adb8ad0b6118dd7d8db205da24f6a26 100644 (file)
 
 - project:
     name: "capm3"
-    repo:
-      org: "metal3-io"
-      name: "cluster-api-provider-metal3"
+    org: metal3-io
+    proj:
+      - capm3:
+          repo: cluster-api-provider-metal3
+      - project_infra:
+          repo: project-infra
+          branch: '${{ghprbActualCommit}}'
+          ci_github_repo: '${{ghprbAuthorRepoGitUrl}}'
     image_os:
       - ubuntu
       - centos
                 capm3_version: v1alpha5
                 target_branches:
                   - 'release-0.5'
+
+- project:
+    name: "capm3-main-tests"
+    repo:
+      org: "metal3-io"
+      name: "cluster-api-provider-metal3"
+    image_os:
+      - ubuntu
+      - centos
+    jobs:
       - capm3_main_e2e_upgrade_tests:
           exclude:
             - image_os: centos