blob: 45388232483e056e4ff567c62df26263171ab351 [file] [log] [blame]
kashifest5352e7b2020-12-04 17:39:50 +02001#
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 Gofurovb1e99612022-02-04 10:48:36 +020022# This file contains job template definition for node image building tests tests.
kashifest5352e7b2020-12-04 17:39:50 +020023# This job can be triggered manually or through a Github pull request. It creates a
Furkat Gofurovb1e99612022-02-04 10:48:36 +020024# pipeline job. The pipeline scripts are maintained in Nordix/metal3-dev-tools repository.
kashifest5352e7b2020-12-04 17:39:50 +020025
Tuomo Tanskanenbd635562023-09-05 13:59:00 +030026# NOTE: KUBERNETES_VERSION and KUBECTL_SHA256 are changed as a pair
27
kashifest5352e7b2020-12-04 17:39:50 +020028- job-template:
Sunnatillo57c31cd2024-04-30 14:37:23 +030029 id: node_image_building
30 name: '{job_prefix}_periodic_node_image_building'
31 description: "Builder job for node images for Metal3 CI"
kashifest5352e7b2020-12-04 17:39:50 +020032 project-type: pipeline
33 defaults: global
34 disabled: False
35 concurrent: True
Feruzjon Muyassarova554a622021-09-22 14:47:13 +030036 parameters:
37 - string:
Sunnatillo57c31cd2024-04-30 14:37:23 +030038 name: IMAGE_TYPE
39 default: 'node'
40 description: 'Specifies the type of image being built in pipeline'
41 - string:
Feruzjon Muyassarova554a622021-09-22 14:47:13 +030042 name: KUBERNETES_VERSION
Kashif Khan3598bcb2024-04-30 14:12:31 +030043 default: "v1.30.0"
Feruzjon Muyassarova554a622021-09-22 14:47:13 +030044 description: 'Kubernetes version'
Kashif Khanfef9b272022-10-07 15:27:46 +030045 - string:
Tuomo Tanskanenbd635562023-09-05 13:59:00 +030046 name: KUBECTL_SHA256
Kashif Khan3598bcb2024-04-30 14:12:31 +030047 default: '7c3807c0f5c1b30110a2ff1e55da1d112a6d0096201f1beb81b269f582b5d1c5' # v1.30.0
Tuomo Tanskanenbd635562023-09-05 13:59:00 +030048 description: 'Kubectl SHA256 digest matching KUBERNETES_VERSION'
49 - string:
Kashif Khanfef9b272022-10-07 15:27:46 +030050 name: CRICTL_VERSION
Kashif Khan3598bcb2024-04-30 14:12:31 +030051 default: "v1.30.0"
Kashif Khanfef9b272022-10-07 15:27:46 +030052 description: 'CRICTL VERSION'
Kashif Khan560ad252023-01-03 09:41:15 +020053 - string:
54 name: CRIO_VERSION
Kashif Khan3598bcb2024-04-30 14:12:31 +030055 default: "v1.29.3"
Kashif Khan560ad252023-01-03 09:41:15 +020056 description: 'CRI-O VERSION'
Sunnatillo3651dd72021-11-15 16:47:25 +020057
kashifest5352e7b2020-12-04 17:39:50 +020058 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
Sunnatillo57c31cd2024-04-30 14:37:23 +030065 triggers:
66 - timed: "0 5 */14 * *"
67
kashifest5352e7b2020-12-04 17:39:50 +020068 pipeline-scm:
69 scm:
70 - git:
71 url: "{ci_github_repo}"
72 credentials-id: "{ci_github_jenkins_credentials_id}"
73 branches:
Kashif Khan3598bcb2024-04-30 14:12:31 +030074 - 'main'
kashifest5352e7b2020-12-04 17:39:50 +020075 name: 'origin'
76 refspec: '+refs/heads/*:refs/remotes/origin/*'
77 wipe-workspace: True
78 honor-refspec: True
79 shallow-clone: False
Sunnatillo60720662024-05-02 13:29:33 +030080 script-path: "{image_building_pipeline}"
kashifest5352e7b2020-12-04 17:39:50 +020081 lightweight-checkout: False