Trigger upgrade tests from prow 18/20818/7
authorMohammed Boukhalfa <mohammed.boukhalfa@est.tech>
Wed, 3 Apr 2024 09:34:51 +0000 (12:34 +0300)
committerMohammed Boukhalfa <mohammed.boukhalfa@est.tech>
Wed, 3 Apr 2024 09:34:51 +0000 (12:34 +0300)
Change-Id: Ia70d985983342fcdacadf1e505b363a849b90928

jjb/metal3/job_capm3_clusterctl_upgrade_tests_prow.yml [new file with mode: 0644]
jjb/metal3/job_capm3_e2e_k8s_upgrade_tests_prow.yml [new file with mode: 0644]
jjb/metal3/job_capm3_main_e2e_clusterctl_upgrade_tests_prow.yml [moved from jjb/metal3/job_capm3_main_e2e_clusterctl_upgrade_tests.yml with 78% similarity]
jjb/metal3/job_capm3_main_e2e_k8s_upgrade_tests_prow.yml [moved from jjb/metal3/job_capm3_main_e2e_k8s_upgrade_tests.yml with 79% similarity]
jjb/metal3/job_keep_capm3_e2e_clusterctl_upgrade_tests_prow.yml [new file with mode: 0644]
jjb/metal3/job_keep_capm3_e2e_k8s_upgrade_tests_prow.yml [new file with mode: 0644]
jjb/metal3/projects.yml

diff --git a/jjb/metal3/job_capm3_clusterctl_upgrade_tests_prow.yml b/jjb/metal3/job_capm3_clusterctl_upgrade_tests_prow.yml
new file mode 100644 (file)
index 0000000..ab7b780
--- /dev/null
@@ -0,0 +1,108 @@
+---
+#
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2024 Nordix Foundation.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+# Description:
+# ============
+# This file contains job template definition for Cluster API Provider Metal3 (CAPM3) e2e clusterctl upgrade tests.
+# This job can be triggered manually or through a Github pull request. It creates a
+# pipeline job. The pipeline scripts are maintained in Metal3 CI project infra repository.
+
+- job-template:
+    id: capm3_clusterctl_upgrade_tests_prow
+    name: '{job_prefix}-clusterctl-upgrade-test-{capm3_target_branch}'
+    description: "CAPM3 e2e clusterctl upgrade tests for on ubuntu."
+    project-type: pipeline
+    defaults: global
+    disabled: False
+    concurrent: True
+    parameters:
+    # Parameters set by Prow
+    - string:
+        name: BUILD_ID
+        description: 'Used by Prow when triggering jobs'
+    - string:
+        name: PROW_JOB_ID
+        description: 'Used by Prow when triggering jobs'
+    - string:
+        name: REPO_OWNER
+        default: 'metal3-io'
+        description: 'Project github repo org name'
+    - string:
+        name: REPO_NAME
+        default: 'cluster-api-provider-metal3'
+        description: 'Project github repo name'
+    - string:
+        name: PULL_BASE_REF
+        default: 'main'
+        description: 'Ref name of the base branch'
+    - string:
+        name: PULL_PULL_SHA
+        default: 'main'
+        description: 'Pull request head SHA'
+    - string:
+        name: PULL_NUMBER
+        description: 'Pull request number'
+    # End of Prow parameters
+    - string:
+        name: IMAGE_OS
+        default: "ubuntu"
+        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: '{capm3_release_branch}'
+        description: 'The target branch of CAPM3 to be used for this test'
+    - string:
+        name: bmo_release_branch
+        default: '{bmo_release_branch}'
+        description: 'The target branch of BMO to be used for this test'
+    - string:
+        name: TARGET_NODE_MEMORY
+        default: 4096
+        description: 'RAM size of the target host.'
+    - string:
+        name: TESTS_FOR
+        default: "e2e_tests"
+        description: 'Tests using the e2e framework.'
+    - string:
+        name: GINKGO_FOCUS
+        default: "clusterctl-upgrade"
+        description: 'Select the e2e upgrade test'
+    properties:
+    - build-discarder:
+        days-to-keep: 30
+        num-to-keep: 300
+        artifact-days-to-keep: -1
+        artifact-num-to-keep: -1
+
+    triggers: []
+    pipeline-scm:
+      scm:
+      - git:
+          url: "{ci_github_repo}"
+          credentials-id: "{ci_github_jenkins_credentials_id}"
+          branches:
+            - '{branch|main}'
+          name: 'origin'
+          refspec: '+refs/heads/*:refs/remotes/origin/*'
+          wipe-workspace: True
+          honor-refspec: True
+          shallow-clone: False
+      script-path: "{e2e_feature_test_pipeline}"
+      lightweight-checkout: False
diff --git a/jjb/metal3/job_capm3_e2e_k8s_upgrade_tests_prow.yml b/jjb/metal3/job_capm3_e2e_k8s_upgrade_tests_prow.yml
new file mode 100644 (file)
index 0000000..6146efa
--- /dev/null
@@ -0,0 +1,129 @@
+---
+#
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2024 Nordix Foundation.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+# Description:
+# ============
+# This file contains job template definition for Cluster API Provider Metal3 (CAPM3) e2e k8s upgrade tests.
+# This job can be triggered manually or through a Github pull request. It creates a
+# pipeline job. The pipeline scripts are maintained in Metal3 CI project infra repository.
+
+- job-template:
+    id: capm3_e2e_k8s_upgrade_tests_prow
+    name: '{job_prefix}-e2e-{k8s_versions}-upgrade-test-{capm3_target_branch}'
+    description: "CAPM3 e2e k8s upgrade tests for on {image_os}."
+    project-type: pipeline
+    defaults: global
+    disabled: False
+    concurrent: True
+    parameters:
+    # Parameters set by Prow
+    - string:
+        name: BUILD_ID
+        description: 'Used by Prow when triggering jobs'
+    - string:
+        name: PROW_JOB_ID
+        description: 'Used by Prow when triggering jobs'
+    - string:
+        name: REPO_OWNER
+        default: 'metal3-io'
+        description: 'Project github repo org name'
+    - string:
+        name: REPO_NAME
+        default: 'cluster-api-provider-metal3'
+        description: 'Project github repo name'
+    - string:
+        name: PULL_BASE_REF
+        default: 'main'
+        description: 'Ref name of the base branch'
+    - string:
+        name: PULL_PULL_SHA
+        default: 'main'
+        description: 'Pull request head SHA'
+    - string:
+        name: PULL_NUMBER
+        description: 'Pull request number'
+    # End of Prow parameters
+    - string:
+        name: IMAGE_OS
+        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: capm3_release_branch
+        default: '{capm3_release_branch}'
+        description: 'The target branch of CAPM3 to be used for this test'
+    - string:
+        name: bmo_release_branch
+        default: '{bmo_release_branch}'
+        description: 'The target branch of BMO to be used for this test'
+    - string:
+        name: CAPI_VERSION
+        default: 'v1beta1'
+        description: 'Cluster API version. E.g. v1beta1.'
+    - string:
+        name: CAPM3_VERSION
+        default: 'v1beta1'
+        description: 'Cluster API provider Metal3 version. E.g. v1beta1.'
+    - string:
+        name: TARGET_NODE_MEMORY
+        default: 4096
+        description: 'RAM size of the target host.'
+    - string:
+        name: TESTS_FOR
+        default: "e2e_tests"
+        description: 'Tests using the e2e framework.'
+    - string:
+        name: GINKGO_FOCUS
+        default: "k8s-upgrade"
+        description: 'Select the e2e upgrade test'
+    - string:
+        name: KUBERNETES_VERSION_UPGRADE_FROM
+        default: '{k8s_version_upgrade_from}'
+        description: 'Kubernetes version upgrade from'
+    - string:
+        name: KUBERNETES_VERSION_UPGRADE_TO
+        default: '{k8s_version_upgrade_to}'
+        description: 'Kubernetes version upgrade to'
+    - string:
+        name: KUBECTL_SHA256
+        default: '{kubectl_sha256}'
+        description: 'Kubectl SHA256 digest matching KUBERNETES_VERSION_UPGRADE_FROM'
+
+    properties:
+    - build-discarder:
+        days-to-keep: 30
+        num-to-keep: 300
+        artifact-days-to-keep: -1
+        artifact-num-to-keep: -1
+
+    triggers: []
+    pipeline-scm:
+      scm:
+      - git:
+          url: "{ci_github_repo}"
+          credentials-id: "{ci_github_jenkins_credentials_id}"
+          branches:
+            - '{branch|main}'
+          name: 'origin'
+          refspec: '+refs/heads/*:refs/remotes/origin/*'
+          wipe-workspace: True
+          honor-refspec: True
+          shallow-clone: False
+      script-path: "jenkins/jobs/prow_integration_tests.pipeline"
+      lightweight-checkout: False
similarity index 78%
rename from jjb/metal3/job_capm3_main_e2e_clusterctl_upgrade_tests.yml
rename to jjb/metal3/job_capm3_main_e2e_clusterctl_upgrade_tests_prow.yml
index a51cdebdf69e88fcf11d70dfe47aaf7beefb53e7..269217e558d4fdb021a4a1b36064e14229dc3f82 100644 (file)
@@ -1,7 +1,7 @@
 ---
 #
 # ============LICENSE_START=======================================================
-#  Copyright (C) 2019 Nordix Foundation.
+#  Copyright (C) 2024 Nordix Foundation.
 # ================================================================================
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # pipeline job. The pipeline scripts are maintained in Metal3 CI project infra repository.
 
 - job-template:
-    id: capm3_main_e2e_clusterctl_upgrade_tests
-    name: '{job_prefix}_daily_{upgrade_from_release}_main_e2e_clusterctl_upgrade_test_{image_os}'
-    description: "CAPM3 v1alpha5 to v1beta1 e2e upgrade tests for {repo[org]}/{repo[name]} on ubuntu."
+    id: capm3_main_e2e_clusterctl_upgrade_tests_prow
+    name: '{job_prefix}-daily-e2e-clusterctl-upgrade-{upgrade_from_release}'
+    description: "CAPM e2e clusterctl upgrade tests on ubuntu."
     project-type: pipeline
     defaults: global
     disabled: False
     concurrent: True
     parameters:
+    # Parameters set by Prow
     - string:
-        name: PROJECT_REPO_ORG
-        default: '{repo[org]}'
+        name: BUILD_ID
+        description: 'Used by Prow when triggering jobs'
+    - string:
+        name: PROW_JOB_ID
+        description: 'Used by Prow when triggering jobs'
+    - string:
+        name: REPO_OWNER
+        default: 'metal3-io'
         description: 'Project github repo org name'
     - string:
-        name: PROJECT_REPO_NAME
-        default: '{repo[name]}'
+        name: REPO_NAME
+        default: 'cluster-api-provider-metal3'
         description: 'Project github repo name'
     - string:
-        name: ghprbActualCommit
+        name: PULL_BASE_REF
         default: 'main'
-        description: 'CI Repo branch for triggering manual build'
+        description: 'Ref name of the base branch'
     - string:
-        name: ghprbAuthorRepoGitUrl
-        default: 'https://github.com/{repo[org]}/{repo[name]}.git'
-        description: 'CI Repo URL for triggering manual build'
-    - string:
-        name: ghprbTargetBranch
+        name: PULL_PULL_SHA
         default: 'main'
-        description: 'Target branch of the PR'
+        description: 'Pull request head SHA'
+    - string:
+        name: PULL_NUMBER
+        description: 'Pull request number'
+    # End of Prow parameters
     - string:
         name: IMAGE_OS
         default: '{image_os}'
           wipe-workspace: True
           honor-refspec: True
           shallow-clone: False
-      script-path: "{ci_github_pipeline}"
+      script-path: "jenkins/jobs/prow_integration_tests.pipeline"
       lightweight-checkout: False
similarity index 79%
rename from jjb/metal3/job_capm3_main_e2e_k8s_upgrade_tests.yml
rename to jjb/metal3/job_capm3_main_e2e_k8s_upgrade_tests_prow.yml
index 6fa473e7675d2c02f137a97afed4846820ed00a6..e85256eb89eb508a5f800656a20a250459bf690c 100644 (file)
@@ -1,7 +1,7 @@
 ---
 #
 # ============LICENSE_START=======================================================
-#  Copyright (C) 2019 Nordix Foundation.
+#  Copyright (C) 2024 Nordix Foundation.
 # ================================================================================
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # pipeline job. The pipeline scripts are maintained in Metal3 CI project infra repository.
 
 - job-template:
-    id: capm3_main_e2e_k8s_upgrade_tests
-    name: '{job_prefix}_daily_{capm3_target_branch}_e2e_{k8s_versions}_upgrade_test_{image_os}'
-    description: "CAPM3 e2e k8s upgrade tests for {repo[org]}/{repo[name]} on ubuntu."
+    id: capm3_main_e2e_k8s_upgrade_tests_prow
+    name: '{job_prefix}-daily-e2e-{k8s_versions}-upgrade-{capm3_target_branch}'
+    description: "CAPM3 e2e k8s upgrade tests on ubuntu."
     project-type: pipeline
     defaults: global
     disabled: False
     concurrent: True
     parameters:
+    # Parameters set by Prow
     - string:
-        name: PROJECT_REPO_ORG
-        default: '{repo[org]}'
+        name: BUILD_ID
+        description: 'Used by Prow when triggering jobs'
+    - string:
+        name: PROW_JOB_ID
+        description: 'Used by Prow when triggering jobs'
+    - string:
+        name: REPO_OWNER
+        default: 'metal3-io'
         description: 'Project github repo org name'
     - string:
-        name: PROJECT_REPO_NAME
-        default: '{repo[name]}'
+        name: REPO_NAME
+        default: 'cluster-api-provider-metal3'
         description: 'Project github repo name'
     - string:
-        name: ghprbActualCommit
-        default: '{capm3_release_branch}'
-        description: 'CI Repo branch for triggering manual build'
+        name: PULL_BASE_REF
+        default: 'main'
+        description: 'Ref name of the base branch'
     - string:
-        name: ghprbAuthorRepoGitUrl
-        default: 'https://github.com/{repo[org]}/{repo[name]}.git'
-        description: 'CI Repo URL for triggering manual build'
+        name: PULL_PULL_SHA
+        default: 'main'
+        description: 'Pull request head SHA'
     - string:
-        name: ghprbTargetBranch
-        default: '{capm3_release_branch}'
-        description: 'Target branch of the PR'
+        name: PULL_NUMBER
+        description: 'Pull request number'
+    # End of Prow parameters
     - string:
         name: IMAGE_OS
         default: '{image_os}'
           wipe-workspace: True
           honor-refspec: True
           shallow-clone: False
-      script-path: "{ci_github_pipeline}"
+      script-path: "jenkins/jobs/prow_integration_tests.pipeline"
       lightweight-checkout: False
diff --git a/jjb/metal3/job_keep_capm3_e2e_clusterctl_upgrade_tests_prow.yml b/jjb/metal3/job_keep_capm3_e2e_clusterctl_upgrade_tests_prow.yml
new file mode 100644 (file)
index 0000000..3ca02dd
--- /dev/null
@@ -0,0 +1,126 @@
+---
+#
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2024 Nordix Foundation.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+# Description:
+# ============
+# This file contains job template definition for Cluster API Provider Metal3 (CAPM3) e2e clusterctl upgrade tests.
+# This job can be triggered manually or through a Github pull request. It creates a
+# pipeline job. The pipeline scripts are maintained in Metal3 CI project infra repository.
+
+- job-template:
+    id: keep_capm3_e2e_clusterctl_upgrade_tests_prow
+    name: '{job_prefix}-keep-e2e-clusterctl-upgrade-{upgrade_from_release}'
+    description: "Keep CAPM3 e2e upgrade tests on {image_os}."
+    project-type: pipeline
+    defaults: global
+    disabled: False
+    concurrent: True
+    parameters:
+    # Parameters set by Prow
+    - string:
+        name: BUILD_ID
+        description: 'Used by Prow when triggering jobs'
+    - string:
+        name: PROW_JOB_ID
+        description: 'Used by Prow when triggering jobs'
+    - string:
+        name: REPO_OWNER
+        default: 'metal3-io'
+        description: 'Project github repo org name'
+    - string:
+        name: REPO_NAME
+        default: 'cluster-api-provider-metal3'
+        description: 'Project github repo name'
+    - string:
+        name: PULL_BASE_REF
+        default: 'main'
+        description: 'Ref name of the base branch'
+    - string:
+        name: PULL_PULL_SHA
+        default: 'main'
+        description: 'Pull request head SHA'
+    - string:
+        name: PULL_NUMBER
+        description: 'Pull request number'
+    # End of Prow parameters
+    - string:
+        name: IMAGE_OS
+        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: capm3_release_branch
+        default: 'main'
+        description: 'The target branch of CAPM3 to be used for this test'
+    - string:
+        name: bmo_release_branch
+        default: 'main'
+        description: 'The target branch of BMO to be used for this test'
+    - string:
+        name: CAPI_VERSION
+        default: 'v1beta1'
+        description: 'Cluster API version. E.g. v1beta1.'
+    - string:
+        name: CAPM3_VERSION
+        default: 'v1beta1'
+        description: 'Cluster API provider Metal3 version. E.g. v1beta1.'
+    - string:
+        name: TARGET_NODE_MEMORY
+        default: 4096
+        description: 'RAM size of the target host.'
+    - string:
+        name: TESTS_FOR
+        default: "e2e_tests"
+        description: 'Tests using the e2e framework.'
+    - string:
+        name: KEEP_TEST_ENV
+        default: 'true'
+        description: 'Whether tester VM and test env should be deleted or not by the end of the test'
+    - string:
+        name: GINKGO_FOCUS
+        default: "clusterctl-upgrade"
+        description: 'Select the e2e upgrade test'
+    - string:
+        name: UPGRADE_FROM_RELEASE
+        default: '{upgrade_from}'
+        description: 'Release to upgrade from'
+
+    properties:
+    - build-discarder:
+        days-to-keep: 30
+        num-to-keep: 300
+        artifact-days-to-keep: -1
+        artifact-num-to-keep: -1
+
+    triggers: []
+
+    pipeline-scm:
+      scm:
+      - git:
+          url: "{ci_github_repo}"
+          credentials-id: "{ci_github_jenkins_credentials_id}"
+          branches:
+            - '{branch|main}'
+          name: 'origin'
+          refspec: '+refs/heads/*:refs/remotes/origin/*'
+          wipe-workspace: True
+          honor-refspec: True
+          shallow-clone: False
+      script-path: "jenkins/jobs/prow_integration_tests.pipeline"
+      lightweight-checkout: False
diff --git a/jjb/metal3/job_keep_capm3_e2e_k8s_upgrade_tests_prow.yml b/jjb/metal3/job_keep_capm3_e2e_k8s_upgrade_tests_prow.yml
new file mode 100644 (file)
index 0000000..ba77049
--- /dev/null
@@ -0,0 +1,133 @@
+---
+#
+# ============LICENSE_START=======================================================
+#  Copyright (C) 2024 Nordix Foundation.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+# Description:
+# ============
+# This file contains job template definition for Cluster API Provider Metal3 (CAPM3) e2e k8s upgrade tests.
+# This job can be triggered manually or through a Github pull request. It creates a
+# pipeline job. The pipeline scripts are maintained in Metal3 CI project infra repository.
+
+- job-template:
+    id: keep_capm3_e2e_k8s_upgrade_tests_prow
+    name: '{job_prefix}-keep-e2e-{k8s_versions}-upgrade-test-{capm3_target_branch}'
+    description: "Keep CAPM3 e2e k8s upgrade tests on {image_os}."
+    project-type: pipeline
+    defaults: global
+    disabled: False
+    concurrent: True
+    parameters:
+    # Parameters set by Prow
+    - string:
+        name: BUILD_ID
+        description: 'Used by Prow when triggering jobs'
+    - string:
+        name: PROW_JOB_ID
+        description: 'Used by Prow when triggering jobs'
+    - string:
+        name: REPO_OWNER
+        default: 'metal3-io'
+        description: 'Project github repo org name'
+    - string:
+        name: REPO_NAME
+        default: 'cluster-api-provider-metal3'
+        description: 'Project github repo name'
+    - string:
+        name: PULL_BASE_REF
+        default: 'main'
+        description: 'Ref name of the base branch'
+    - string:
+        name: PULL_PULL_SHA
+        default: 'main'
+        description: 'Pull request head SHA'
+    - string:
+        name: PULL_NUMBER
+        description: 'Pull request number'
+    # End of Prow parameters
+    - string:
+        name: IMAGE_OS
+        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: capm3_release_branch
+        default: '{capm3_release_branch}'
+        description: 'The target branch of CAPM3 to be used for this test'
+    - string:
+        name: bmo_release_branch
+        default: '{bmo_release_branch}'
+        description: 'The target branch of BMO to be used for this test'
+    - string:
+        name: CAPI_VERSION
+        default: 'v1beta1'
+        description: 'Cluster API version. E.g. v1beta1.'
+    - string:
+        name: CAPM3_VERSION
+        default: 'v1beta1'
+        description: 'Cluster API provider Metal3 version. E.g. v1beta1.'
+    - string:
+        name: TARGET_NODE_MEMORY
+        default: 4096
+        description: 'RAM size of the target host.'
+    - string:
+        name: TESTS_FOR
+        default: "e2e_tests"
+        description: 'Tests using the e2e framework.'
+    - string:
+        name: KEEP_TEST_ENV
+        default: 'true'
+        description: 'Whether tester VM and test env should be deleted or not by the end of the test'
+    - string:
+        name: GINKGO_FOCUS
+        default: "k8s-upgrade"
+        description: 'Select the e2e upgrade test'
+    - string:
+        name: KUBERNETES_VERSION_UPGRADE_FROM
+        default: '{k8s_version_upgrade_from}'
+        description: 'Kubernetes version upgrade from'
+    - string:
+        name: KUBERNETES_VERSION_UPGRADE_TO
+        default: '{k8s_version_upgrade_to}'
+        description: 'Kubernetes version upgrade to'
+    - string:
+        name: KUBECTL_SHA256
+        default: '{kubectl_sha256}'
+        description: 'Kubectl SHA256 digest matching KUBERNETES_VERSION_UPGRADE_FROM'
+
+    properties:
+    - build-discarder:
+        days-to-keep: 30
+        num-to-keep: 300
+        artifact-days-to-keep: -1
+        artifact-num-to-keep: -1
+
+    triggers: []
+    pipeline-scm:
+      scm:
+      - git:
+          url: "{ci_github_repo}"
+          credentials-id: "{ci_github_jenkins_credentials_id}"
+          branches:
+            - '{branch|main}'
+          name: 'origin'
+          refspec: '+refs/heads/*:refs/remotes/origin/*'
+          wipe-workspace: True
+          honor-refspec: True
+          shallow-clone: False
+      script-path: "jenkins/jobs/prow_integration_tests.pipeline"
+      lightweight-checkout: False
index f326917610ff5429f0dbcd75383459ce0998978e..d19e4676f92d7b21dc281411f0665092fe120a08 100644 (file)
             target_branches:
             - 'release-1.4'
             - 'release-0.3'
-- project:
-    name: "capm3-main-tests"
-    repo:
-      org: "metal3-io"
-      name: "cluster-api-provider-metal3"
-    image_os:
-    - ubuntu
-    - centos
-    jobs:
-    - capm3_main_e2e_clusterctl_upgrade_tests:
+    - capm3_clusterctl_upgrade_tests_prow:
+        capm3_target_branch:
+        - main:
+            capi_version: v1beta1
+            capm3_version: v1beta1
+            capm3_release_branch: main
+            bmo_release_branch: main
+            target_branches:
+            - 'main'
+        - release-1-6:
+            capi_version: v1beta1
+            capm3_version: v1beta1
+            capm3_release_branch: release-1.6
+            bmo_release_branch: release-0.5
+            target_branches:
+            - 'release-1.6'
+            - 'release-0.5'
+        - release-1-5:
+            capi_version: v1beta1
+            capm3_version: v1beta1
+            capm3_release_branch: release-1.5
+            bmo_release_branch: release-0.4
+            target_branches:
+            - 'release-1.5'
+            - 'release-0.4'
+        - release-1-4:
+            capi_version: v1beta1
+            capm3_version: v1beta1
+            capm3_release_branch: release-1.4
+            bmo_release_branch: release-0.3
+            target_branches:
+            - 'release-1.4'
+            - 'release-0.3'
+        exclude:
+        - image_os: centos
+    - capm3_e2e_k8s_upgrade_tests_prow:
+        k8s_versions:
+        - 1-28-1-29:
+            k8s_version_upgrade_from: v1.28.1
+            k8s_version_upgrade_to: v1.29.0
+            kubectl_sha256: 0e03ab096163f61ab610b33f37f55709d3af8e16e4dcc1eb682882ef80f96fd5 # v1.29.0
+            capm3_release_branch: main
+            bmo_release_branch: main
+            capm3_target_branch: main
+            target_branches:
+            - 'main'
+        - 1-27-1-28:
+            k8s_version_upgrade_from: v1.27.4
+            k8s_version_upgrade_to: v1.28.1
+            kubectl_sha256: e7a7d6f9d06fab38b4128785aa80f65c54f6675a0d2abef655259ddd852274e1 # v1.28.1
+            capm3_release_branch: main
+            bmo_release_branch: main
+            capm3_target_branch: main
+            target_branches:
+            - 'main'
+        - 1-26-1-27:
+            k8s_version_upgrade_from: v1.26.4
+            k8s_version_upgrade_to: v1.27.4
+            kubectl_sha256: 4685bfcf732260f72fce58379e812e091557ef1dfc1bc8084226c7891dd6028f # v1.27.4
+            capm3_release_branch: main
+            capm3_target_branch: main
+            bmo_release_branch: main
+            target_branches:
+            - 'main'
+        - 1-28-1-29:
+            k8s_version_upgrade_from: v1.28.1
+            k8s_version_upgrade_to: v1.29.0
+            kubectl_sha256: 0e03ab096163f61ab610b33f37f55709d3af8e16e4dcc1eb682882ef80f96fd5 # v1.29.0
+            capm3_release_branch: release-1.6
+            bmo_release_branch: release-0.5
+            capm3_target_branch: release-1-6
+            target_branches:
+            - 'release-1.6'
+            - 'release-0.5'
+        - 1-26-1-27:
+            k8s_version_upgrade_from: v1.26.4
+            k8s_version_upgrade_to: v1.27.4
+            kubectl_sha256: 4685bfcf732260f72fce58379e812e091557ef1dfc1bc8084226c7891dd6028f # v1.27.4
+            capm3_release_branch: release-1.5
+            bmo_release_branch: release-0.4
+            capm3_target_branch: release-1-5
+            target_branches:
+            - 'release-1.5'
+            - 'release-0.4'
+        - 1-26-1-27:
+            k8s_version_upgrade_from: v1.26.4
+            kubectl_sha256: 636ac0eaa467dbceda4b2c4e33662adc9709f5ce40341c9fc1a687fc276ac02d # v1.26.4
+            k8s_version_upgrade_to: v1.27.4
+            capm3_release_branch: release-1.4
+            bmo_release_branch: release-0.3
+            capm3_target_branch: release-1-4
+            target_branches:
+            - 'release-1.4'
+            - 'release-0.3'
+        exclude:
+        - image_os: centos
+    - capm3_main_e2e_clusterctl_upgrade_tests_prow:
         upgrade_from_release:
         - from-release-1-6:
             upgrade_from: v1.6.
             upgrade_from: v0.5.
         exclude:
         - image_os: centos
-    - capm3_main_e2e_k8s_upgrade_tests:
+    - capm3_main_e2e_k8s_upgrade_tests_prow:
         k8s_versions:
         - 1-28-1-29:
             k8s_version_upgrade_from: v1.28.1
             capm3_target_branch: release-1-4
         exclude:
         - image_os: centos
+    - keep_capm3_e2e_clusterctl_upgrade_tests_prow:
+        upgrade_from_release:
+        - from-release-1-6:
+            upgrade_from: v1.6.
+        - from-release-1-5:
+            upgrade_from: v1.5.
+        - from-release-1-4:
+            upgrade_from: v1.4.
+        - from-release-1-3:
+            upgrade_from: v1.3.
+        - from-release-0-5:
+            upgrade_from: v0.5.
+        exclude:
+        - image_os: centos
+    - keep_capm3_e2e_k8s_upgrade_tests_prow:
+        k8s_versions:
+        - 1-28-1-29:
+            k8s_version_upgrade_from: v1.28.1
+            k8s_version_upgrade_to: v1.29.0
+            kubectl_sha256: 0e03ab096163f61ab610b33f37f55709d3af8e16e4dcc1eb682882ef80f96fd5 # v1.29.0
+            capm3_release_branch: main
+            bmo_release_branch: main
+            capm3_target_branch: main
+            target_branches:
+            - 'main'
+        - 1-27-1-28:
+            k8s_version_upgrade_from: v1.27.4
+            k8s_version_upgrade_to: v1.28.1
+            kubectl_sha256: e7a7d6f9d06fab38b4128785aa80f65c54f6675a0d2abef655259ddd852274e1 # v1.28.1
+            capm3_release_branch: main
+            bmo_release_branch: main
+            capm3_target_branch: main
+            target_branches:
+            - 'main'
+        - 1-26-1-27:
+            k8s_version_upgrade_from: v1.26.4
+            k8s_version_upgrade_to: v1.27.4
+            kubectl_sha256: 4685bfcf732260f72fce58379e812e091557ef1dfc1bc8084226c7891dd6028f # v1.27.4
+            capm3_release_branch: main
+            bmo_release_branch: main
+            capm3_target_branch: main
+            target_branches:
+            - 'main'
+        - 1-28-1-29:
+            k8s_version_upgrade_from: v1.28.1
+            k8s_version_upgrade_to: v1.29.0
+            kubectl_sha256: 0e03ab096163f61ab610b33f37f55709d3af8e16e4dcc1eb682882ef80f96fd5 # v1.29.0
+            capm3_release_branch: release-1.6
+            bmo_release_branch: release-0.5
+            capm3_target_branch: release-1-6
+            target_branches:
+            - 'release-1.6'
+            - 'release-0.5'
+        - 1-26-1-27:
+            k8s_version_upgrade_from: v1.26.4
+            k8s_version_upgrade_to: v1.27.4
+            kubectl_sha256: 4685bfcf732260f72fce58379e812e091557ef1dfc1bc8084226c7891dd6028f # v1.27.4
+            capm3_release_branch: release-1.5
+            bmo_release_branch: release-0.4
+            capm3_target_branch: release-1-5
+            target_branches:
+            - 'release-1.5'
+            - 'release-0.4'
+        - 1-26-1-27:
+            k8s_version_upgrade_from: v1.26.4
+            kubectl_sha256: 636ac0eaa467dbceda4b2c4e33662adc9709f5ce40341c9fc1a687fc276ac02d # v1.26.4
+            k8s_version_upgrade_to: v1.27.4
+            capm3_release_branch: release-1.4
+            bmo_release_branch: release-0.3
+            capm3_target_branch: release-1-4
+            target_branches:
+            - 'release-1.4'
+            - 'release-0.3'
+        exclude:
+        - image_os: centos
+
+- project:
+    name: "capm3-main-tests"
+    repo:
+      org: "metal3-io"
+      name: "cluster-api-provider-metal3"
+    image_os:
+    - ubuntu
+    - centos
+    jobs:
     - capm3_main_e2e_ephemeral_tests:
         exclude:
         - image_os: ubuntu