blob: 24610662960531134a86e50ee54b58ea00d5df0a [file] [log] [blame]
Furkat Gofurov06b73b42021-08-25 15:39:08 +03001---
2#
3# ============LICENSE_START=======================================================
4# Copyright (C) 2019 Nordix Foundation.
5# ================================================================================
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17#
18# SPDX-License-Identifier: Apache-2.0
19# ============LICENSE_END=========================================================
20
21# Description:
22# ============
Furkat Gofurovb1e99612022-02-04 10:48:36 +020023# This file contains job template definition for K8s Cluster API Provider Metal3 (CAPM3) integration tests
Furkat Gofurov06b73b42021-08-25 15:39:08 +030024# cleanup.
25# This job can be triggered manually or through a Github pull request. It creates a
Furkat Gofurovb1e99612022-02-04 10:48:36 +020026# pipeline job. The pipeline scripts are maintained in Metal3 CI project infra repository.
Furkat Gofurov06b73b42021-08-25 15:39:08 +030027
28- job-template:
Mohammed Boukhalfad575b642024-04-02 19:07:53 +030029 id: periodic_clean
30 name: '{job_prefix}_periodic_integration_tests_cleanup'
Furkat Gofurov22522d92022-02-05 22:15:22 +020031 description: "CAPM3 integration tests cleanup"
Furkat Gofurov06b73b42021-08-25 15:39:08 +030032 project-type: pipeline
33 defaults: global
34 disabled: False
35 concurrent: True
36 parameters:
Mohammed Boukhalfa03fccec2024-04-03 11:38:52 +030037 # Parameters set by Prow
Furkat Gofurov06b73b42021-08-25 15:39:08 +030038 - string:
Mohammed Boukhalfa03fccec2024-04-03 11:38:52 +030039 name: BUILD_ID
40 description: 'Used by Prow when triggering jobs'
41 - string:
42 name: PROW_JOB_ID
43 description: 'Used by Prow when triggering jobs'
44 - string:
45 name: REPO_OWNER
46 default: 'metal3-io'
Furkat Gofurov06b73b42021-08-25 15:39:08 +030047 description: 'Project github repo org name'
48 - string:
Mohammed Boukhalfa03fccec2024-04-03 11:38:52 +030049 name: REPO_NAME
50 default: 'cluster-api-provider-metal3'
Furkat Gofurov06b73b42021-08-25 15:39:08 +030051 description: 'Project github repo name'
52 - string:
Mohammed Boukhalfa03fccec2024-04-03 11:38:52 +030053 name: PULL_BASE_REF
Feruzjon Muyassarov5d0f9c22022-01-11 13:39:40 +020054 default: 'main'
Mohammed Boukhalfa03fccec2024-04-03 11:38:52 +030055 description: 'Ref name of the base branch'
Furkat Gofurov06b73b42021-08-25 15:39:08 +030056 - string:
Mohammed Boukhalfa03fccec2024-04-03 11:38:52 +030057 name: PULL_PULL_SHA
58 default: 'main'
59 description: 'Pull request head SHA'
60 - string:
61 name: PULL_NUMBER
62 description: 'Pull request number'
63 # End of Prow parameters
Furkat Gofurov06b73b42021-08-25 15:39:08 +030064
65 properties:
66 - build-discarder:
67 days-to-keep: 30
68 num-to-keep: 300
69 artifact-days-to-keep: -1
70 artifact-num-to-keep: -1
71
72 triggers:
73 - timed: "0 */6 * * *"
74
75 pipeline-scm:
76 scm:
77 - git:
78 url: "{ci_github_repo}"
79 credentials-id: "{ci_github_jenkins_credentials_id}"
80 branches:
kashifest79c9c9a2021-12-23 13:55:03 +020081 - '{branch|main}'
Furkat Gofurov06b73b42021-08-25 15:39:08 +030082 name: 'origin'
83 refspec: '+refs/heads/*:refs/remotes/origin/*'
84 wipe-workspace: True
85 honor-refspec: True
86 shallow-clone: False
87 script-path: "{ci_github_pipeline}"
88 lightweight-checkout: False