Merge "metal3: parameterize image_os"
authorFeruzjon Muyassarov <feruzjon.muyassarov@est.tech>
Tue, 15 Feb 2022 15:44:00 +0000 (15:44 +0000)
committerNordix Gerrit <gerrit@nordix.org>
Tue, 15 Feb 2022 15:44:00 +0000 (15:44 +0000)
29 files changed:
jjb/metal3/job_capm3_v1a4_main_integration_tests.yml [moved from jjb/metal3/job_capm3_v1a4_main_integration_tests_centos.yml with 95% similarity]
jjb/metal3/job_capm3_v1a4_main_integration_tests_ubuntu.yml [deleted file]
jjb/metal3/job_capm3_v1a5_e2e_tests.yml [moved from jjb/metal3/job_capm3_v1a5_e2e_tests_centos.yml with 93% similarity]
jjb/metal3/job_capm3_v1a5_e2e_tests_ubuntu.yml [deleted file]
jjb/metal3/job_capm3_v1a5_integration_tests.yml [moved from jjb/metal3/job_capm3_v1a5_integration_tests_centos.yml with 92% similarity]
jjb/metal3/job_capm3_v1a5_integration_tests_ubuntu.yml [deleted file]
jjb/metal3/job_capm3_v1a5_main_e2e_tests.yml [moved from jjb/metal3/job_capm3_v1a5_main_e2e_tests_centos.yml with 95% similarity]
jjb/metal3/job_capm3_v1a5_main_e2e_tests_ubuntu.yml [deleted file]
jjb/metal3/job_capm3_v1a5_main_integration_tests.yml [moved from jjb/metal3/job_capm3_v1a5_main_integration_tests_centos.yml with 94% similarity]
jjb/metal3/job_capm3_v1a5_main_integration_tests_ubuntu.yml [deleted file]
jjb/metal3/job_capm3_v1b1_e2e_tests.yml [moved from jjb/metal3/job_capm3_v1b1_e2e_tests_centos.yml with 93% similarity]
jjb/metal3/job_capm3_v1b1_e2e_tests_ubuntu.yml [deleted file]
jjb/metal3/job_capm3_v1b1_integration_tests.yml [moved from jjb/metal3/job_capm3_v1b1_integration_tests_centos.yml with 92% similarity]
jjb/metal3/job_capm3_v1b1_integration_tests_ubuntu.yml [deleted file]
jjb/metal3/job_capm3_v1b1_main_e2e_tests.yml [moved from jjb/metal3/job_capm3_v1b1_main_e2e_tests_centos.yml with 96% similarity]
jjb/metal3/job_capm3_v1b1_main_e2e_tests_ubuntu.yml [deleted file]
jjb/metal3/job_capm3_v1b1_main_integration_tests.yml [moved from jjb/metal3/job_capm3_v1b1_main_integration_tests_ubuntu.yml with 95% similarity]
jjb/metal3/job_capm3_v1b1_main_integration_tests_centos.yml [deleted file]
jjb/metal3/job_feature_tests.yml [moved from jjb/metal3/job_feature_tests_centos.yml with 92% similarity]
jjb/metal3/job_feature_tests_ubuntu.yml [deleted file]
jjb/metal3/job_keep_integration_vm_v1a5.yml [moved from jjb/metal3/job_keep_integration_vm_v1a5_centos.yml with 92% similarity]
jjb/metal3/job_keep_integration_vm_v1a5_ubuntu.yml [deleted file]
jjb/metal3/job_keep_integration_vm_v1b1.yml [moved from jjb/metal3/job_keep_integration_vm_v1b1_centos.yml with 92% similarity]
jjb/metal3/job_keep_integration_vm_v1b1_ubuntu.yml [deleted file]
jjb/metal3/job_main_feature_tests.yml [moved from jjb/metal3/job_main_feature_tests_centos.yml with 94% similarity]
jjb/metal3/job_main_feature_tests_ubuntu.yml [deleted file]
jjb/metal3/job_metal3_dev_tools_integration_test.yml [moved from jjb/metal3/job_metal3_dev_tools_integration_test_centos.yml with 93% similarity]
jjb/metal3/job_metal3_dev_tools_integration_test_ubuntu.yml [deleted file]
jjb/metal3/projects.yml

similarity index 95%
rename from jjb/metal3/job_capm3_v1a4_main_integration_tests_centos.yml
rename to jjb/metal3/job_capm3_v1a4_main_integration_tests.yml
index 2565266599e028975f91fce8fed851c61e838fdb..2d59a733f00e01803c4717370c13f5bb43313f95 100644 (file)
@@ -25,9 +25,9 @@
 # pipeline job. The pipeline scripts are maintained in Metal3 CI project infra repository.
 
 - job-template:
-    id: capm3_v1a4_main_integration_tests_centos
-    name: '{job_prefix}_main_v1a4_integration_test_centos'
-    description: "CAPM3 v1alpha4 main integration tests for {repo[org]}/{repo[name]} on CentOS."
+    id: capm3_v1a4_main_integration_tests
+    name: '{job_prefix}_main_v1a4_integration_test_{image_os}'
+    description: "CAPM3 v1alpha4 main integration tests for {repo[org]}/{repo[name]} on {image_os}."
     project-type: pipeline
     defaults: global
     disabled: False
@@ -55,7 +55,7 @@
         description: 'Target branch of the PR'
     - string:
         name: IMAGE_OS
-        default: 'centos'
+        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
diff --git a/jjb/metal3/job_capm3_v1a4_main_integration_tests_ubuntu.yml b/jjb/metal3/job_capm3_v1a4_main_integration_tests_ubuntu.yml
deleted file mode 100644 (file)
index 32b1452..0000000
+++ /dev/null
@@ -1,96 +0,0 @@
----
-#
-# ============LICENSE_START=======================================================
-#  Copyright (C) 2019 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) main integration 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_v1a4_main_integration_tests_ubuntu
-    name: '{job_prefix}_main_v1a4_integration_test_ubuntu'
-    description: "CAPM3 v1alpha4 main integration tests for {repo[org]}/{repo[name]} on Ubuntu."
-    project-type: pipeline
-    defaults: global
-    disabled: False
-    concurrent: True
-    parameters:
-    - string:
-        name: PROJECT_REPO_ORG
-        default: '{repo[org]}'
-        description: 'Project github repo org name'
-    - string:
-        name: PROJECT_REPO_NAME
-        default: '{repo[name]}'
-        description: 'Project github repo name'
-    - string:
-        name: ghprbActualCommit
-        default: 'master'
-        description: 'CI Repo branch for triggering manual build'
-    - string:
-        name: ghprbAuthorRepoGitUrl
-        default: 'https://github.com/{repo[org]}/{repo[name]}.git'
-        description: 'CI Repo URL for triggering manual build'
-    - string:
-        name: ghprbTargetBranch
-        default: 'master'
-        description: 'Target branch of the PR'
-    - 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: CAPI_VERSION
-        default: 'v1alpha3'
-        description: 'Cluster API version. Can be v1alpha3.'
-    - string:
-        name: CAPM3_VERSION
-        default: 'v1alpha4'
-        description: 'Cluster API provider Metal3 version. Can be v1alpha4 or v1alpha5.'
-    - string:
-        name: TARGET_NODE_MEMORY
-        default: 4096
-        description: 'RAM size of the target host.'
-
-    properties:
-    - build-discarder:
-        days-to-keep: 30
-        num-to-keep: 300
-        artifact-days-to-keep: -1
-        artifact-num-to-keep: -1
-
-    triggers:
-      - timed: "15 4 * * *"
-
-    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: "{ci_github_pipeline}"
-      lightweight-checkout: False
similarity index 93%
rename from jjb/metal3/job_capm3_v1a5_e2e_tests_centos.yml
rename to jjb/metal3/job_capm3_v1a5_e2e_tests.yml
index f9908ee4b35837d3b9d44d4618340564bc95824d..57ad7502b82d802702ea27e76a71eda3d4df03c0 100644 (file)
@@ -25,9 +25,9 @@
 # pipeline job. The pipeline scripts are maintained in Metal3 CI project infra repository.
 
 - job-template:
-    id: capm3_v1a5_e2e_tests_centos
-    name: '{job_prefix}_{name}_v1a5_e2e_test_centos'
-    description: "CAPM3 v1alpha5 e2e tests for {repo[org]}/{repo[name]} on CentOS."
+    id: capm3_v1a5_e2e_tests
+    name: '{job_prefix}_{name}_v1a5_e2e_test_{image_os}'
+    description: "CAPM3 v1alpha5 e2e tests for {repo[org]}/{repo[name]} on {image_os}."
     project-type: pipeline
     defaults: global
     disabled: False
@@ -55,7 +55,7 @@
         description: 'Target branch of the PR'
     - string:
         name: IMAGE_OS
-        default: 'centos'
+        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
@@ -90,7 +90,7 @@
         org-list: "{ci_github_whitelist_org}"
         cron: 'H/5 * * * *'
         auth-id: "{ci_ghprb_auth_id}"
-        trigger-phrase: '((.|\n)*\s)?/test-v1a5-centos-e2e(\s(.|\n)*)?'
+        trigger-phrase: '((.|\n)*\s)?/test-v1a5-{image_os}-e2e(\s(.|\n)*)?'
         skip-build-phrase: '/skip-test'
         only-trigger-phrase: True
         github-hooks: True
           - 'master'
           - 'main'
           - 'release-0.5'
-        status-context: "test-v1a5-centos-e2e"
+        status-context: "test-v1a5-{image_os}-e2e"
         success-status: "Passed"
         failure-status: "Failed"
         error-status: "Error"
diff --git a/jjb/metal3/job_capm3_v1a5_e2e_tests_ubuntu.yml b/jjb/metal3/job_capm3_v1a5_e2e_tests_ubuntu.yml
deleted file mode 100644 (file)
index 01611af..0000000
+++ /dev/null
@@ -1,122 +0,0 @@
----
-#
-# ============LICENSE_START=======================================================
-#  Copyright (C) 2021 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 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_v1a5_e2e_tests_ubuntu
-    name: '{job_prefix}_{name}_v1a5_e2e_test_ubuntu'
-    description: "CAPM3 v1alpha5 e2e tests for {repo[org]}/{repo[name]} on Ubuntu."
-    project-type: pipeline
-    defaults: global
-    disabled: False
-    concurrent: True
-    parameters:
-    - string:
-        name: PROJECT_REPO_ORG
-        default: '{repo[org]}'
-        description: 'Project github repo org name'
-    - string:
-        name: PROJECT_REPO_NAME
-        default: '{repo[name]}'
-        description: 'Project github repo name'
-    - string:
-        name: ghprbActualCommit
-        default: 'master'
-        description: 'CI Repo branch for triggering manual build'
-    - string:
-        name: ghprbAuthorRepoGitUrl
-        default: 'https://github.com/{repo[org]}/{repo[name]}.git'
-        description: 'CI Repo URL for triggering manual build'
-    - string:
-        name: ghprbTargetBranch
-        default: 'master'
-        description: 'Target branch of the PR'
-    - 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: CAPI_VERSION
-        default: 'v1alpha4'
-        description: 'Cluster API version. Can be v1alpha4.'
-    - string:
-        name: CAPM3_VERSION
-        default: 'v1alpha5'
-        description: 'Cluster API provider Metal3 version. Can be v1alpha5 or v1alpha4.'
-    - 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.'
-
-    properties:
-    - build-discarder:
-        days-to-keep: 30
-        num-to-keep: 300
-        artifact-days-to-keep: -1
-        artifact-num-to-keep: -1
-    - github:
-        url: https://github.com/{repo[org]}/{repo[name]}
-
-    triggers:
-    - github-pull-request:
-        admin-list:
-          - '{ci_github_admin_user}'
-        org-list: "{ci_github_whitelist_org}"
-        cron: 'H/5 * * * *'
-        auth-id: "{ci_ghprb_auth_id}"
-        trigger-phrase: '((.|\n)*\s)?/test-v1a5-e2e(\s(.|\n)*)?'
-        skip-build-phrase: '/skip-test'
-        only-trigger-phrase: True
-        github-hooks: True
-        permit-all: False
-        auto-close-on-fail: False
-        allow-whitelist-orgs-as-admins: True
-        white-list-target-branches:
-          - 'master'
-          - 'main'
-          - 'release-0.5'
-        status-context: "test-v1a5-e2e"
-        success-status: "Passed"
-        failure-status: "Failed"
-        error-status: "Error"
-        cancel-builds-on-update: True
-    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: "{ci_github_pipeline}"
-      lightweight-checkout: False
similarity index 92%
rename from jjb/metal3/job_capm3_v1a5_integration_tests_centos.yml
rename to jjb/metal3/job_capm3_v1a5_integration_tests.yml
index 4ae113ffd73097149f5f5f38f478afee84c07e95..7c64d113f2ae594204082a734dd57273e67b7933 100644 (file)
@@ -25,9 +25,9 @@
 # pipeline job. The pipeline scripts are maintained in Metal3 CI project infra repository.
 
 - job-template:
-    id: capm3_v1a5_integration_tests_centos
-    name: '{job_prefix}_{name}_v1a5_integration_test_centos'
-    description: "CAPM3 v1alpha5 integration tests for {repo[org]}/{repo[name]} on CentOS."
+    id: capm3_v1a5_integration_tests
+    name: '{job_prefix}_{name}_v1a5_integration_test_{image_os}'
+    description: "CAPM3 v1alpha5 integration tests for {repo[org]}/{repo[name]} on {image_os}."
     project-type: pipeline
     defaults: global
     disabled: False
@@ -55,7 +55,7 @@
         description: 'Target branch of the PR'
     - string:
         name: IMAGE_OS
-        default: 'centos'
+        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
@@ -86,7 +86,7 @@
         org-list: "{ci_github_whitelist_org}"
         cron: 'H/5 * * * *'
         auth-id: "{ci_ghprb_auth_id}"
-        trigger-phrase: '((.|\n)*\s)?/test-v1a5-centos-integration(\s(.|\n)*)?'
+        trigger-phrase: '((.|\n)*\s)?/test-v1a5-{image_os}-integration(\s(.|\n)*)?'
         skip-build-phrase: '/skip-test'
         only-trigger-phrase: True
         github-hooks: True
@@ -98,7 +98,7 @@
           - 'main'
           - 'release-0.5'
           - 'release-0.1'
-        status-context: "test-v1a5-centos-integration"
+        status-context: "test-v1a5-{image_os}-integration"
         success-status: "Passed"
         failure-status: "Failed"
         error-status: "Error"
diff --git a/jjb/metal3/job_capm3_v1a5_integration_tests_ubuntu.yml b/jjb/metal3/job_capm3_v1a5_integration_tests_ubuntu.yml
deleted file mode 100644 (file)
index 0ba8ea8..0000000
+++ /dev/null
@@ -1,119 +0,0 @@
----
-#
-# ============LICENSE_START=======================================================
-#  Copyright (C) 2019 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) integration 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_v1a5_integration_tests_ubuntu
-    name: '{job_prefix}_{name}_v1a5_integration_test_ubuntu'
-    description: "CAPM3 v1alpha5 integration tests for {repo[org]}/{repo[name]} on Ubuntu."
-    project-type: pipeline
-    defaults: global
-    disabled: False
-    concurrent: True
-    parameters:
-    - string:
-        name: PROJECT_REPO_ORG
-        default: '{repo[org]}'
-        description: 'Project github repo org name'
-    - string:
-        name: PROJECT_REPO_NAME
-        default: '{repo[name]}'
-        description: 'Project github repo name'
-    - string:
-        name: ghprbActualCommit
-        default: 'master'
-        description: 'CI Repo branch for triggering manual build'
-    - string:
-        name: ghprbAuthorRepoGitUrl
-        default: 'https://github.com/{repo[org]}/{repo[name]}.git'
-        description: 'CI Repo URL for triggering manual build'
-    - string:
-        name: ghprbTargetBranch
-        default: 'master'
-        description: 'Target branch of the PR'
-    - 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: CAPI_VERSION
-        default: 'v1alpha4'
-        description: 'Cluster API version.'
-    - string:
-        name: CAPM3_VERSION
-        default: 'v1alpha5'
-        description: 'Cluster API provider Metal3 version.'
-    - string:
-        name: TARGET_NODE_MEMORY
-        default: 4096
-        description: 'RAM size of the target host.'
-
-    properties:
-    - build-discarder:
-        days-to-keep: 30
-        num-to-keep: 300
-        artifact-days-to-keep: -1
-        artifact-num-to-keep: -1
-    - github:
-        url: https://github.com/{repo[org]}/{repo[name]}
-
-    triggers:
-    - github-pull-request:
-        admin-list:
-          - '{ci_github_admin_user}'
-        org-list: "{ci_github_whitelist_org}"
-        cron: 'H/5 * * * *'
-        auth-id: "{ci_ghprb_auth_id}"
-        trigger-phrase: '((.|\n)*\s)?/test-v1a5-integration(\s(.|\n)*)?'
-        skip-build-phrase: '/skip-test'
-        only-trigger-phrase: True
-        github-hooks: True
-        permit-all: False
-        auto-close-on-fail: False
-        allow-whitelist-orgs-as-admins: True
-        white-list-target-branches:
-          - 'master'
-          - 'main'
-          - 'release-0.5'
-          - 'release-0.1'
-        status-context: "test-v1a5-integration"
-        success-status: "Passed"
-        failure-status: "Failed"
-        error-status: "Error"
-        cancel-builds-on-update: True
-    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: "{ci_github_pipeline}"
-      lightweight-checkout: False
similarity index 95%
rename from jjb/metal3/job_capm3_v1a5_main_e2e_tests_centos.yml
rename to jjb/metal3/job_capm3_v1a5_main_e2e_tests.yml
index b2189baa79fe41798aaa5ca83d8f3d670fdd7ace..afa4dd3a538a188f74a1d8f49a4516f756475b4e 100644 (file)
@@ -25,9 +25,9 @@
 # pipeline job. The pipeline scripts are maintained in Metal3 CI project infra repository.
 
 - job-template:
-    id: capm3_v1a5_main_e2e_tests_centos
-    name: '{job_prefix}_main_v1a5_e2e_test_centos'
-    description: "CAPM3 v1alpha5 main e2e tests for {repo[org]}/{repo[name]} on CentOS."
+    id: capm3_v1a5_main_e2e_tests
+    name: '{job_prefix}_main_v1a5_e2e_test_{image_os}'
+    description: "CAPM3 v1alpha5 main e2e tests for {repo[org]}/{repo[name]} on {image_os}."
     project-type: pipeline
     defaults: global
     disabled: False
@@ -55,7 +55,7 @@
         description: 'Target branch of the PR'
     - string:
         name: IMAGE_OS
-        default: 'centos'
+        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
diff --git a/jjb/metal3/job_capm3_v1a5_main_e2e_tests_ubuntu.yml b/jjb/metal3/job_capm3_v1a5_main_e2e_tests_ubuntu.yml
deleted file mode 100644 (file)
index 30d5763..0000000
+++ /dev/null
@@ -1,104 +0,0 @@
----
-#
-# ============LICENSE_START=======================================================
-#  Copyright (C) 2019 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) main e2e tests.
-# This job can be triggered manually or periodically by the CI system. It creates a
-# pipeline job. The pipeline scripts are maintained in Metal3 CI project infra repository.
-
-- job-template:
-    id: capm3_v1a5_main_e2e_tests_ubuntu
-    name: '{job_prefix}_main_v1a5_e2e_test_ubuntu'
-    description: "CAPM3 v1alpha5 main e2e tests for {repo[org]}/{repo[name]} on Ubuntu."
-    project-type: pipeline
-    defaults: global
-    disabled: False
-    concurrent: True
-    parameters:
-    - string:
-        name: PROJECT_REPO_ORG
-        default: '{repo[org]}'
-        description: 'Project github repo org name'
-    - string:
-        name: PROJECT_REPO_NAME
-        default: '{repo[name]}'
-        description: 'Project github repo name'
-    - string:
-        name: ghprbActualCommit
-        default: 'release-0.5'
-        description: 'CI Repo branch for triggering manual build'
-    - string:
-        name: ghprbAuthorRepoGitUrl
-        default: 'https://github.com/{repo[org]}/{repo[name]}.git'
-        description: 'CI Repo URL for triggering manual build'
-    - string:
-        name: ghprbTargetBranch
-        default: 'release-0.5'
-        description: 'Target branch of the PR'
-    - 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: CAPI_VERSION
-        default: 'v1alpha4'
-        description: 'Cluster API version.'
-    - string:
-        name: CAPM3_VERSION
-        default: 'v1alpha5'
-        description: 'Cluster API provider Metal3 version.'
-    - string:
-        name: TARGET_NODE_MEMORY
-        default: 4096
-        description: 'RAM size of the target host.'
-    - string:
-        name: NUM_NODES
-        default: 4
-        description: 'Number of libvirt VMs.'
-    - string:
-        name: TESTS_FOR
-        default: "e2e_tests"
-        description: 'Tests using the e2e framework.'
-
-    properties:
-    - build-discarder:
-        days-to-keep: 30
-        num-to-keep: 300
-        artifact-days-to-keep: -1
-        artifact-num-to-keep: -1
-
-    triggers:
-      - timed: "H 20 * * *"
-
-    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: "{ci_github_pipeline}"
-      lightweight-checkout: False
similarity index 94%
rename from jjb/metal3/job_capm3_v1a5_main_integration_tests_centos.yml
rename to jjb/metal3/job_capm3_v1a5_main_integration_tests.yml
index dddd8312573b107bbc66b3e65e4d78f4ed38216c..05c65ed0dc87a748df7300b10a3b02aab74edae5 100644 (file)
@@ -25,9 +25,9 @@
 # pipeline job. The pipeline scripts are maintained in Metal3 CI project infra repository.
 
 - job-template:
-    id: capm3_v1a5_main_integration_tests_centos
-    name: '{job_prefix}_main_v1a5_integration_test_centos'
-    description: "CAPM3 v1alpha5 main integration tests for {repo[org]}/{repo[name]} on CentOS."
+    id: capm3_v1a5_main_integration_tests
+    name: '{job_prefix}_main_v1a5_integration_test_{image_os}'
+    description: "CAPM3 v1alpha5 main integration tests for {repo[org]}/{repo[name]} on {image_os}."
     project-type: pipeline
     defaults: global
     disabled: False
@@ -55,7 +55,7 @@
         description: 'Target branch of the PR'
     - string:
         name: IMAGE_OS
-        default: 'centos'
+        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
diff --git a/jjb/metal3/job_capm3_v1a5_main_integration_tests_ubuntu.yml b/jjb/metal3/job_capm3_v1a5_main_integration_tests_ubuntu.yml
deleted file mode 100644 (file)
index a22546a..0000000
+++ /dev/null
@@ -1,96 +0,0 @@
----
-#
-# ============LICENSE_START=======================================================
-#  Copyright (C) 2019 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) main integration 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_v1a5_main_integration_tests_ubuntu
-    name: '{job_prefix}_main_v1a5_integration_test_ubuntu'
-    description: "CAPM3 v1alpha5 main integration tests for {repo[org]}/{repo[name]} on Ubuntu."
-    project-type: pipeline
-    defaults: global
-    disabled: False
-    concurrent: True
-    parameters:
-    - string:
-        name: PROJECT_REPO_ORG
-        default: '{repo[org]}'
-        description: 'Project github repo org name'
-    - string:
-        name: PROJECT_REPO_NAME
-        default: '{repo[name]}'
-        description: 'Project github repo name'
-    - string:
-        name: ghprbActualCommit
-        default: 'master'
-        description: 'CI Repo branch for triggering manual build'
-    - string:
-        name: ghprbAuthorRepoGitUrl
-        default: 'https://github.com/{repo[org]}/{repo[name]}.git'
-        description: 'CI Repo URL for triggering manual build'
-    - string:
-        name: ghprbTargetBranch
-        default: 'master'
-        description: 'Target branch of the PR'
-    - 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: CAPI_VERSION
-        default: 'v1alpha4'
-        description: 'Cluster API version.'
-    - string:
-        name: CAPM3_VERSION
-        default: 'v1alpha5'
-        description: 'Cluster API provider Metal3 version.'
-    - string:
-        name: TARGET_NODE_MEMORY
-        default: 4096
-        description: 'RAM size of the target host.'
-
-    properties:
-    - build-discarder:
-        days-to-keep: 30
-        num-to-keep: 300
-        artifact-days-to-keep: -1
-        artifact-num-to-keep: -1
-
-    triggers:
-      - timed: "45 4 * * *"
-
-    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: "{ci_github_pipeline}"
-      lightweight-checkout: False
similarity index 93%
rename from jjb/metal3/job_capm3_v1b1_e2e_tests_centos.yml
rename to jjb/metal3/job_capm3_v1b1_e2e_tests.yml
index 46e4cf6c90945c2be7e91cba716bb7d8f4352bf8..76fad92e2f86c30de6ee854c92ed74317b46f6e3 100644 (file)
@@ -25,9 +25,9 @@
 # pipeline job. The pipeline scripts are maintained in Metal3 CI project infra repository.
 
 - job-template:
-    id: capm3_v1b1_e2e_tests_centos
-    name: '{job_prefix}_{name}_v1b1_e2e_test_centos'
-    description: "CAPM3 v1beta1 e2e tests for {repo[org]}/{repo[name]} on CentOS."
+    id: capm3_v1b1_e2e_tests
+    name: '{job_prefix}_{name}_v1b1_e2e_test_{image_os}'
+    description: "CAPM3 v1beta1 e2e tests for {repo[org]}/{repo[name]} on {image_os}."
     project-type: pipeline
     defaults: global
     disabled: False
@@ -55,7 +55,7 @@
         description: 'Target branch of the PR'
     - string:
         name: IMAGE_OS
-        default: 'centos'
+        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
@@ -90,7 +90,7 @@
         org-list: "{ci_github_whitelist_org}"
         cron: 'H/5 * * * *'
         auth-id: "{ci_ghprb_auth_id}"
-        trigger-phrase: '((.|\n)*\s)?/test-v1b1-centos-e2e(\s(.|\n)*)?'
+        trigger-phrase: '((.|\n)*\s)?/test-v1b1-{image_os}-e2e(\s(.|\n)*)?'
         skip-build-phrase: '/skip-test'
         only-trigger-phrase: True
         github-hooks: True
         white-list-target-branches:
           - 'master'
           - 'main'
-        status-context: "test-v1b1-centos-e2e"
+        status-context: "test-v1b1-{image_os}-e2e"
         success-status: "Passed"
         failure-status: "Failed"
         error-status: "Error"
diff --git a/jjb/metal3/job_capm3_v1b1_e2e_tests_ubuntu.yml b/jjb/metal3/job_capm3_v1b1_e2e_tests_ubuntu.yml
deleted file mode 100644 (file)
index 9df2d44..0000000
+++ /dev/null
@@ -1,121 +0,0 @@
----
-#
-# ============LICENSE_START=======================================================
-#  Copyright (C) 2021 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 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_v1b1_e2e_tests_ubuntu
-    name: '{job_prefix}_{name}_v1b1_e2e_test_ubuntu'
-    description: "CAPM3 v1beta1 e2e tests for {repo[org]}/{repo[name]} on Ubuntu."
-    project-type: pipeline
-    defaults: global
-    disabled: False
-    concurrent: True
-    parameters:
-    - string:
-        name: PROJECT_REPO_ORG
-        default: '{repo[org]}'
-        description: 'Project github repo org name'
-    - string:
-        name: PROJECT_REPO_NAME
-        default: '{repo[name]}'
-        description: 'Project github repo name'
-    - string:
-        name: ghprbActualCommit
-        default: 'master'
-        description: 'CI Repo branch for triggering manual build'
-    - string:
-        name: ghprbAuthorRepoGitUrl
-        default: 'https://github.com/{repo[org]}/{repo[name]}.git'
-        description: 'CI Repo URL for triggering manual build'
-    - string:
-        name: ghprbTargetBranch
-        default: 'master'
-        description: 'Target branch of the PR'
-    - 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: CAPI_VERSION
-        default: 'v1beta1'
-        description: 'Cluster API version. Can be v1beta1.'
-    - string:
-        name: CAPM3_VERSION
-        default: 'v1beta1'
-        description: 'Cluster API provider Metal3 version. Can be 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.'
-
-    properties:
-    - build-discarder:
-        days-to-keep: 30
-        num-to-keep: 300
-        artifact-days-to-keep: -1
-        artifact-num-to-keep: -1
-    - github:
-        url: https://github.com/{repo[org]}/{repo[name]}
-
-    triggers:
-    - github-pull-request:
-        admin-list:
-          - '{ci_github_admin_user}'
-        org-list: "{ci_github_whitelist_org}"
-        cron: 'H/5 * * * *'
-        auth-id: "{ci_ghprb_auth_id}"
-        trigger-phrase: '((.|\n)*\s)?/test-v1b1-e2e(\s(.|\n)*)?'
-        skip-build-phrase: '/skip-test'
-        only-trigger-phrase: True
-        github-hooks: True
-        permit-all: False
-        auto-close-on-fail: False
-        allow-whitelist-orgs-as-admins: True
-        white-list-target-branches:
-          - 'master'
-          - 'main'
-        status-context: "test-v1b1-e2e"
-        success-status: "Passed"
-        failure-status: "Failed"
-        error-status: "Error"
-        cancel-builds-on-update: True
-    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: "{ci_github_pipeline}"
-      lightweight-checkout: False
similarity index 92%
rename from jjb/metal3/job_capm3_v1b1_integration_tests_centos.yml
rename to jjb/metal3/job_capm3_v1b1_integration_tests.yml
index 3369f68a47b9755f006d7b6cb54cc5e5e65bd3a1..26ef8aef0045288fb4f362087ab31e472f0c9838 100644 (file)
@@ -25,9 +25,9 @@
 # pipeline job. The pipeline scripts are maintained in Metal3 CI project infra repository.
 
 - job-template:
-    id: capm3_v1b1_integration_tests_centos
-    name: '{job_prefix}_{name}_v1b1_integration_test_centos'
-    description: "CAPM3 v1beta1 integration tests for {repo[org]}/{repo[name]} on CentOS."
+    id: capm3_v1b1_integration_tests
+    name: '{job_prefix}_{name}_v1b1_integration_test_{image_os}'
+    description: "CAPM3 v1beta1 integration tests for {repo[org]}/{repo[name]} on {image_os}."
     project-type: pipeline
     defaults: global
     disabled: False
@@ -55,7 +55,7 @@
         description: 'Target branch of the PR'
     - string:
         name: IMAGE_OS
-        default: 'centos'
+        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
@@ -86,7 +86,7 @@
         org-list: "{ci_github_whitelist_org}"
         cron: 'H/5 * * * *'
         auth-id: "{ci_ghprb_auth_id}"
-        trigger-phrase: '((.|\n)*\s)?/test-v1b1-centos-integration(\s(.|\n)*)?'
+        trigger-phrase: '((.|\n)*\s)?/test-v1b1-{image_os}-integration(\s(.|\n)*)?'
         skip-build-phrase: '/skip-test'
         only-trigger-phrase: True
         github-hooks: True
@@ -96,7 +96,7 @@
         white-list-target-branches:
           - 'master'
           - 'main'
-        status-context: "test-v1b1-centos-integration"
+        status-context: "test-v1b1-{image_os}-integration"
         success-status: "Passed"
         failure-status: "Failed"
         error-status: "Error"
diff --git a/jjb/metal3/job_capm3_v1b1_integration_tests_ubuntu.yml b/jjb/metal3/job_capm3_v1b1_integration_tests_ubuntu.yml
deleted file mode 100644 (file)
index b6f8568..0000000
+++ /dev/null
@@ -1,117 +0,0 @@
----
-#
-# ============LICENSE_START=======================================================
-#  Copyright (C) 2019 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) integration 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_v1b1_integration_tests_ubuntu
-    name: '{job_prefix}_{name}_v1b1_integration_test_ubuntu'
-    description: "CAPM3 v1beta1 integration tests for {repo[org]}/{repo[name]} on Ubuntu."
-    project-type: pipeline
-    defaults: global
-    disabled: False
-    concurrent: True
-    parameters:
-    - string:
-        name: PROJECT_REPO_ORG
-        default: '{repo[org]}'
-        description: 'Project github repo org name'
-    - string:
-        name: PROJECT_REPO_NAME
-        default: '{repo[name]}'
-        description: 'Project github repo name'
-    - string:
-        name: ghprbActualCommit
-        default: 'main'
-        description: 'CI Repo branch for triggering manual build'
-    - string:
-        name: ghprbAuthorRepoGitUrl
-        default: 'https://github.com/{repo[org]}/{repo[name]}.git'
-        description: 'CI Repo URL for triggering manual build'
-    - string:
-        name: ghprbTargetBranch
-        default: 'main'
-        description: 'Target branch of the PR'
-    - 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: CAPI_VERSION
-        default: 'v1beta1'
-        description: 'Cluster API version.'
-    - string:
-        name: CAPM3_VERSION
-        default: 'v1beta1'
-        description: 'Cluster API provider Metal3 version.'
-    - string:
-        name: TARGET_NODE_MEMORY
-        default: 4096
-        description: 'RAM size of the target host.'
-
-    properties:
-    - build-discarder:
-        days-to-keep: 30
-        num-to-keep: 300
-        artifact-days-to-keep: -1
-        artifact-num-to-keep: -1
-    - github:
-        url: https://github.com/{repo[org]}/{repo[name]}
-
-    triggers:
-    - github-pull-request:
-        admin-list:
-          - '{ci_github_admin_user}'
-        org-list: "{ci_github_whitelist_org}"
-        cron: 'H/5 * * * *'
-        auth-id: "{ci_ghprb_auth_id}"
-        trigger-phrase: '((.|\n)*\s)?/test-v1b1-integration(\s(.|\n)*)?'
-        skip-build-phrase: '/skip-test'
-        only-trigger-phrase: True
-        github-hooks: True
-        permit-all: False
-        auto-close-on-fail: False
-        allow-whitelist-orgs-as-admins: True
-        white-list-target-branches:
-          - 'master'
-          - 'main'
-        status-context: "test-v1b1-integration"
-        success-status: "Passed"
-        failure-status: "Failed"
-        error-status: "Error"
-        cancel-builds-on-update: True
-    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: "{ci_github_pipeline}"
-      lightweight-checkout: False
similarity index 96%
rename from jjb/metal3/job_capm3_v1b1_main_e2e_tests_centos.yml
rename to jjb/metal3/job_capm3_v1b1_main_e2e_tests.yml
index f053093a2b2798f15ebafe6c976f455167a42e0b..d0b44a80af5a5d7bb2d477e10285fab02036ce72 100644 (file)
@@ -25,9 +25,9 @@
 # pipeline job. The pipeline scripts are maintained in Metal3 CI project infra repository.
 
 - job-template:
-    id: capm3_v1b1_main_e2e_tests_centos
-    name: '{job_prefix}_main_v1b1_e2e_test_centos'
-    description: "CAPM3 v1beta1 e2e tests for {repo[org]}/{repo[name]} on CentOS."
+    id: capm3_v1b1_main_e2e_tests
+    name: '{job_prefix}_main_v1b1_e2e_test_{image_os}'
+    description: "CAPM3 v1beta1 e2e tests for {repo[org]}/{repo[name]} on {image_os}."
     project-type: pipeline
     defaults: global
     disabled: False
@@ -55,7 +55,7 @@
         description: 'Target branch of the PR'
     - string:
         name: IMAGE_OS
-        default: 'centos'
+        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
diff --git a/jjb/metal3/job_capm3_v1b1_main_e2e_tests_ubuntu.yml b/jjb/metal3/job_capm3_v1b1_main_e2e_tests_ubuntu.yml
deleted file mode 100644 (file)
index 1b311b1..0000000
+++ /dev/null
@@ -1,104 +0,0 @@
----
-#
-# ============LICENSE_START=======================================================
-#  Copyright (C) 2019 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 tests.
-# This job can be triggered manually or periodically by the CI system. It creates a
-# pipeline job. The pipeline scripts are maintained in Metal3 CI project infra repository.
-
-- job-template:
-    id: capm3_v1b1_main_e2e_tests_ubuntu
-    name: '{job_prefix}_main_v1b1_e2e_test_ubuntu'
-    description: "CAPM3 v1beta1 main e2e tests for {repo[org]}/{repo[name]} on Ubuntu."
-    project-type: pipeline
-    defaults: global
-    disabled: False
-    concurrent: True
-    parameters:
-    - string:
-        name: PROJECT_REPO_ORG
-        default: '{repo[org]}'
-        description: 'Project github repo org name'
-    - string:
-        name: PROJECT_REPO_NAME
-        default: '{repo[name]}'
-        description: 'Project github repo name'
-    - string:
-        name: ghprbActualCommit
-        default: 'main'
-        description: 'CI Repo branch for triggering manual build'
-    - string:
-        name: ghprbAuthorRepoGitUrl
-        default: 'https://github.com/{repo[org]}/{repo[name]}.git'
-        description: 'CI Repo URL for triggering manual build'
-    - string:
-        name: ghprbTargetBranch
-        default: 'main'
-        description: 'Target branch of the PR'
-    - 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: CAPI_VERSION
-        default: 'v1beta1'
-        description: 'Cluster API version.'
-    - string:
-        name: CAPM3_VERSION
-        default: 'v1beta1'
-        description: 'Cluster API provider Metal3 version.'
-    - string:
-        name: TARGET_NODE_MEMORY
-        default: 4096
-        description: 'RAM size of the target host.'
-    - string:
-        name: NUM_NODES
-        default: 4
-        description: 'Number of libvirt VMs.'
-    - string:
-        name: TESTS_FOR
-        default: "e2e_tests"
-        description: 'Tests using the e2e framework.'
-
-    properties:
-    - build-discarder:
-        days-to-keep: 30
-        num-to-keep: 300
-        artifact-days-to-keep: -1
-        artifact-num-to-keep: -1
-
-    triggers:
-      - timed: "H 20 * * *"
-
-    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: "{ci_github_pipeline}"
-      lightweight-checkout: False
similarity index 95%
rename from jjb/metal3/job_capm3_v1b1_main_integration_tests_ubuntu.yml
rename to jjb/metal3/job_capm3_v1b1_main_integration_tests.yml
index 4e825f0b986d6288dec2a939a2d5b710947dc1f2..e63a1698c6bcc488221219cd8c3f056f708153ce 100644 (file)
@@ -25,9 +25,9 @@
 # pipeline job. The pipeline scripts are maintained in Metal3 CI project infra repository.
 
 - job-template:
-    id: capm3_v1b1_main_integration_tests_ubuntu
-    name: '{job_prefix}_main_v1b1_integration_test_ubuntu'
-    description: "CAPM3 v1beta1 integration tests for {repo[org]}/{repo[name]} on Ubuntu."
+    id: capm3_v1b1_main_integration_tests
+    name: '{job_prefix}_main_v1b1_integration_test_{image_os}'
+    description: "CAPM3 v1beta1 integration tests for {repo[org]}/{repo[name]} on {image_os}."
     project-type: pipeline
     defaults: global
     disabled: False
@@ -55,7 +55,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
diff --git a/jjb/metal3/job_capm3_v1b1_main_integration_tests_centos.yml b/jjb/metal3/job_capm3_v1b1_main_integration_tests_centos.yml
deleted file mode 100644 (file)
index acdaa53..0000000
+++ /dev/null
@@ -1,96 +0,0 @@
----
-#
-# ============LICENSE_START=======================================================
-#  Copyright (C) 2019 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) main integration 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_v1b1_main_integration_tests_centos
-    name: '{job_prefix}_main_v1b1_integration_test_centos'
-    description: "CAPM3 v1beta1 integration tests for {repo[org]}/{repo[name]} on CentOS."
-    project-type: pipeline
-    defaults: global
-    disabled: False
-    concurrent: True
-    parameters:
-    - string:
-        name: PROJECT_REPO_ORG
-        default: '{repo[org]}'
-        description: 'Project github repo org name'
-    - string:
-        name: PROJECT_REPO_NAME
-        default: '{repo[name]}'
-        description: 'Project github repo name'
-    - string:
-        name: ghprbActualCommit
-        default: 'master'
-        description: 'CI Repo branch for triggering manual build'
-    - string:
-        name: ghprbAuthorRepoGitUrl
-        default: 'https://github.com/{repo[org]}/{repo[name]}.git'
-        description: 'CI Repo URL for triggering manual build'
-    - string:
-        name: ghprbTargetBranch
-        default: 'master'
-        description: 'Target branch of the PR'
-    - string:
-        name: IMAGE_OS
-        default: 'centos'
-        description: 'Distribution to use for the target host as well as source and target cluster. Can be ubuntu or centos'
-    - string:
-        name: CAPI_VERSION
-        default: 'v1beta1'
-        description: 'Cluster API version.'
-    - string:
-        name: CAPM3_VERSION
-        default: 'v1beta1'
-        description: 'Cluster API provider Metal3 version.'
-    - string:
-        name: TARGET_NODE_MEMORY
-        default: 4096
-        description: 'RAM size of the target host.'
-
-    properties:
-    - build-discarder:
-        days-to-keep: 30
-        num-to-keep: 300
-        artifact-days-to-keep: -1
-        artifact-num-to-keep: -1
-
-    triggers:
-      - timed: "H 4 * * *"
-
-    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: "{ci_github_pipeline}"
-      lightweight-checkout: False
similarity index 92%
rename from jjb/metal3/job_feature_tests_centos.yml
rename to jjb/metal3/job_feature_tests.yml
index d7d8989af33e0ae71bca2bbe8e8b49e927584a34..a51f5f51ef1b760ce16d930cad98cb51e83bb9e6 100644 (file)
@@ -25,9 +25,9 @@
 # pipeline job. The pipeline scripts are maintained in Metal3 CI project infra repository.
 
 - job-template:
-    id: feature_tests_centos
-    name: '{job_prefix}_{name}_feature_tests_centos'
-    description: "Inspection, remediation, pivoting, node reuse and repivoting feature tests on Centos."
+    id: feature_tests
+    name: '{job_prefix}_{name}_feature_tests_{image_os}'
+    description: "Inspection, remediation, pivoting, node reuse and repivoting feature tests on {image_os}."
     project-type: pipeline
     defaults: global
     disabled: False
@@ -55,7 +55,7 @@
         description: 'Target branch of the PR'
     - string:
         name: IMAGE_OS
-        default: 'centos'
+        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
@@ -75,7 +75,7 @@
         description: 'Number of libvirt VMs.'
     - string:
         name: TESTS_FOR
-        default: "feature_tests_centos"
+        default: "feature_tests_{image_os}"
         description: 'Tests for pivoting and remediation.'
 
     properties:
@@ -94,7 +94,7 @@
         org-list: "{ci_github_whitelist_org}"
         cron: 'H/5 * * * *'
         auth-id: "{ci_ghprb_auth_id}"
-        trigger-phrase: '((.|\n)*\s)?/test-features-centos(\s(.|\n)*)?'
+        trigger-phrase: '((.|\n)*\s)?/test-features-{image_os}(\s(.|\n)*)?'
         skip-build-phrase: '/skip-test'
         only-trigger-phrase: True
         github-hooks: True
           - 'main'
           - 'release-0.5'
           - 'release-0.1'
-        status-context: "test-features-centos"
+        status-context: "test-features-{image_os}"
         success-status: "Passed"
         failure-status: "Failed"
         error-status: "Error"
diff --git a/jjb/metal3/job_feature_tests_ubuntu.yml b/jjb/metal3/job_feature_tests_ubuntu.yml
deleted file mode 100644 (file)
index 23a5587..0000000
+++ /dev/null
@@ -1,127 +0,0 @@
----
-#
-# ============LICENSE_START=======================================================
-#  Copyright (C) 2019 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) feature 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: feature_tests_ubuntu
-    name: '{job_prefix}_{name}_feature_tests_ubuntu'
-    description: "Inspection, remediation, pivoting, node reuse and repivoting feature tests on Ubuntu."
-    project-type: pipeline
-    defaults: global
-    disabled: False
-    concurrent: True
-    parameters:
-    - string:
-        name: PROJECT_REPO_ORG
-        default: '{repo[org]}'
-        description: 'Project github repo org name'
-    - string:
-        name: PROJECT_REPO_NAME
-        default: '{repo[name]}'
-        description: 'Project github repo name'
-    - string:
-        name: ghprbActualCommit
-        default: 'master'
-        description: 'CI Repo branch for triggering manual build'
-    - string:
-        name: ghprbAuthorRepoGitUrl
-        default: 'https://github.com/{repo[org]}/{repo[name]}.git'
-        description: 'CI Repo URL for triggering manual build'
-    - string:
-        name: ghprbTargetBranch
-        default: 'master'
-        description: 'Target branch of the PR'
-    - 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: CAPI_VERSION
-        default: 'v1beta1'
-        description: 'Cluster API version.'
-    - string:
-        name: CAPM3_VERSION
-        default: 'v1beta1'
-        description: 'Cluster API provider Metal3 version.'
-    - string:
-        name: TARGET_NODE_MEMORY
-        default: 4096
-        description: 'RAM size of the target host.'
-    - string:
-        name: NUM_NODES
-        default: 4
-        description: 'Number of libvirt VMs.'
-    - string:
-        name: TESTS_FOR
-        default: "feature_tests"
-        description: 'Tests for pivoting and remediation.'
-
-    properties:
-    - build-discarder:
-        days-to-keep: 30
-        num-to-keep: 300
-        artifact-days-to-keep: -1
-        artifact-num-to-keep: -1
-    - github:
-        url: https://github.com/{repo[org]}/{repo[name]}
-
-    triggers:
-    - github-pull-request:
-        admin-list:
-          - '{ci_github_admin_user}'
-        org-list: "{ci_github_whitelist_org}"
-        cron: 'H/5 * * * *'
-        auth-id: "{ci_ghprb_auth_id}"
-        trigger-phrase: '((.|\n)*\s)?/test-features(\s(.|\n)*)?'
-        skip-build-phrase: '/skip-test'
-        only-trigger-phrase: True
-        github-hooks: True
-        permit-all: False
-        auto-close-on-fail: False
-        allow-whitelist-orgs-as-admins: True
-        white-list-target-branches:
-          - 'master'
-          - 'main'
-          - 'release-0.5'
-          - 'release-0.1'
-        status-context: "test-features"
-        success-status: "Passed"
-        failure-status: "Failed"
-        error-status: "Error"
-        cancel-builds-on-update: True
-    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: "{ci_github_pipeline}"
-      lightweight-checkout: False
similarity index 92%
rename from jjb/metal3/job_keep_integration_vm_v1a5_centos.yml
rename to jjb/metal3/job_keep_integration_vm_v1a5.yml
index 2c4914d02199ed2027aed009144495027c8deda8..2405de73b1167c01c0cc24f889bd227cdad427ce 100644 (file)
@@ -26,9 +26,9 @@
 # pipeline job. The pipeline scripts are maintained in Metal3 CI project infra repository.
 
 - job-template:
-    id: keep_v1a5_test_centos_alive
-    name: '{job_prefix}_{name}_keep_v1a5_test_centos_alive'
-    description: "CAPM3 v1alpha5 integration tests for keeping the vm for {repo[org]}/{repo[name]} on CentOS."
+    id: keep_v1a5_test_alive
+    name: '{job_prefix}_{name}_keep_v1a5_test_{image_os}_alive'
+    description: "CAPM3 v1alpha5 integration tests for keeping the vm for {repo[org]}/{repo[name]} on {image_os}."
     project-type: pipeline
     defaults: global
     disabled: False
@@ -56,7 +56,7 @@
         description: 'Target branch of the PR'
     - string:
         name: IMAGE_OS
-        default: 'centos'
+        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
@@ -91,7 +91,7 @@
         org-list: "{ci_github_whitelist_org}"
         cron: 'H/5 * * * *'
         auth-id: "{ci_ghprb_auth_id}"
-        trigger-phrase: '((.|\n)*\s)?/keep-test-v1a5-centos-integration(\s(.|\n)*)?'
+        trigger-phrase: '((.|\n)*\s)?/keep-test-v1a5-{image_os}-integration(\s(.|\n)*)?'
         skip-build-phrase: '/skip-test'
         only-trigger-phrase: True
         github-hooks: True
           - 'main'
           - 'release-0.5'
           - 'release-0.1'
-        status-context: "keep-test-v1a5-centos-integration"
+        status-context: "keep-test-v1a5-{image_os}-integration"
         success-status: "Passed"
         failure-status: "Failed"
         error-status: "Error"
diff --git a/jjb/metal3/job_keep_integration_vm_v1a5_ubuntu.yml b/jjb/metal3/job_keep_integration_vm_v1a5_ubuntu.yml
deleted file mode 100644 (file)
index ff578fc..0000000
+++ /dev/null
@@ -1,124 +0,0 @@
----
-#
-# ============LICENSE_START=======================================================
-#  Copyright (C) 2019 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)
-# keeping integration test vm.
-# 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_v1a5_test_ubuntu_alive
-    name: '{job_prefix}_{name}_keep_v1a5_test_ubuntu_alive'
-    description: "CAPM3 v1alpha5 integration tests for keeping the vm for {repo[org]}/{repo[name]} on Ubuntu."
-    project-type: pipeline
-    defaults: global
-    disabled: False
-    concurrent: True
-    parameters:
-    - string:
-        name: PROJECT_REPO_ORG
-        default: '{repo[org]}'
-        description: 'Project github repo org name'
-    - string:
-        name: PROJECT_REPO_NAME
-        default: '{repo[name]}'
-        description: 'Project github repo name'
-    - string:
-        name: ghprbActualCommit
-        default: 'master'
-        description: 'CI Repo branch for triggering manual build'
-    - string:
-        name: ghprbAuthorRepoGitUrl
-        default: 'https://github.com/{repo[org]}/{repo[name]}.git'
-        description: 'CI Repo URL for triggering manual build'
-    - string:
-        name: ghprbTargetBranch
-        default: 'master'
-        description: 'Target branch of the PR'
-    - 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: CAPI_VERSION
-        default: 'v1alpha4'
-        description: 'Cluster API version.'
-    - string:
-        name: CAPM3_VERSION
-        default: 'v1alpha5'
-        description: 'Cluster API provider Metal3 version.'
-    - string:
-        name: TARGET_NODE_MEMORY
-        default: 4096
-        description: 'RAM size of the target host.'
-    - string:
-        name: SKIP_DELETION
-        default: 'true'
-        description: 'Whether tester VM should be deleted or not by the end of the test'
-
-    properties:
-    - build-discarder:
-        days-to-keep: 30
-        num-to-keep: 300
-        artifact-days-to-keep: -1
-        artifact-num-to-keep: -1
-    - github:
-        url: https://github.com/{repo[org]}/{repo[name]}
-
-    triggers:
-    - github-pull-request:
-        admin-list:
-          - '{ci_github_admin_user}'
-        org-list: "{ci_github_whitelist_org}"
-        cron: 'H/5 * * * *'
-        auth-id: "{ci_ghprb_auth_id}"
-        trigger-phrase: '((.|\n)*\s)?/keep-test-v1a5-integration(\s(.|\n)*)?'
-        skip-build-phrase: '/skip-test'
-        only-trigger-phrase: True
-        github-hooks: True
-        permit-all: False
-        auto-close-on-fail: False
-        allow-whitelist-orgs-as-admins: True
-        white-list-target-branches:
-          - 'master'
-          - 'main'
-          - 'release-0.5'
-          - 'release-0.1'
-        status-context: "keep-test-v1a5-integration"
-        success-status: "Passed"
-        failure-status: "Failed"
-        error-status: "Error"
-        cancel-builds-on-update: True
-    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: "{ci_github_pipeline}"
-      lightweight-checkout: False
similarity index 92%
rename from jjb/metal3/job_keep_integration_vm_v1b1_centos.yml
rename to jjb/metal3/job_keep_integration_vm_v1b1.yml
index a2ad7ec73866bf4907aa93f2f14f794ab7f8f529..791dbfc406b1e075dbb928b1d8c06656707fcdf1 100644 (file)
@@ -26,9 +26,9 @@
 # pipeline job. The pipeline scripts are maintained in Metal3 CI project infra repository.
 
 - job-template:
-    id: keep_v1b1_test_centos_alive
-    name: '{job_prefix}_{name}_keep_v1b1_test_centos_alive'
-    description: "CAPM3 v1beta1 integration tests for keeping the vm for {repo[org]}/{repo[name]} on CentOS."
+    id: keep_v1b1_test_alive
+    name: '{job_prefix}_{name}_keep_v1b1_test_{image_os}_alive'
+    description: "CAPM3 v1beta1 integration tests for keeping the vm for {repo[org]}/{repo[name]} on {image_os}."
     project-type: pipeline
     defaults: global
     disabled: False
@@ -56,7 +56,7 @@
         description: 'Target branch of the PR'
     - string:
         name: IMAGE_OS
-        default: 'centos'
+        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
@@ -91,7 +91,7 @@
         org-list: "{ci_github_whitelist_org}"
         cron: 'H/5 * * * *'
         auth-id: "{ci_ghprb_auth_id}"
-        trigger-phrase: '((.|\n)*\s)?/keep-test-v1b1-centos-integration(\s(.|\n)*)?'
+        trigger-phrase: '((.|\n)*\s)?/keep-test-v1b1-{image_os}-integration(\s(.|\n)*)?'
         skip-build-phrase: '/skip-test'
         only-trigger-phrase: True
         github-hooks: True
         white-list-target-branches:
           - 'master'
           - 'main'
-        status-context: "keep-test-v1b1-centos-integration"
+        status-context: "keep-test-v1b1-{image_os}-integration"
         success-status: "Passed"
         failure-status: "Failed"
         error-status: "Error"
diff --git a/jjb/metal3/job_keep_integration_vm_v1b1_ubuntu.yml b/jjb/metal3/job_keep_integration_vm_v1b1_ubuntu.yml
deleted file mode 100644 (file)
index 14eeff0..0000000
+++ /dev/null
@@ -1,122 +0,0 @@
----
-#
-# ============LICENSE_START=======================================================
-#  Copyright (C) 2019 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)
-# keeping integration test vm.
-# 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_v1b1_test_ubuntu_alive
-    name: '{job_prefix}_{name}_keep_v1b1_test_ubuntu_alive'
-    description: "CAPM3 v1beta1 integration tests for keeping the vm for {repo[org]}/{repo[name]} on Ubuntu."
-    project-type: pipeline
-    defaults: global
-    disabled: False
-    concurrent: True
-    parameters:
-    - string:
-        name: PROJECT_REPO_ORG
-        default: '{repo[org]}'
-        description: 'Project github repo org name'
-    - string:
-        name: PROJECT_REPO_NAME
-        default: '{repo[name]}'
-        description: 'Project github repo name'
-    - string:
-        name: ghprbActualCommit
-        default: 'main'
-        description: 'CI Repo branch for triggering manual build'
-    - string:
-        name: ghprbAuthorRepoGitUrl
-        default: 'https://github.com/{repo[org]}/{repo[name]}.git'
-        description: 'CI Repo URL for triggering manual build'
-    - string:
-        name: ghprbTargetBranch
-        default: 'main'
-        description: 'Target branch of the PR'
-    - 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: CAPI_VERSION
-        default: 'v1beta1'
-        description: 'Cluster API version.'
-    - string:
-        name: CAPM3_VERSION
-        default: 'v1beta1'
-        description: 'Cluster API provider Metal3 version.'
-    - string:
-        name: TARGET_NODE_MEMORY
-        default: 4096
-        description: 'RAM size of the target host.'
-    - string:
-        name: SKIP_DELETION
-        default: 'true'
-        description: 'Whether tester VM should be deleted or not by the end of the test'
-
-    properties:
-    - build-discarder:
-        days-to-keep: 30
-        num-to-keep: 300
-        artifact-days-to-keep: -1
-        artifact-num-to-keep: -1
-    - github:
-        url: https://github.com/{repo[org]}/{repo[name]}
-
-    triggers:
-    - github-pull-request:
-        admin-list:
-          - '{ci_github_admin_user}'
-        org-list: "{ci_github_whitelist_org}"
-        cron: 'H/5 * * * *'
-        auth-id: "{ci_ghprb_auth_id}"
-        trigger-phrase: '((.|\n)*\s)?/keep-test-v1b1-integration(\s(.|\n)*)?'
-        skip-build-phrase: '/skip-test'
-        only-trigger-phrase: True
-        github-hooks: True
-        permit-all: False
-        auto-close-on-fail: False
-        allow-whitelist-orgs-as-admins: True
-        white-list-target-branches:
-          - 'master'
-          - 'main'
-        status-context: "keep-test-v1b1-integration"
-        success-status: "Passed"
-        failure-status: "Failed"
-        error-status: "Error"
-        cancel-builds-on-update: True
-    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: "{ci_github_pipeline}"
-      lightweight-checkout: False
similarity index 94%
rename from jjb/metal3/job_main_feature_tests_centos.yml
rename to jjb/metal3/job_main_feature_tests.yml
index f4a5b61b27e0fbdecf16ab53435552704f48fa93..bedd509406de26b5bd5f0430be0887e154de24ba 100644 (file)
@@ -26,9 +26,9 @@
 # pipeline job. The pipeline scripts are maintained in Metal3 CI project infra repository.
 
 - job-template:
-    id: main_feature_tests_centos
-    name: '{job_prefix}_main_feature_tests_centos'
-    description: "Inspection, remediation, pivoting, node reuse and repivoting main feature tests on Centos."
+    id: main_feature_tests
+    name: '{job_prefix}_main_feature_tests_{image_os}'
+    description: "Inspection, remediation, pivoting, node reuse and repivoting main feature tests on {image_os}."
     project-type: pipeline
     defaults: global
     disabled: False
@@ -56,7 +56,7 @@
         description: 'Target branch of the PR'
     - string:
         name: IMAGE_OS
-        default: 'centos'
+        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
@@ -76,7 +76,7 @@
         description: 'Number of libvirt VMs.'
     - string:
         name: TESTS_FOR
-        default: "feature_tests_centos"
+        default: "feature_tests_{image_os}"
         description: 'Tests for pivoting and remediation.'
 
     properties:
diff --git a/jjb/metal3/job_main_feature_tests_ubuntu.yml b/jjb/metal3/job_main_feature_tests_ubuntu.yml
deleted file mode 100644 (file)
index 7e6029e..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
----
-#
-# ============LICENSE_START=======================================================
-#  Copyright (C) 2019 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)
-# main feature 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: main_feature_tests_ubuntu
-    name: '{job_prefix}_main_feature_tests_ubuntu'
-    description: "Inspection, remediation, pivoting, node reuse and repivoting main feature tests on Ubuntu."
-    project-type: pipeline
-    defaults: global
-    disabled: False
-    concurrent: True
-    parameters:
-    - string:
-        name: PROJECT_REPO_ORG
-        default: '{repo[org]}'
-        description: 'Project github repo org name'
-    - string:
-        name: PROJECT_REPO_NAME
-        default: '{repo[name]}'
-        description: 'Project github repo name'
-    - string:
-        name: ghprbActualCommit
-        default: 'master'
-        description: 'CI Repo branch for triggering manual build'
-    - string:
-        name: ghprbAuthorRepoGitUrl
-        default: 'https://github.com/{repo[org]}/{repo[name]}.git'
-        description: 'CI Repo URL for triggering manual build'
-    - string:
-        name: ghprbTargetBranch
-        default: 'master'
-        description: 'Target branch of the PR'
-    - 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: CAPI_VERSION
-        default: 'v1beta1'
-        description: 'Cluster API version.'
-    - string:
-        name: CAPM3_VERSION
-        default: 'v1beta1'
-        description: 'Cluster API provider Metal3 version.'
-    - string:
-        name: TARGET_NODE_MEMORY
-        default: 4096
-        description: 'RAM size of the target host.'
-    - string:
-        name: NUM_NODES
-        default: 4
-        description: 'Number of libvirt VMs.'
-    - string:
-        name: TESTS_FOR
-        default: "feature_tests"
-        description: 'Tests for pivoting and remediation.'
-
-    properties:
-    - build-discarder:
-        days-to-keep: 30
-        num-to-keep: 300
-        artifact-days-to-keep: -1
-        artifact-num-to-keep: -1
-
-    triggers:
-      - timed: "H 17 * * *"
-
-    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: "{ci_github_pipeline}"
-      lightweight-checkout: False
similarity index 93%
rename from jjb/metal3/job_metal3_dev_tools_integration_test_centos.yml
rename to jjb/metal3/job_metal3_dev_tools_integration_test.yml
index 84db9cc2ce68db95418571140f548b31b2ea49a6..9e19186deb250b8dbdf9d04a4a9a2923e284dac7 100644 (file)
@@ -26,9 +26,9 @@
 # pipeline job. The pipeline scripts are maintained in Nordix/metal3-dev-tools repository.
 
 - job-template:
-    id: metal3_dev_tools_integration_test_centos
-    name: 'metal3_dev_tools_integration_test_centos'
-    description: "CAPM3 v1beta1 metal3-dev-tools integration tests for {repo[org]}/{repo[name]} on CentOS."
+    id: metal3_dev_tools_integration_test
+    name: 'metal3_dev_tools_integration_test_{image_os}'
+    description: "CAPM3 v1beta1 metal3-dev-tools integration tests for {repo[org]}/{repo[name]} on {image_os}."
     project-type: pipeline
     defaults: global
     disabled: False
@@ -56,7 +56,7 @@
         description: 'Target branch of the PR'
     - string:
         name: IMAGE_OS
-        default: 'centos'
+        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
@@ -91,7 +91,7 @@
         org-list: "{ci_github_whitelist_org}"
         cron: 'H/5 * * * *'
         auth-id: "{ci_ghprb_auth_id}"
-        trigger-phrase: '((.|\n)*\s)?/test-integration-metal3-dev-tools-centos(\s(.|\n)*)?'
+        trigger-phrase: '((.|\n)*\s)?/test-integration-metal3-dev-tools-{image_os}(\s(.|\n)*)?'
         skip-build-phrase: '/skip-test'
         only-trigger-phrase: True
         github-hooks: True
         white-list-target-branches:
           - 'master'
           - 'main'
-        status-context: "test-integration-metal3-dev-tools-centos"
+        status-context: "test-integration-metal3-dev-tools-{image_os}"
         success-status: "Passed"
         failure-status: "Failed"
         error-status: "Error"
diff --git a/jjb/metal3/job_metal3_dev_tools_integration_test_ubuntu.yml b/jjb/metal3/job_metal3_dev_tools_integration_test_ubuntu.yml
deleted file mode 100644 (file)
index f3c31c7..0000000
+++ /dev/null
@@ -1,121 +0,0 @@
----
-#
-# ============LICENSE_START=======================================================
-#  Copyright (C) 2019 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)
-# dev tools integration tests.
-# This job can be triggered manually or through a Github pull request. It creates a
-# pipeline job. The pipeline scripts are maintained in Nordix/metal3-dev-tools repository.
-
-- job-template:
-    id: metal3_dev_tools_integration_test_ubuntu
-    name: 'metal3_dev_tools_integration_test_ubuntu'
-    description: "CAPM3 v1beta1 metal3-dev-tools integration tests for {repo[org]}/{repo[name]} on Ubuntu."
-    project-type: pipeline
-    defaults: global
-    disabled: False
-    concurrent: True
-    parameters:
-    - string:
-        name: PROJECT_REPO_ORG
-        default: '{repo[org]}'
-        description: 'Project github repo org name'
-    - string:
-        name: PROJECT_REPO_NAME
-        default: '{repo[name]}'
-        description: 'Project github repo name'
-    - string:
-        name: ghprbActualCommit
-        default: 'master'
-        description: 'CI Repo branch for triggering manual build'
-    - string:
-        name: ghprbAuthorRepoGitUrl
-        default: 'https://github.com/{repo[org]}/{repo[name]}.git'
-        description: 'CI Repo URL for triggering manual build'
-    - string:
-        name: ghprbTargetBranch
-        default: 'master'
-        description: 'Target branch of the PR'
-    - 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: CAPI_VERSION
-        default: 'v1beta1'
-        description: 'Cluster API version. Can be v1alpha4.'
-    - string:
-        name: CAPM3_VERSION
-        default: 'v1beta1'
-        description: 'Cluster API provider Metal3 version. Can be v1alpha5 or v1alpha4.'
-    - string:
-        name: TARGET_NODE_MEMORY
-        default: 4096
-        description: 'RAM size of the target host.'
-    - string:
-        name: KUBERNETES_VERSION
-        default: "v1.23.3"
-        description: 'Kubernetes version'
-
-    properties:
-    - build-discarder:
-        days-to-keep: 30
-        num-to-keep: 300
-        artifact-days-to-keep: -1
-        artifact-num-to-keep: -1
-    - github:
-        url: https://github.com/{repo[org]}/{repo[name]}
-
-    triggers:
-    - github-pull-request:
-        admin-list:
-          - '{ci_github_admin_user}'
-        org-list: "{ci_github_whitelist_org}"
-        cron: 'H/5 * * * *'
-        auth-id: "{ci_ghprb_auth_id}"
-        trigger-phrase: '((.|\n)*\s)?/test-integration-metal3-dev-tools-ubuntu(\s(.|\n)*)?'
-        skip-build-phrase: '/skip-test'
-        only-trigger-phrase: True
-        github-hooks: True
-        permit-all: False
-        auto-close-on-fail: False
-        allow-whitelist-orgs-as-admins: True
-        white-list-target-branches:
-          - 'master'
-        status-context: "test-integration-metal3-dev-tools-ubuntu"
-        success-status: "Passed"
-        failure-status: "Failed"
-        error-status: "Error"
-        cancel-builds-on-update: True
-    pipeline-scm:
-      scm:
-      - git:
-          url: "{ci_github_repo}"
-          credentials-id: "{ci_github_jenkins_credentials_id}"
-          branches:
-            - '{branch|master}'
-          name: 'origin'
-          refspec: '+refs/heads/*:refs/remotes/origin/*'
-          wipe-workspace: True
-          honor-refspec: True
-          shallow-clone: False
-      script-path: 'ci/jobs/metal3_dev_tools_integration_tests.pipeline'
-      lightweight-checkout: False
index 070c39969c3b4dd33cfffca89c4a7208a5bbd7be..db6a69123dd15db0cdcf5268ace1d20b97b04c13 100644 (file)
     - openstack_node_image_building
     - main_openstack_ipa_and_ironic_image_building
     - metal3_ipa_and_ironic_image_building_test
-    - metal3_dev_tools_integration_test_centos
-    - metal3_dev_tools_integration_test_ubuntu
+    - metal3_dev_tools_integration_test:
+        image_os:
+          - ubuntu
+          - centos
     - artifactory_cleanup
     repo:
       org: "Nordix"
         image_os:
           - ubuntu
           - centos
-    - capm3_v1a5_integration_tests_centos
-    - capm3_v1a5_integration_tests_ubuntu
-    - capm3_v1b1_integration_tests_centos
-    - capm3_v1b1_integration_tests_ubuntu
-    - feature_tests_ubuntu
-    - feature_tests_centos
+    - capm3_v1a5_integration_tests:
+        image_os:
+          - ubuntu
+          - centos
+    - capm3_v1b1_integration_tests:
+        image_os:
+          - ubuntu
+          - centos
+    - feature_tests:
+        image_os:
+          - ubuntu
+          - centos
     - feature_tests_upgrade_ubuntu
     - bml_integration_tests_centos
-    - keep_v1b1_test_ubuntu_alive
-    - keep_v1b1_test_centos_alive
-    - keep_v1a5_test_ubuntu_alive
-    - keep_v1a5_test_centos_alive
+    - keep_v1b1_test_alive:
+        image_os:
+          - ubuntu
+          - centos
+    - keep_v1a5_test_alive:
+        image_os:
+          - ubuntu
+          - centos
 
 - project:
     name: 'project_infra_cleanup'
         image_os:
           - ubuntu
           - centos
-    - capm3_v1a5_integration_tests_centos
-    - capm3_v1a5_integration_tests_ubuntu
-    - capm3_v1b1_integration_tests_centos
-    - capm3_v1b1_integration_tests_ubuntu
-    - keep_v1b1_test_ubuntu_alive
-    - keep_v1b1_test_centos_alive
-    - keep_v1a5_test_ubuntu_alive
-    - keep_v1a5_test_centos_alive
-    - feature_tests_ubuntu
+    - capm3_v1a5_integration_tests:
+        image_os:
+          - ubuntu
+          - centos
+    - capm3_v1b1_integration_tests:
+        image_os:
+          - ubuntu
+          - centos
+    - keep_v1b1_test_alive:
+        image_os:
+          - ubuntu
+          - centos
+    - keep_v1a5_test_alive:
+        image_os:
+          - ubuntu
+          - centos
+    - feature_tests:
+        image_os: ubuntu
 
 - project:
     name: "ipam"
         image_os:
           - ubuntu
           - centos
-    - capm3_v1a5_integration_tests_centos
-    - capm3_v1a5_integration_tests_ubuntu
-    - capm3_v1b1_integration_tests_centos
-    - capm3_v1b1_integration_tests_ubuntu
-    - keep_v1b1_test_ubuntu_alive
-    - keep_v1b1_test_centos_alive
-    - keep_v1a5_test_ubuntu_alive
-    - keep_v1a5_test_centos_alive
+    - capm3_v1a5_integration_tests:
+        image_os:
+          - ubuntu
+          - centos
+    - capm3_v1b1_integration_tests:
+        image_os:
+          - ubuntu
+          - centos
+    - keep_v1b1_test_alive:
+        image_os:
+          - ubuntu
+          - centos
+    - keep_v1a5_test_alive:
+        image_os:
+          - ubuntu
+          - centos
 
 - project:
     name: "metal3_dev_env"
+    repo:
+      org: "metal3-io"
+      name: "metal3-dev-env"
     jobs:
     - capm3_v1a4_integration_tests:
         image_os:
           - ubuntu
           - centos
-    - capm3_v1a4_main_integration_tests_centos
-    - capm3_v1a4_main_integration_tests_ubuntu
-    - capm3_v1a5_integration_tests_centos
-    - capm3_v1a5_integration_tests_ubuntu
-    - capm3_v1a5_main_integration_tests_centos
-    - capm3_v1a5_main_integration_tests_ubuntu
-    - capm3_v1b1_integration_tests_centos
-    - capm3_v1b1_integration_tests_ubuntu
-    - capm3_v1b1_main_integration_tests_centos
-    - capm3_v1b1_main_integration_tests_ubuntu
-    - feature_tests_ubuntu
-    - feature_tests_centos
+    - capm3_v1a4_main_integration_tests:
+        image_os:
+          - ubuntu
+          - centos
+    - capm3_v1a5_integration_tests:
+        image_os:
+          - ubuntu
+          - centos
+    - capm3_v1a5_main_integration_tests:
+        image_os:
+          - ubuntu
+          - centos
+    - capm3_v1b1_integration_tests:
+        image_os:
+          - ubuntu
+          - centos
+    - capm3_v1b1_main_integration_tests:
+        image_os:
+          - ubuntu
+          - centos
+    - feature_tests:
+        image_os:
+          - ubuntu
+          - centos
     - feature_tests_upgrade_ubuntu
-    - main_feature_tests_ubuntu
-    - main_feature_tests_centos
+    - main_feature_tests:
+        image_os:
+          - ubuntu
+          - centos
     - main_feature_tests_upgrade_ubuntu
     - bml_integration_tests_centos
     - bml_main_integration_tests_centos
-    - keep_v1b1_test_ubuntu_alive
-    - keep_v1b1_test_centos_alive
-    - keep_v1a5_test_ubuntu_alive
-    - keep_v1a5_test_centos_alive
-
-    repo:
-      org: "metal3-io"
-      name: "metal3-dev-env"
+    - keep_v1b1_test_alive:
+        image_os:
+          - ubuntu
+          - centos
+    - keep_v1a5_test_alive:
+        image_os:
+          - ubuntu
+          - centos
 
 - project:
     name: "capm3"
         image_os:
           - ubuntu
           - centos
-    - capm3_v1a5_integration_tests_centos
-    - capm3_v1a5_integration_tests_ubuntu
-    - capm3_v1a5_e2e_tests_ubuntu
-    - capm3_v1a5_e2e_tests_centos
-    - capm3_v1a5_main_e2e_tests_ubuntu
-    - capm3_v1a5_main_e2e_tests_centos
-    - capm3_v1b1_integration_tests_centos
-    - capm3_v1b1_integration_tests_ubuntu
-    - capm3_v1b1_e2e_tests_centos
-    - capm3_v1b1_e2e_tests_ubuntu
+    - capm3_v1a5_integration_tests:
+        image_os:
+          - ubuntu
+          - centos
+    - capm3_v1a5_e2e_tests:
+        image_os:
+          - ubuntu
+          - centos
+    - capm3_v1a5_main_e2e_tests:
+        image_os:
+          - ubuntu
+          - centos
+    - capm3_v1b1_integration_tests:
+        image_os:
+          - ubuntu
+          - centos
+    - capm3_v1b1_e2e_tests:
+        image_os:
+          - ubuntu
+          - centos
     - capm3_v1b1_e2e_upgrade_tests_ubuntu
-    - capm3_v1b1_main_e2e_tests_centos
-    - capm3_v1b1_main_e2e_tests_ubuntu
-    - keep_v1b1_test_ubuntu_alive
-    - keep_v1b1_test_centos_alive
-    - keep_v1a5_test_ubuntu_alive
-    - keep_v1a5_test_centos_alive
+    - capm3_v1b1_main_e2e_tests:
+        image_os:
+          - ubuntu
+          - centos
+    - keep_v1b1_test_alive:
+        image_os:
+          - ubuntu
+          - centos
+    - keep_v1a5_test_alive:
+        image_os:
+          - ubuntu
+          - centos
 
 
 - project:
         image_os:
           - ubuntu
           - centos
-    - capm3_v1a5_integration_tests_centos
-    - capm3_v1a5_integration_tests_ubuntu
-    - capm3_v1b1_integration_tests_centos
-    - capm3_v1b1_integration_tests_ubuntu
-    - keep_v1b1_test_ubuntu_alive
-    - keep_v1b1_test_centos_alive
-    - keep_v1a5_test_ubuntu_alive
-    - keep_v1a5_test_centos_alive
+    - capm3_v1a5_integration_tests:
+        image_os:
+          - ubuntu
+          - centos
+    - capm3_v1b1_integration_tests:
+        image_os:
+          - ubuntu
+          - centos
+    - keep_v1b1_test_alive:
+        image_os:
+          - ubuntu
+          - centos
+    - keep_v1a5_test_alive:
+        image_os:
+          - ubuntu
+          - centos
 
 - project:
     name: "ironic_ipa_downloader"
     jobs:
     - capm3_v1a4_integration_tests:
         image_os: ubuntu
-    - capm3_v1a5_integration_tests_ubuntu
-    - capm3_v1b1_integration_tests_centos
-    - capm3_v1b1_integration_tests_ubuntu
+    - capm3_v1a5_integration_tests:
+        image_os: ubuntu
+    - capm3_v1b1_integration_tests:
+        image_os:
+          - ubuntu
+          - centos