blob: 15857faa0d9484d66031f58fbc5887efca52d4d1 [file] [log] [blame]
Fatih Degirmenci514c5be2019-03-29 12:30:28 +00001---
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 cloud-infra
23# engine from the tip of the master branch periodically to check the stability of it.
24#
25# These jobs are set to run on slaves with label vpod-deploy-ubuntu1604.
26# The slaves have
27# - Ubuntu1604 as the base distro
28# - nested virtualization
29# - internet access
30# - passwordless sudo
31# - 16 CPUs/32GB RAM/200 GB Disk
32# - docker, git vim curl wget zip unzip chrony apt-transport-https ca-certificates curl
33# gnupg-agent software-properties-common docker-ce docker-ce-cli containerd.io openjdk-8-jre
34#
35# The slaves should not have a cloud infra scenario deployed on them.
36#--------------------------------------------------------------------------------------
37
38- project:
39 name: 'cloud-infra-periodic-engine'
40
41 project: 'infra/engine'
42
43 stream:
44 - 'master':
45 branch: '{stream}'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +000046
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +020047 distro:
Fatih Degirmenci444c6372019-07-17 11:26:23 +020048 - ubuntu1804:
49 slave-label: vpod-deploy-ubuntu1804
50 - centos7:
51 slave-label: vpod-deploy-centos7
Fatih Degirmenci514c5be2019-03-29 12:30:28 +000052
53 type:
Fatih Degirmenciaaf95842019-04-23 17:54:19 +020054 - virtual:
Fatih Degirmencic057cb42019-05-08 10:54:02 +020055 yardstick-dispatcher: 'file'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +020056 build-trigger: 'H H/3 * * *'
Fatih Degirmencif6d92e92019-06-25 11:14:22 +020057 disabled: true
Fatih Degirmenci514c5be2019-03-29 12:30:28 +000058
59 phase:
Fatih Degirmenci10b2c0e2019-04-24 12:35:02 +020060 - deploy:
Fatih Degirmencie820eb12019-07-27 20:18:14 +020061 build-timeout: 90
Fatih Degirmenci10b2c0e2019-04-24 12:35:02 +020062 - functest:
63 build-timeout: 120
64 - yardstick:
65 build-timeout: 30
Fatih Degirmenci514c5be2019-03-29 12:30:28 +000066
67 jobs:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +020068 - 'cloud-infra-periodic-engine-{distro}-{type}-{stream}'
69 - 'cloud-infra-periodic-{distro}-{phase}-{type}-{stream}'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +000070
71- job-template:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +020072 name: 'cloud-infra-periodic-engine-{distro}-{type}-{stream}'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +000073
74 project-type: multijob
75
76 disabled: '{obj:disabled}'
77
78 concurrent: true
79
80 parameters:
81 - project-parameters:
82 project: '{project}'
83 branch: '{branch}'
84 - nordix-gerrit-parameters
85 - label:
86 name: SLAVE_LABEL
Fatih Degirmencib0b32522019-04-23 20:11:39 +020087 default: '{slave-label}'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +000088 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
89 - string:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +020090 name: DISTRO
91 default: '{distro}'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +000092 description: 'Distribution to use for configuring target nodes (networking etc.)'
93 - string:
Fatih Degirmenciaaf95842019-04-23 17:54:19 +020094 name: DEPLOY_TYPE
95 default: '{type}'
96 description: 'Type of the deployment'
97 - string:
Fatih Degirmenci514c5be2019-03-29 12:30:28 +000098 name: USE_PREBUILT_DEPLOYMENT_IMAGE
99 default: 'true'
100 description: 'Use prebuilt deployment image while running as part of CI/CD'
101 - string:
Fatih Degirmenciaa5c81c2019-05-08 13:25:08 +0200102 name: INSTALLER_TYPE
103 default: 'kubespray'
104 description: 'Installer to use for deploying the scenario'
105 - string:
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700106 name: DEPLOY_SCENARIO
107 default: 'k8-calico-nofeature'
108 description: 'Scenario to deploy and test'
109 - string:
110 name: TEST_SUITE
Fatih Degirmenci10b2c0e2019-04-24 12:35:02 +0200111 default: 'smoke'
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700112 description: 'Test suite to run'
113 - string:
Fatih Degirmencic057cb42019-05-08 10:54:02 +0200114 name: YARDSTICK_DISPATCHER
115 default: '{yardstick-dispatcher}'
116 description: 'Dispatcher to use for Yardstick reporting'
117 - string:
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000118 name: CLEANUP
119 default: 'true'
120 description: 'Cleanup leftovers of the previous run'
121
122 properties:
123 - logrotate
124 - build-blocker:
125 use-build-blocker: true
126 blocking-jobs:
Fatih Degirmenci175d55d2019-05-09 15:21:22 +0200127 - 'cloud-infra-verify-engine-.*'
128 - 'cloud-infra-verify-scenario-.*'
129 - 'cloud-infra-periodic-engine-.*'
130 - 'k8-.*'
Fatih Degirmencie9217382019-10-01 16:41:46 +0200131 - 'nolabs-.*'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000132 block-level: 'NODE'
133 - throttle:
134 max-per-node: 1
135 max-total: 3
136 option: project
137
138 wrappers:
139 - build-timeout:
Fatih Degirmencie820eb12019-07-27 20:18:14 +0200140 timeout: 240
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000141 - fix-workspace-permissions
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000142
143 scm:
144 - git-scm:
145 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
146 branch: '{branch}'
147 refspec: ''
robert.tomczyk7e507872019-06-18 17:20:26 +0100148 wipe_workspace: true
149 clean_before: false
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000150
151 triggers:
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200152 - timed: '{build-trigger}'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000153
154 builders:
155 - multijob:
156 name: deploy
157 condition: SUCCESSFUL
158 projects:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200159 - name: 'cloud-infra-periodic-{distro}-deploy-{type}-{stream}'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000160 current-parameters: true
161 predefined-parameters: |
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200162 DISTRO=$DISTRO
Fatih Degirmenciaaf95842019-04-23 17:54:19 +0200163 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000164 USE_PREBUILT_DEPLOYMENT_IMAGE=$USE_PREBUILT_DEPLOYMENT_IMAGE
Fatih Degirmenciaa5c81c2019-05-08 13:25:08 +0200165 INSTALLER_TYPE=$INSTALLER_TYPE
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700166 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000167 CLEANUP=$CLEANUP
168 git-revision: true
169 node-parameters: true
170 kill-phase-on: FAILURE
171 abort-all-job: true
172 - multijob:
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700173 name: functest
174 condition: ALWAYS
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000175 projects:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200176 - name: 'cloud-infra-periodic-{distro}-functest-{type}-{stream}'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000177 current-parameters: true
178 predefined-parameters: |
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200179 DISTRO=$DISTRO
Fatih Degirmenciaaf95842019-04-23 17:54:19 +0200180 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenciaa5c81c2019-05-08 13:25:08 +0200181 INSTALLER_TYPE=$INSTALLER_TYPE
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700182 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
183 TEST_SUITE=$TEST_SUITE
Fatih Degirmenci3df67602019-05-08 11:25:19 +0200184 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000185 CLEANUP=$CLEANUP
186 node-parameters: true
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700187 kill-phase-on: NEVER
188 abort-all-job: false
189 - multijob:
190 name: yardstick
191 condition: ALWAYS
192 projects:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200193 - name: 'cloud-infra-periodic-{distro}-yardstick-{type}-{stream}'
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700194 current-parameters: true
195 predefined-parameters: |
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200196 DISTRO=$DISTRO
Fatih Degirmenciaaf95842019-04-23 17:54:19 +0200197 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenciaa5c81c2019-05-08 13:25:08 +0200198 INSTALLER_TYPE=$INSTALLER_TYPE
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700199 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
200 TEST_SUITE=$TEST_SUITE
Fatih Degirmencic057cb42019-05-08 10:54:02 +0200201 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700202 CLEANUP=$CLEANUP
203 node-parameters: true
204 kill-phase-on: NEVER
205 abort-all-job: false
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000206
207- job-template:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200208 name: 'cloud-infra-periodic-{distro}-{phase}-{type}-{stream}'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000209
210 disabled: false
211
212 concurrent: true
213
214 properties:
215 - logrotate
216
217 parameters:
218 - string:
219 name: PROJECT
220 default: $GERRIT_PROJECT
221 - string:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200222 name: DISTRO
223 default: 'ubuntu1804'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000224 description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
225 - string:
Fatih Degirmenciaaf95842019-04-23 17:54:19 +0200226 name: DEPLOY_TYPE
227 default: 'virtual'
228 description: 'Type of the deployment. Overriden by upstream job.'
229 - string:
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000230 name: USE_PREBUILT_DEPLOYMENT_IMAGE
231 default: 'false'
232 description: 'Use prebuilt deployment image while running as part of CI/CD'
233 - string:
Wenqing Gu2a4475b2019-04-12 09:52:40 +0200234 name: ENGINE_ANSIBLE_PARAMS
Fatih Degirmenci92419382019-04-17 19:20:21 +0200235 default: ' -v '
Wenqing Gu2a4475b2019-04-12 09:52:40 +0200236 description: 'Extra paramters that can be added when run the play books.'
237 - string:
Fatih Degirmenciaa5c81c2019-05-08 13:25:08 +0200238 name: INSTALLER_TYPE
239 default: 'kubespray'
240 description: 'Installer to use for deploying the scenario'
241 - string:
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700242 name: DEPLOY_SCENARIO
243 default: 'k8-calico-nofeature'
244 description: 'Scenario to deploy and test'
245 - string:
246 name: TEST_FW
247 default: '{phase}'
248 description: 'Test framework to use'
249 - string:
250 name: TEST_SUITE
Fatih Degirmenci10b2c0e2019-04-24 12:35:02 +0200251 default: 'smoke'
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700252 description: 'Test suite to run'
253 - string:
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000254 name: TEST_REPO_URL
255 default: 'https://gerrit.nordix.org/infra/test.git'
256 description: 'URL to Nordix Cloud Infra test repository'
257 - string:
Fatih Degirmencic057cb42019-05-08 10:54:02 +0200258 name: YARDSTICK_DISPATCHER
259 default: 'file'
260 description: 'Dispatcher to use for Yardstick reporting'
261 - string:
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000262 name: CLEANUP
263 default: 'false'
264
265 wrappers:
266 - build-timeout:
Fatih Degirmenci10b2c0e2019-04-24 12:35:02 +0200267 timeout: '{build-timeout}'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000268 - fix-workspace-permissions
269
270 scm:
271 - git-scm:
272 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
273 branch: '{branch}'
274 refspec: ''
robert.tomczyk7e507872019-06-18 17:20:26 +0100275 wipe_workspace: true
276 clean_before: false
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000277
278 builders:
Fatih Degirmenci0c0e67a2019-04-09 08:39:51 +0200279 - 'cloud-infra-{phase}-macro'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000280
281# vim: set ts=2 sw=2 expandtab: