remove KUBECTL_SHA256 passthru
[infra/cicd.git] / jjb / metal3 / job_node_image_building.yml
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 # ============
22 # This file contains job template definition for node image building tests tests.
23 # This job can be triggered manually or through a Github pull request. It creates a
24 # pipeline job. The pipeline scripts are maintained in Nordix/metal3-dev-tools repository.
25
26 - job-template:
27     id: node_image_building
28     name: '{job_prefix}_periodic_node_image_building'
29     description: "Builder job for node images for Metal3 CI"
30     project-type: pipeline
31     defaults: global
32     disabled: False
33     concurrent: True
34     parameters:
35     - string:
36         name: IMAGE_TYPE
37         default: 'node'
38         description: 'Specifies the type of image being built in pipeline'
39     - string:
40         name: KUBERNETES_VERSION
41         default: "v1.30.0"
42         description: 'Kubernetes version'
43     - string:
44         name: CRICTL_VERSION
45         default: "v1.30.0"
46         description: 'CRICTL VERSION'
47     - string:
48         name: CRIO_VERSION
49         default: "v1.29.3"
50         description: 'CRI-O VERSION'
51
52     properties:
53     - build-discarder:
54         days-to-keep: 30
55         num-to-keep: 300
56         artifact-days-to-keep: -1
57         artifact-num-to-keep: -1
58
59     triggers:
60     - timed: "0 5 */14 * *"
61
62     pipeline-scm:
63       scm:
64       - git:
65           url: "{ci_github_repo}"
66           credentials-id: "{ci_github_jenkins_credentials_id}"
67           branches:
68           - 'main'
69           name: 'origin'
70           refspec: '+refs/heads/*:refs/remotes/origin/*'
71           wipe-workspace: True
72           honor-refspec: True
73           shallow-clone: False
74       script-path: "{image_building_pipeline}"
75       lightweight-checkout: False