blob: 4e0ced5297d9f2c6cceac36e3766a7413095ebb4 [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}'
46 disabled: 'false'
47
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +020048 distro:
Fatih Degirmenci514c5be2019-03-29 12:30:28 +000049 - ubuntu1804:
50 disabled: 'false'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +000051 - centos7:
52 disabled: 'true'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +000053
54 type:
Fatih Degirmenciaaf95842019-04-23 17:54:19 +020055 - virtual:
56 slave-label: 'vpod-deploy-city'
Fatih Degirmencic057cb42019-05-08 10:54:02 +020057 yardstick-dispatcher: 'file'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +020058 build-trigger: 'H H/3 * * *'
Fatih Degirmenciaaf95842019-04-23 17:54:19 +020059 - baremetal:
60 slave-label: 'baremetal-deploy'
Fatih Degirmencic057cb42019-05-08 10:54:02 +020061 yardstick-dispatcher: 'influxdb'
Fatih Degirmencie504a2d2019-05-08 11:38:56 +020062 build-trigger: '@daily'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +000063
64 phase:
Fatih Degirmenci10b2c0e2019-04-24 12:35:02 +020065 - deploy:
66 build-timeout: 60
67 - functest:
68 build-timeout: 120
69 - yardstick:
70 build-timeout: 30
Fatih Degirmenci514c5be2019-03-29 12:30:28 +000071
72 jobs:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +020073 - 'cloud-infra-periodic-engine-{distro}-{type}-{stream}'
74 - 'cloud-infra-periodic-{distro}-{phase}-{type}-{stream}'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +000075
76- job-template:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +020077 name: 'cloud-infra-periodic-engine-{distro}-{type}-{stream}'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +000078
79 project-type: multijob
80
81 disabled: '{obj:disabled}'
82
83 concurrent: true
84
85 parameters:
86 - project-parameters:
87 project: '{project}'
88 branch: '{branch}'
89 - nordix-gerrit-parameters
90 - label:
91 name: SLAVE_LABEL
Fatih Degirmencib0b32522019-04-23 20:11:39 +020092 default: '{slave-label}'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +000093 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
94 - string:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +020095 name: DISTRO
96 default: '{distro}'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +000097 description: 'Distribution to use for configuring target nodes (networking etc.)'
98 - string:
Fatih Degirmenciaaf95842019-04-23 17:54:19 +020099 name: DEPLOY_TYPE
100 default: '{type}'
101 description: 'Type of the deployment'
102 - string:
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000103 name: USE_PREBUILT_DEPLOYMENT_IMAGE
104 default: 'true'
105 description: 'Use prebuilt deployment image while running as part of CI/CD'
106 - string:
Fatih Degirmenciaa5c81c2019-05-08 13:25:08 +0200107 name: INSTALLER_TYPE
108 default: 'kubespray'
109 description: 'Installer to use for deploying the scenario'
110 - string:
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700111 name: DEPLOY_SCENARIO
112 default: 'k8-calico-nofeature'
113 description: 'Scenario to deploy and test'
114 - string:
115 name: TEST_SUITE
Fatih Degirmenci10b2c0e2019-04-24 12:35:02 +0200116 default: 'smoke'
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700117 description: 'Test suite to run'
118 - string:
Fatih Degirmencic057cb42019-05-08 10:54:02 +0200119 name: YARDSTICK_DISPATCHER
120 default: '{yardstick-dispatcher}'
121 description: 'Dispatcher to use for Yardstick reporting'
122 - string:
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000123 name: CLEANUP
124 default: 'true'
125 description: 'Cleanup leftovers of the previous run'
126
127 properties:
128 - logrotate
129 - build-blocker:
130 use-build-blocker: true
131 blocking-jobs:
Fatih Degirmenci175d55d2019-05-09 15:21:22 +0200132 - 'cloud-infra-verify-engine-.*'
133 - 'cloud-infra-verify-scenario-.*'
134 - 'cloud-infra-periodic-engine-.*'
135 - 'k8-.*'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000136 block-level: 'NODE'
137 - throttle:
138 max-per-node: 1
139 max-total: 3
140 option: project
141
142 wrappers:
143 - build-timeout:
Fatih Degirmenci10b2c0e2019-04-24 12:35:02 +0200144 timeout: 210
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000145 - fix-workspace-permissions
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000146
147 scm:
148 - git-scm:
149 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
150 branch: '{branch}'
151 refspec: ''
152
153 triggers:
Fatih Degirmencie504a2d2019-05-08 11:38:56 +0200154 - timed: '{build-trigger}'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000155
156 builders:
157 - multijob:
158 name: deploy
159 condition: SUCCESSFUL
160 projects:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200161 - name: 'cloud-infra-periodic-{distro}-deploy-{type}-{stream}'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000162 current-parameters: true
163 predefined-parameters: |
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200164 DISTRO=$DISTRO
Fatih Degirmenciaaf95842019-04-23 17:54:19 +0200165 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000166 USE_PREBUILT_DEPLOYMENT_IMAGE=$USE_PREBUILT_DEPLOYMENT_IMAGE
Fatih Degirmenciaa5c81c2019-05-08 13:25:08 +0200167 INSTALLER_TYPE=$INSTALLER_TYPE
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700168 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000169 CLEANUP=$CLEANUP
170 git-revision: true
171 node-parameters: true
172 kill-phase-on: FAILURE
173 abort-all-job: true
174 - multijob:
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700175 name: functest
176 condition: ALWAYS
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000177 projects:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200178 - name: 'cloud-infra-periodic-{distro}-functest-{type}-{stream}'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000179 current-parameters: true
180 predefined-parameters: |
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200181 DISTRO=$DISTRO
Fatih Degirmenciaaf95842019-04-23 17:54:19 +0200182 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenciaa5c81c2019-05-08 13:25:08 +0200183 INSTALLER_TYPE=$INSTALLER_TYPE
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700184 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
185 TEST_SUITE=$TEST_SUITE
Fatih Degirmenci3df67602019-05-08 11:25:19 +0200186 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000187 CLEANUP=$CLEANUP
188 node-parameters: true
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700189 kill-phase-on: NEVER
190 abort-all-job: false
191 - multijob:
192 name: yardstick
193 condition: ALWAYS
194 projects:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200195 - name: 'cloud-infra-periodic-{distro}-yardstick-{type}-{stream}'
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700196 current-parameters: true
197 predefined-parameters: |
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200198 DISTRO=$DISTRO
Fatih Degirmenciaaf95842019-04-23 17:54:19 +0200199 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenciaa5c81c2019-05-08 13:25:08 +0200200 INSTALLER_TYPE=$INSTALLER_TYPE
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700201 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
202 TEST_SUITE=$TEST_SUITE
Fatih Degirmencic057cb42019-05-08 10:54:02 +0200203 YARDSTICK_DISPATCHER=$YARDSTICK_DISPATCHER
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700204 CLEANUP=$CLEANUP
205 node-parameters: true
206 kill-phase-on: NEVER
207 abort-all-job: false
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000208
209- job-template:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200210 name: 'cloud-infra-periodic-{distro}-{phase}-{type}-{stream}'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000211
212 disabled: false
213
214 concurrent: true
215
216 properties:
217 - logrotate
218
219 parameters:
220 - string:
221 name: PROJECT
222 default: $GERRIT_PROJECT
223 - string:
Fatih Degirmencicde0f9d2019-05-09 12:50:05 +0200224 name: DISTRO
225 default: 'ubuntu1804'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000226 description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
227 - string:
Fatih Degirmenciaaf95842019-04-23 17:54:19 +0200228 name: DEPLOY_TYPE
229 default: 'virtual'
230 description: 'Type of the deployment. Overriden by upstream job.'
231 - string:
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000232 name: USE_PREBUILT_DEPLOYMENT_IMAGE
233 default: 'false'
234 description: 'Use prebuilt deployment image while running as part of CI/CD'
235 - string:
Wenqing Gu2a4475b2019-04-12 09:52:40 +0200236 name: ENGINE_ANSIBLE_PARAMS
Fatih Degirmenci92419382019-04-17 19:20:21 +0200237 default: ' -v '
Wenqing Gu2a4475b2019-04-12 09:52:40 +0200238 description: 'Extra paramters that can be added when run the play books.'
239 - string:
Fatih Degirmenciaa5c81c2019-05-08 13:25:08 +0200240 name: INSTALLER_TYPE
241 default: 'kubespray'
242 description: 'Installer to use for deploying the scenario'
243 - string:
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700244 name: DEPLOY_SCENARIO
245 default: 'k8-calico-nofeature'
246 description: 'Scenario to deploy and test'
247 - string:
248 name: TEST_FW
249 default: '{phase}'
250 description: 'Test framework to use'
251 - string:
252 name: TEST_SUITE
Fatih Degirmenci10b2c0e2019-04-24 12:35:02 +0200253 default: 'smoke'
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700254 description: 'Test suite to run'
255 - string:
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000256 name: TEST_REPO_URL
257 default: 'https://gerrit.nordix.org/infra/test.git'
258 description: 'URL to Nordix Cloud Infra test repository'
259 - string:
Fatih Degirmencic057cb42019-05-08 10:54:02 +0200260 name: YARDSTICK_DISPATCHER
261 default: 'file'
262 description: 'Dispatcher to use for Yardstick reporting'
263 - string:
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000264 name: CLEANUP
265 default: 'false'
266
267 wrappers:
268 - build-timeout:
Fatih Degirmenci10b2c0e2019-04-24 12:35:02 +0200269 timeout: '{build-timeout}'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000270 - fix-workspace-permissions
271
272 scm:
273 - git-scm:
274 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
275 branch: '{branch}'
276 refspec: ''
277
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: