blob: 18e02ae28dfb51fd2bef6dd24a0407c7e50b8d13 [file] [log] [blame]
maelkf8928002019-09-19 14:53:02 +03001#
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 Openstack image building tests.
maelkf8928002019-09-19 14:53:02 +030023# 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.
maelkf8928002019-09-19 14:53:02 +030025
Tuomo Tanskanenbd635562023-09-05 13:59:00 +030026# NOTE: KUBERNETES_VERSION and KUBECTL_SHA256 are changed as a pair
27
maelkf8928002019-09-19 14:53:02 +030028- job-template:
29 id: openstack_image_building
maelk4a421222019-09-23 12:51:54 +030030 name: '{job_prefix}_openstack_image_building'
Furkat Gofurovb1e99612022-02-04 10:48:36 +020031 description: "Builder job for Openstack images for Metal3 CI"
maelkf8928002019-09-19 14:53:02 +030032 project-type: pipeline
33 defaults: global
34 disabled: False
35 concurrent: True
Feruzjon Muyassarova554a622021-09-22 14:47:13 +030036 parameters:
37 - string:
38 name: KUBERNETES_VERSION
Kashif Khan3598bcb2024-04-30 14:12:31 +030039 default: "v1.30.0"
Feruzjon Muyassarova554a622021-09-22 14:47:13 +030040 description: 'Kubernetes version'
Feruzjon Muyassarov50ffef22021-09-23 16:04:09 +030041 - string:
Tuomo Tanskanenbd635562023-09-05 13:59:00 +030042 name: KUBECTL_SHA256
Kashif Khan3598bcb2024-04-30 14:12:31 +030043 default: '7c3807c0f5c1b30110a2ff1e55da1d112a6d0096201f1beb81b269f582b5d1c5' # v1.30.0
Tuomo Tanskanenbd635562023-09-05 13:59:00 +030044 description: 'Kubectl SHA256 digest matching KUBERNETES_VERSION'
45 - string:
Feruzjon Muyassarov50ffef22021-09-23 16:04:09 +030046 name: KIND_NODE_IMAGE_VERSION
Kashif Khan3598bcb2024-04-30 14:12:31 +030047 default: "v1.29.2"
Feruzjon Muyassarov50ffef22021-09-23 16:04:09 +030048 description: 'Kind node container image version'
49
maelkf8928002019-09-19 14:53:02 +030050 properties:
51 - build-discarder:
52 days-to-keep: 30
53 num-to-keep: 300
54 artifact-days-to-keep: -1
55 artifact-num-to-keep: -1
maelkf8928002019-09-19 14:53:02 +030056
maelkf8928002019-09-19 14:53:02 +030057 pipeline-scm:
58 scm:
59 - git:
maelk2f684f02020-01-20 12:22:14 +020060 url: "{ci_github_repo}"
maelkf8928002019-09-19 14:53:02 +030061 credentials-id: "{ci_github_jenkins_credentials_id}"
62 branches:
Kashif Khan3598bcb2024-04-30 14:12:31 +030063 - 'main'
maelkf8928002019-09-19 14:53:02 +030064 name: 'origin'
65 refspec: '+refs/heads/*:refs/remotes/origin/*'
66 wipe-workspace: True
67 honor-refspec: True
68 shallow-clone: False
69 script-path: 'ci/jobs/{id}.pipeline'
70 lightweight-checkout: False