kashifest | 5352e7b | 2020-12-04 17:39:50 +0200 | [diff] [blame] | 1 | # |
| 2 | # ============LICENSE_START======================================================= |
| 3 | # Copyright (C) 2019 Nordix Foundation. |
| 4 | # ================================================================================ |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | # |
| 17 | # SPDX-License-Identifier: Apache-2.0 |
| 18 | # ============LICENSE_END========================================================= |
| 19 | |
| 20 | # Description: |
| 21 | # ============ |
Furkat Gofurov | b1e9961 | 2022-02-04 10:48:36 +0200 | [diff] [blame] | 22 | # This file contains job template definition for node image building tests tests. |
kashifest | 5352e7b | 2020-12-04 17:39:50 +0200 | [diff] [blame] | 23 | # This job can be triggered manually or through a Github pull request. It creates a |
Furkat Gofurov | b1e9961 | 2022-02-04 10:48:36 +0200 | [diff] [blame] | 24 | # pipeline job. The pipeline scripts are maintained in Nordix/metal3-dev-tools repository. |
kashifest | 5352e7b | 2020-12-04 17:39:50 +0200 | [diff] [blame] | 25 | |
Tuomo Tanskanen | bd63556 | 2023-09-05 13:59:00 +0300 | [diff] [blame] | 26 | # NOTE: KUBERNETES_VERSION and KUBECTL_SHA256 are changed as a pair |
| 27 | |
kashifest | 5352e7b | 2020-12-04 17:39:50 +0200 | [diff] [blame] | 28 | - job-template: |
Sunnatillo | 57c31cd | 2024-04-30 14:37:23 +0300 | [diff] [blame] | 29 | id: node_image_building |
| 30 | name: '{job_prefix}_periodic_node_image_building' |
| 31 | description: "Builder job for node images for Metal3 CI" |
kashifest | 5352e7b | 2020-12-04 17:39:50 +0200 | [diff] [blame] | 32 | project-type: pipeline |
| 33 | defaults: global |
| 34 | disabled: False |
| 35 | concurrent: True |
Feruzjon Muyassarov | a554a62 | 2021-09-22 14:47:13 +0300 | [diff] [blame] | 36 | parameters: |
| 37 | - string: |
Sunnatillo | 57c31cd | 2024-04-30 14:37:23 +0300 | [diff] [blame] | 38 | name: IMAGE_TYPE |
| 39 | default: 'node' |
| 40 | description: 'Specifies the type of image being built in pipeline' |
| 41 | - string: |
Feruzjon Muyassarov | a554a62 | 2021-09-22 14:47:13 +0300 | [diff] [blame] | 42 | name: KUBERNETES_VERSION |
Kashif Khan | 3598bcb | 2024-04-30 14:12:31 +0300 | [diff] [blame] | 43 | default: "v1.30.0" |
Feruzjon Muyassarov | a554a62 | 2021-09-22 14:47:13 +0300 | [diff] [blame] | 44 | description: 'Kubernetes version' |
Kashif Khan | fef9b27 | 2022-10-07 15:27:46 +0300 | [diff] [blame] | 45 | - string: |
Tuomo Tanskanen | bd63556 | 2023-09-05 13:59:00 +0300 | [diff] [blame] | 46 | name: KUBECTL_SHA256 |
Kashif Khan | 3598bcb | 2024-04-30 14:12:31 +0300 | [diff] [blame] | 47 | default: '7c3807c0f5c1b30110a2ff1e55da1d112a6d0096201f1beb81b269f582b5d1c5' # v1.30.0 |
Tuomo Tanskanen | bd63556 | 2023-09-05 13:59:00 +0300 | [diff] [blame] | 48 | description: 'Kubectl SHA256 digest matching KUBERNETES_VERSION' |
| 49 | - string: |
Kashif Khan | fef9b27 | 2022-10-07 15:27:46 +0300 | [diff] [blame] | 50 | name: CRICTL_VERSION |
Kashif Khan | 3598bcb | 2024-04-30 14:12:31 +0300 | [diff] [blame] | 51 | default: "v1.30.0" |
Kashif Khan | fef9b27 | 2022-10-07 15:27:46 +0300 | [diff] [blame] | 52 | description: 'CRICTL VERSION' |
Kashif Khan | 560ad25 | 2023-01-03 09:41:15 +0200 | [diff] [blame] | 53 | - string: |
| 54 | name: CRIO_VERSION |
Kashif Khan | 3598bcb | 2024-04-30 14:12:31 +0300 | [diff] [blame] | 55 | default: "v1.29.3" |
Kashif Khan | 560ad25 | 2023-01-03 09:41:15 +0200 | [diff] [blame] | 56 | description: 'CRI-O VERSION' |
Sunnatillo | 3651dd7 | 2021-11-15 16:47:25 +0200 | [diff] [blame] | 57 | |
kashifest | 5352e7b | 2020-12-04 17:39:50 +0200 | [diff] [blame] | 58 | properties: |
| 59 | - build-discarder: |
| 60 | days-to-keep: 30 |
| 61 | num-to-keep: 300 |
| 62 | artifact-days-to-keep: -1 |
| 63 | artifact-num-to-keep: -1 |
| 64 | |
Sunnatillo | 57c31cd | 2024-04-30 14:37:23 +0300 | [diff] [blame] | 65 | triggers: |
| 66 | - timed: "0 5 */14 * *" |
| 67 | |
kashifest | 5352e7b | 2020-12-04 17:39:50 +0200 | [diff] [blame] | 68 | pipeline-scm: |
| 69 | scm: |
| 70 | - git: |
| 71 | url: "{ci_github_repo}" |
| 72 | credentials-id: "{ci_github_jenkins_credentials_id}" |
| 73 | branches: |
Kashif Khan | 3598bcb | 2024-04-30 14:12:31 +0300 | [diff] [blame] | 74 | - 'main' |
kashifest | 5352e7b | 2020-12-04 17:39:50 +0200 | [diff] [blame] | 75 | name: 'origin' |
| 76 | refspec: '+refs/heads/*:refs/remotes/origin/*' |
| 77 | wipe-workspace: True |
| 78 | honor-refspec: True |
| 79 | shallow-clone: False |
Sunnatillo | 6072066 | 2024-05-02 13:29:33 +0300 | [diff] [blame] | 80 | script-path: "{image_building_pipeline}" |
kashifest | 5352e7b | 2020-12-04 17:39:50 +0200 | [diff] [blame] | 81 | lightweight-checkout: False |