blob: b1fe648e62960770fcb124cbb0fb8adcd60bad3a [file] [log] [blame]
Jaakko Kuuskoskief359b02020-08-05 11:51:19 +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# ============
23# This file contains job template definition for K8s CAPI Baremetal integration tests.
24# This job can be triggered manually or through a Github pull request. It creates a
25# pipeline job. The pipeline scripts are maintained in Airship CI repository.
26
27- job-template:
28 id: feature_tests_upgrade_ubuntu
29 name: '{job_prefix}_{name}_feature_tests_upgrade_ubuntu'
30 description: "Upgrade tests on Ubuntu. "
31 project-type: pipeline
32 defaults: global
33 disabled: False
34 concurrent: True
35 parameters:
36 - string:
37 name: PROJECT_REPO_ORG
38 default: '{repo[org]}'
39 description: 'Project github repo org name'
40 - string:
41 name: PROJECT_REPO_NAME
42 default: '{repo[name]}'
43 description: 'Project github repo name'
44 - string:
45 name: ghprbActualCommit
46 default: 'master'
47 description: 'CI Repo branch for triggering manual build'
48 - string:
49 name: ghprbAuthorRepoGitUrl
50 default: 'https://github.com/{repo[org]}/{repo[name]}.git'
51 description: 'CI Repo URL for triggering manual build'
52 - string:
53 name: ghprbTargetBranch
54 default: 'master'
55 description: 'Target branch of the PR'
56 - string:
57 name: DISTRIBUTION
58 default: 'ubuntu'
59 description: 'Distribution to use for the tests.'
60 - string:
61 name: CAPI_VERSION
Lennart Jern9ec510d2022-01-13 09:33:00 +020062 default: 'v1alpha4'
Feruzjon Muyassarovc711aa22021-07-29 15:15:49 +030063 description: 'Cluster API version.'
Jaakko Kuuskoskief359b02020-08-05 11:51:19 +030064 - string:
Lennart Jern3c353d92022-01-14 16:09:54 +020065 name: CAPIRELEASE
66 description: 'Cluster API release tag to upgrade from, e.g. v1.0.0'
67 - string:
Jaakko Kuuskoskief359b02020-08-05 11:51:19 +030068 name: CAPM3_VERSION
Lennart Jern9ec510d2022-01-13 09:33:00 +020069 default: 'v1alpha5'
Feruzjon Muyassarovc711aa22021-07-29 15:15:49 +030070 description: 'Cluster API provider Metal3 version.'
Jaakko Kuuskoskief359b02020-08-05 11:51:19 +030071 - string:
Lennart Jern3c353d92022-01-14 16:09:54 +020072 name: CAPM3RELEASE
73 description: 'CAPM3 release tag to upgrade from, e.g. v1.0.0'
74 - string:
Jaakko Kuuskoskief359b02020-08-05 11:51:19 +030075 name: TARGET_NODE_OS
76 default: 'Ubuntu'
77 description: 'Distribution to use for the target host.'
78 - string:
79 name: TARGET_NODE_MEMORY
80 default: 4096
81 description: 'RAM size of the target host.'
82 - string:
83 name: NUM_NODES
84 default: 4
85 description: 'Number of libvirt VMs.'
86 - string:
87 name: TESTS_FOR
88 default: "feature_tests_upgrade"
89 description: 'Tests for upgrade.'
90
91 properties:
92 - build-discarder:
93 days-to-keep: 30
94 num-to-keep: 300
95 artifact-days-to-keep: -1
96 artifact-num-to-keep: -1
97 - github:
98 url: https://github.com/{repo[org]}/{repo[name]}
99
100 triggers:
101 - github-pull-request:
102 admin-list:
103 - '{ci_github_admin_user}'
104 org-list: "{ci_github_whitelist_org}"
105 cron: 'H/5 * * * *'
106 auth-id: "{ci_ghprb_auth_id}"
107 trigger-phrase: '((.|\n)*\s)?/test-upgrade-features(\s(.|\n)*)?'
108 skip-build-phrase: '/skip-test'
109 only-trigger-phrase: True
110 github-hooks: True
111 permit-all: False
112 auto-close-on-fail: False
113 allow-whitelist-orgs-as-admins: True
114 white-list-target-branches:
115 - 'master'
kashifestcf867442021-10-14 12:59:06 +0300116 - 'main'
Furkat Gofurove9b34b62021-10-22 12:36:23 +0300117 - 'release-0.5'
118 - 'release-0.1'
Jaakko Kuuskoskief359b02020-08-05 11:51:19 +0300119 status-context: "test-upgrade-features"
120 success-status: "Passed"
121 failure-status: "Failed"
122 error-status: "Error"
123 cancel-builds-on-update: True
124 pipeline-scm:
125 scm:
126 - git:
127 url: "{ci_github_repo}"
128 credentials-id: "{ci_github_jenkins_credentials_id}"
129 branches:
kashifest79c9c9a2021-12-23 13:55:03 +0200130 - '{branch|main}'
Jaakko Kuuskoskief359b02020-08-05 11:51:19 +0300131 name: 'origin'
132 refspec: '+refs/heads/*:refs/remotes/origin/*'
133 wipe-workspace: True
134 honor-refspec: True
135 shallow-clone: False
136 script-path: "{ci_github_pipeline}"
137 lightweight-checkout: False