Make e2e integration runnable on releases 61/18061/1
authorMohammed Boukhalfa <mohammed.boukhalfa@est.tech>
Thu, 27 Apr 2023 12:54:21 +0000 (15:54 +0300)
committerMohammed Boukhalfa <mohammed.boukhalfa@est.tech>
Thu, 27 Apr 2023 12:54:21 +0000 (15:54 +0300)
Change-Id: I1f8d7c25a578db82ab54af137e050ffc48682561

jjb/metal3/job_capm3_e2e_integration_tests.yml
jjb/metal3/job_capm3_main_e2e_integration_tests.yml
jjb/metal3/projects.yml

index adf4cedfba2350c9d443d2aaa49385414ecf5cc7..a913c723f7783602d997f1fa6930a189ade8cb53 100644 (file)
@@ -26,8 +26,8 @@
 
 - job-template:
     id: capm3_e2e_integration_tests
-    name: '{job_prefix}_{proj}_e2e_integration_test_{image_os}'
-    description: "CAPM3 e2e integration tests for {org}/{repo} on {image_os}."
+    name: '{job_prefix}_{proj}_{capm3_target_branch}_e2e_integration_test_{image_os}'
+    description: "CAPM3 {capm3_version} e2e integration tests for {org}/{repo} on {image_os}."
     project-type: pipeline
     defaults: global
     disabled: False
         description: 'Distribution to use for the target host as well as source and target cluster. Can be ubuntu or centos'
     - string:
         name: capm3_release_branch
-        default: 'main'
+        default: '{capm3_release_branch}'
         description: 'The target branch of CAPM3 to be used for this test'
     - string:
         name: CAPI_VERSION
-        default: 'v1beta1'
+        default: '{capi_version}'
         description: 'Cluster API version. E.g. v1beta1.'
     - string:
         name: CAPM3_VERSION
-        default: 'v1beta1'
+        default: '{capm3_version}'
         description: 'Cluster API provider Metal3 version. E.g. v1beta1.'
     - string:
         name: TARGET_NODE_MEMORY
@@ -98,7 +98,7 @@
         org-list: "{ci_github_whitelist_org}"
         cron: 'H/5 * * * *'
         auth-id: "{ci_ghprb_auth_id}"
-        trigger-phrase: '((.|\n)*\s)?/test-{image_os}-e2e-integration-main(\s(.|\n)*)?'
+        trigger-phrase: '((.|\n)*\s)?/test-{image_os}-e2e-integration-{capm3_target_branch}(\s(.|\n)*)?'
         skip-build-phrase: '/skip-test'
         only-trigger-phrase: True
         github-hooks: True
         allow-whitelist-orgs-as-admins: True
         white-list-target-branches:
           - 'main'
-        status-context: "test-{image_os}-e2e-integration-main"
+        status-context: "test-{image_os}-e2e-integration-{capm3_target_branch}"
         success-status: "Passed"
         failure-status: "Failed"
         error-status: "Error"
index b358892fcb9211aa98d0a82ac809643f2a5796b4..13fa3c7e1d77ff6a4c8e72a7bf90661b1e838b47 100644 (file)
@@ -26,8 +26,8 @@
 
 - job-template:
     id: capm3_main_e2e_integration_tests
-    name: '{job_prefix}_daily_main_e2e_integration_test_{image_os}'
-    description: "CAPM3 main e2e integration tests for {repo[org]}/{repo[name]} on {image_os}."
+    name: '{job_prefix}_daily_{capm3_target_branch}_e2e_integration_test_{image_os}'
+    description: "CAPM3 {capm3_version} e2e integration tests for {repo[org]}/{repo[name]} on {image_os}."
     project-type: pipeline
     defaults: global
     disabled: False
         description: 'Distribution to use for the target host as well as source and target cluster. Can be ubuntu or centos'
     - string:
         name: capm3_release_branch
-        default: 'main'
+        default: '{capm3_release_branch}'
         description: 'The target branch of CAPM3 to be used for this test'
     - string:
         name: CAPI_VERSION
-        default: 'v1beta1'
+        default: '{capi_version}'
         description: 'Cluster API version. E.g. v1beta1.'
     - string:
         name: CAPM3_VERSION
-        default: 'v1beta1'
+        default: '{capm3_version}'
         description: 'Cluster API provider Metal3 version. E.g. v1beta1.'
     - string:
         name: TARGET_NODE_MEMORY
index 83490d9965f16c88f51db71b472d3ef55149b6a2..b1cd4d9614b5ebfa4afd1f547cd35b93d0c40d13 100644 (file)
           exclude:
             - image_os: centos
       - capm3_e2e_integration_tests:
+          capm3_target_branch:
+            - main:
+                capi_version: v1beta1
+                capm3_version: v1beta1
+                capm3_release_branch: main
+                target_branches:
+                  - 'main'
+            - release-1-4:
+                capi_version: v1beta1
+                capm3_version: v1beta1
+                capm3_release_branch: release-1.4
+                target_branches:
+                  - 'main'
+                  - 'release-1.4'
       - parallel_capm3_e2e_feature_tests:
       - capm3_e2e_feature_tests:
       - keep_capm3_e2e_integration_tests:
+          capm3_target_branch:
+            - main:
+                capi_version: v1beta1
+                capm3_version: v1beta1
+                capm3_release_branch: main
+                target_branches:
+                  - 'main'
+            - release-1-4:
+                capi_version: v1beta1
+                capm3_version: v1beta1
+                capm3_release_branch: release-1.4
+                target_branches:
+                  - 'main'
+                  - 'release-1.4'
       - keep_capm3_e2e_feature_tests:
       - keep_capm3_e2e_upgrade_tests:
           exclude:
           exclude:
             - image_os: ubuntu
       - capm3_main_e2e_integration_tests:
+          capm3_target_branch:
+            - main:
+                capi_version: v1beta1
+                capm3_version: v1beta1
+                capm3_release_branch: main
+                schedule: "H 4 * * *"
+            - release-1-4:
+                capi_version: v1beta1
+                capm3_version: v1beta1
+                capm3_release_branch: release-1.4
+                schedule: "30 4 * * *"
       - capm3_main_e2e_feature_tests:
           capm3_target_branch:
             - main: