blob: 110705c083fb157d7d6239c5626a4c3bb07b017e [file] [log] [blame]
Fatih Degirmenci429341c2019-04-03 11:18:28 -07001---
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#--------------------------------------------------------------------------------------
22# The jobs declared in this JJB configuration file are used for verifying patches
23# that are sent to the repositories below
24# - cloud-infra/test
25#
26# These jobs verify changes that
27# - implement new features or fix bugs to the playbooks and roles used for utilizing
28# open source test frameworks such as opnfv/functest and opnfv/yardstick
29# - bump versions of the open source test frameworks
30#
31# These jobs are set to run on slaves with label vpod-test-ubuntu1604.
32# The slaves have
33# - Ubuntu1604 as the base distro
34# - nested virtualization
35# - internet access
36# - passwordless sudo
37# - 16 CPUs/32GB RAM/200 GB Disk
38# - docker, git vim curl wget zip unzip chrony apt-transport-https ca-certificates curl
39# gnupg-agent software-properties-common docker-ce docker-ce-cli containerd.io openjdk-8-jre
40#
41# The slaves should have a promoted version of a cloud infra scenario deployed on them.
42# Currently k8-calico-nofeature scenario is deployed on the slaves.
43#--------------------------------------------------------------------------------------
44
45- project:
46 name: 'cloud-infra-verify-test'
47
48 project: 'infra/test'
49
50 stream:
51 - 'master':
52 branch: '{stream}'
53 disabled: 'false'
54
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +020055 distro:
Fatih Degirmenci429341c2019-04-03 11:18:28 -070056 - ubuntu1804:
57 disabled: 'false'
Fatih Degirmenci429341c2019-04-03 11:18:28 -070058
59 type:
60 - virtual
61
62 phase:
63 - functest
64 - yardstick
65
66 jobs:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +020067 - 'cloud-infra-verify-testfw-{distro}-{type}-{stream}'
68 - 'cloud-infra-verify-testfw-{distro}-{phase}-{type}-{stream}'
Fatih Degirmenci429341c2019-04-03 11:18:28 -070069
70- job-template:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +020071 name: 'cloud-infra-verify-testfw-{distro}-{type}-{stream}'
Fatih Degirmenci429341c2019-04-03 11:18:28 -070072
73 project-type: multijob
74
75 disabled: '{obj:disabled}'
76
77 concurrent: true
78
79 parameters:
80 - project-parameters:
81 project: '{project}'
82 branch: '{branch}'
83 - nordix-gerrit-parameters
84 - label:
85 name: SLAVE_LABEL
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +020086 default: 'vpod-test-{distro}'
Fatih Degirmenci429341c2019-04-03 11:18:28 -070087 description: 'Slave label to schedule this job on. These slaves have cloud infra installed on them.'
88 - string:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +020089 name: DISTRO
90 default: '{distro}'
Fatih Degirmenci429341c2019-04-03 11:18:28 -070091 description: 'Distribution to use for configuring target nodes (networking etc.)'
92 - string:
Fatih Degirmenciaaf95842019-04-23 17:54:19 +020093 name: DEPLOY_TYPE
94 default: '{type}'
95 description: 'Type of the deployment'
96 - string:
Fatih Degirmenci429341c2019-04-03 11:18:28 -070097 name: DEPLOY_SCENARIO
98 default: 'k8-calico-nofeature'
99 description: 'Scenario to deploy and test'
100 - string:
101 name: TEST_SUITE
102 default: 'healthcheck'
103 description: 'Test suite to run'
104 - string:
Fatih Degirmenci3df67602019-05-08 11:25:19 +0200105 name: YARDSTICK_DISPATCHER
106 default: 'file'
107 description: 'Dispatcher to use for Yardstick reporting'
108 - string:
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700109 name: CLEANUP
110 default: 'true'
111 description: 'Cleanup leftovers of the previous run'
112
113 properties:
114 - logrotate
115 - build-blocker:
116 use-build-blocker: true
117 blocking-jobs:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200118 - 'cloud-infra-verify-testfw-{distro}-.*'
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700119 block-level: 'NODE'
120 - throttle:
121 max-per-node: 1
122 max-total: 3
123 option: project
124
125 wrappers:
126 - build-timeout:
127 timeout: 120
128 - fix-workspace-permissions
129
130 scm:
131 - git-scm-gerrit:
132 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
133 branch: '{branch}'
134 refspec: $GERRIT_REFSPEC
robert.tomczyk7e507872019-06-18 17:20:26 +0100135 wipe_workspace: true
136 clean_before: false
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700137
138 triggers:
139 - nordix-gerrit-trigger-patchset-created:
140 project: 'infra\/test'
141 branch: '{branch}'
142 files: '**'
143
144 builders:
145 - multijob:
146 name: functest
147 condition: SUCCESSFUL
148 projects:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200149 - name: 'cloud-infra-verify-testfw-{distro}-functest-{type}-{stream}'
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700150 current-parameters: true
151 predefined-parameters: |
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200152 DISTRO=$DISTRO
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700153 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
154 TEST_SUITE=$TEST_SUITE
Fatih Degirmenci3df67602019-05-08 11:25:19 +0200155 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700156 CLEANUP=$CLEANUP
157 GERRIT_PROJECT=$GERRIT_PROJECT
158 GERRIT_BRANCH=$GERRIT_BRANCH
159 GERRIT_REFSPEC=$GERRIT_REFSPEC
160 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
161 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
162 node-parameters: true
163 kill-phase-on: FAILURE
164 abort-all-job: true
165 - multijob:
166 name: yardstick
167 condition: SUCCESSFUL
168 projects:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200169 - name: 'cloud-infra-verify-testfw-{distro}-yardstick-{type}-{stream}'
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700170 current-parameters: true
171 predefined-parameters: |
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200172 DISTRO=$DISTRO
Fatih Degirmenciaaf95842019-04-23 17:54:19 +0200173 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700174 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
175 TEST_SUITE=$TEST_SUITE
Fatih Degirmenci3df67602019-05-08 11:25:19 +0200176 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700177 CLEANUP=$CLEANUP
178 GERRIT_PROJECT=$GERRIT_PROJECT
179 GERRIT_BRANCH=$GERRIT_BRANCH
180 GERRIT_REFSPEC=$GERRIT_REFSPEC
181 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
182 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
183 node-parameters: true
184 kill-phase-on: FAILURE
185 abort-all-job: true
186
187- job-template:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200188 name: 'cloud-infra-verify-testfw-{distro}-{phase}-{type}-{stream}'
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700189
190 disabled: false
191
192 concurrent: true
193
194 properties:
195 - logrotate
196
197 parameters:
198 - string:
199 name: PROJECT
200 default: $GERRIT_PROJECT
201 - string:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200202 name: DISTRO
203 default: 'ubuntu1804'
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700204 description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
205 - string:
Fatih Degirmenciaaf95842019-04-23 17:54:19 +0200206 name: DEPLOY_TYPE
207 default: 'virtual'
208 description: 'Type of the deployment. Overriden by upstream job.'
209 - string:
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700210 name: DEPLOY_SCENARIO
211 default: 'k8-calico-nofeature'
212 description: 'Scenario to deploy and test'
213 - string:
214 name: TEST_FW
215 default: '{phase}'
216 description: 'Test framework to use'
217 - string:
218 name: TEST_SUITE
219 default: 'healthcheck'
220 description: 'Test suite to run'
221 - string:
222 name: TEST_REPO_URL
223 default: 'https://gerrit.nordix.org/infra/test.git'
224 description: 'URL to Nordix Cloud Infra test repository'
225 - string:
Fatih Degirmenci3df67602019-05-08 11:25:19 +0200226 name: YARDSTICK_DISPATCHER
227 default: 'file'
228 description: 'Dispatcher to use for Yardstick reporting'
229 - string:
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700230 name: CLEANUP
231 default: 'false'
232
233 wrappers:
234 - build-timeout:
235 timeout: 120
236 - fix-workspace-permissions
237
238 scm:
239 - git-scm-gerrit:
240 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
241 branch: '{branch}'
242 refspec: $GERRIT_REFSPEC
robert.tomczyk7e507872019-06-18 17:20:26 +0100243 wipe_workspace: true
244 clean_before: false
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700245
246 builders:
Fatih Degirmenci0c0e67a2019-04-09 08:39:51 +0200247 - 'cloud-infra-testfw-macro'
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700248
249# vim: set ts=2 sw=2 expandtab: