blob: 5cf2eace88c70d1497d6b5aac8096ee70e2cfe99 [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
48 os:
49 - ubuntu1804:
50 disabled: 'false'
51 distribution: 'ubuntu18'
52 ipa_dib_os_element: 'coreos'
53 dib_os_release: 'bionic'
54 dib_os_element: 'ubuntu-minimal'
55 - centos7:
56 disabled: 'true'
57 distribution: 'centos7'
58 ipa_dib_os_element: 'coreos'
59 dib_os_release: '7'
60 dib_os_element: 'centos-minimal'
61
62 type:
Fatih Degirmenciaaf95842019-04-23 17:54:19 +020063 - virtual:
64 slave-label: 'vpod-deploy-city'
65 - baremetal:
66 slave-label: 'baremetal-deploy'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +000067
68 phase:
Fatih Degirmenci10b2c0e2019-04-24 12:35:02 +020069 - deploy:
70 build-timeout: 60
71 - functest:
72 build-timeout: 120
73 - yardstick:
74 build-timeout: 30
Fatih Degirmenci514c5be2019-03-29 12:30:28 +000075
76 jobs:
77 - 'cloud-infra-periodic-engine-{os}-{type}-{stream}'
78 - 'cloud-infra-periodic-{os}-{phase}-{type}-{stream}'
79
80- job-template:
81 name: 'cloud-infra-periodic-engine-{os}-{type}-{stream}'
82
83 project-type: multijob
84
85 disabled: '{obj:disabled}'
86
87 concurrent: true
88
89 parameters:
90 - project-parameters:
91 project: '{project}'
92 branch: '{branch}'
93 - nordix-gerrit-parameters
94 - label:
95 name: SLAVE_LABEL
Fatih Degirmencib0b32522019-04-23 20:11:39 +020096 default: '{slave-label}'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +000097 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
98 - string:
99 name: DISTRIBUTION
100 default: '{distribution}'
101 description: 'Distribution to use for configuring target nodes (networking etc.)'
102 - string:
Fatih Degirmenciaaf95842019-04-23 17:54:19 +0200103 name: DEPLOY_TYPE
104 default: '{type}'
105 description: 'Type of the deployment'
106 - string:
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000107 name: USE_PREBUILT_DEPLOYMENT_IMAGE
108 default: 'true'
109 description: 'Use prebuilt deployment image while running as part of CI/CD'
110 - string:
111 name: IPA_DIB_OS_ELEMENT
112 default: '{ipa_dib_os_element}'
113 description: 'DIB OS Element to use for building the ramdisk image'
114 - string:
115 name: DIB_OS_RELEASE
116 default: '{dib_os_release}'
117 description: 'DIB OS Release to use for building the deployment image to provision target nodes with'
118 - string:
119 name: DIB_OS_ELEMENT
120 default: '{dib_os_element}'
121 description: 'DIB OS Element to use for building the deployment image to provision target nodes with'
122 - string:
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700123 name: DEPLOY_SCENARIO
124 default: 'k8-calico-nofeature'
125 description: 'Scenario to deploy and test'
126 - string:
127 name: TEST_SUITE
Fatih Degirmenci10b2c0e2019-04-24 12:35:02 +0200128 default: 'smoke'
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700129 description: 'Test suite to run'
130 - string:
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000131 name: CLEANUP
132 default: 'true'
133 description: 'Cleanup leftovers of the previous run'
134
135 properties:
136 - logrotate
137 - build-blocker:
138 use-build-blocker: true
139 blocking-jobs:
140 - 'cloud-infra-verify-engine-{os}-.*'
Fatih Degirmencid48647d2019-04-10 09:36:03 +0200141 - 'cloud-infra-verify-scenario-{os}-.*'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000142 - 'cloud-infra-periodic-engine-{os}-.*'
143 - 'cloud-infra-os-.*'
144 - 'cloud-infra-k8-.*'
145 block-level: 'NODE'
146 - throttle:
147 max-per-node: 1
148 max-total: 3
149 option: project
150
151 wrappers:
152 - build-timeout:
Fatih Degirmenci10b2c0e2019-04-24 12:35:02 +0200153 timeout: 210
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000154 - fix-workspace-permissions
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000155
156 scm:
157 - git-scm:
158 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
159 branch: '{branch}'
160 refspec: ''
161
162 triggers:
Fatih Degirmenci10b2c0e2019-04-24 12:35:02 +0200163 - timed: 'H H/3 * * *'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000164
165 builders:
166 - multijob:
167 name: deploy
168 condition: SUCCESSFUL
169 projects:
170 - name: 'cloud-infra-periodic-{os}-deploy-{type}-{stream}'
171 current-parameters: true
172 predefined-parameters: |
173 DISTRIBUTION=$DISTRIBUTION
Fatih Degirmenciaaf95842019-04-23 17:54:19 +0200174 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000175 USE_PREBUILT_DEPLOYMENT_IMAGE=$USE_PREBUILT_DEPLOYMENT_IMAGE
176 IPA_DIB_OS_ELEMENT=$IPA_DIB_OS_ELEMENT
177 DIB_OS_RELEASE=$DIB_OS_RELEASE
178 DIB_OS_ELEMENT=$DIB_OS_ELEMENT
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700179 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000180 CLEANUP=$CLEANUP
181 git-revision: true
182 node-parameters: true
183 kill-phase-on: FAILURE
184 abort-all-job: true
185 - multijob:
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700186 name: functest
187 condition: ALWAYS
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000188 projects:
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700189 - name: 'cloud-infra-periodic-{os}-functest-{type}-{stream}'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000190 current-parameters: true
191 predefined-parameters: |
192 DISTRIBUTION=$DISTRIBUTION
Fatih Degirmenciaaf95842019-04-23 17:54:19 +0200193 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700194 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
195 TEST_SUITE=$TEST_SUITE
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000196 CLEANUP=$CLEANUP
197 node-parameters: true
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700198 kill-phase-on: NEVER
199 abort-all-job: false
200 - multijob:
201 name: yardstick
202 condition: ALWAYS
203 projects:
204 - name: 'cloud-infra-periodic-{os}-yardstick-{type}-{stream}'
205 current-parameters: true
206 predefined-parameters: |
207 DISTRIBUTION=$DISTRIBUTION
Fatih Degirmenciaaf95842019-04-23 17:54:19 +0200208 DEPLOY_TYPE=$DEPLOY_TYPE
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700209 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
210 TEST_SUITE=$TEST_SUITE
211 CLEANUP=$CLEANUP
212 node-parameters: true
213 kill-phase-on: NEVER
214 abort-all-job: false
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000215
216- job-template:
217 name: 'cloud-infra-periodic-{os}-{phase}-{type}-{stream}'
218
219 disabled: false
220
221 concurrent: true
222
223 properties:
224 - logrotate
225
226 parameters:
227 - string:
228 name: PROJECT
229 default: $GERRIT_PROJECT
230 - string:
231 name: DISTRIBUTION
232 default: 'ubuntu18'
233 description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
234 - string:
Fatih Degirmenciaaf95842019-04-23 17:54:19 +0200235 name: DEPLOY_TYPE
236 default: 'virtual'
237 description: 'Type of the deployment. Overriden by upstream job.'
238 - string:
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000239 name: USE_PREBUILT_DEPLOYMENT_IMAGE
240 default: 'false'
241 description: 'Use prebuilt deployment image while running as part of CI/CD'
242 - string:
243 name: IPA_DIB_OS_ELEMENT
244 default: 'fedora'
245 description: 'DIB OS Element to use for building the ramdisk image. Overriden by upstream job.'
246 - string:
247 name: DIB_OS_RELEASE
248 default: 'bionic'
249 description: 'DIB OS Release to use for building the deployment image to provision target nodes with. Overriden by upstream job.'
250 - string:
251 name: DIB_OS_ELEMENT
252 default: 'ubuntu-minimal'
253 description: 'DIB OS Element to use for building the deployment image to provision target nodes with. Overriden by upstream job.'
254 - string:
Wenqing Gu2a4475b2019-04-12 09:52:40 +0200255 name: ENGINE_ANSIBLE_PARAMS
Fatih Degirmenci92419382019-04-17 19:20:21 +0200256 default: ' -v '
Wenqing Gu2a4475b2019-04-12 09:52:40 +0200257 description: 'Extra paramters that can be added when run the play books.'
258 - string:
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700259 name: DEPLOY_SCENARIO
260 default: 'k8-calico-nofeature'
261 description: 'Scenario to deploy and test'
262 - string:
263 name: TEST_FW
264 default: '{phase}'
265 description: 'Test framework to use'
266 - string:
267 name: TEST_SUITE
Fatih Degirmenci10b2c0e2019-04-24 12:35:02 +0200268 default: 'smoke'
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700269 description: 'Test suite to run'
270 - string:
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000271 name: TEST_REPO_URL
272 default: 'https://gerrit.nordix.org/infra/test.git'
273 description: 'URL to Nordix Cloud Infra test repository'
274 - string:
275 name: CLEANUP
276 default: 'false'
277
278 wrappers:
279 - build-timeout:
Fatih Degirmenci10b2c0e2019-04-24 12:35:02 +0200280 timeout: '{build-timeout}'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000281 - fix-workspace-permissions
282
283 scm:
284 - git-scm:
285 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
286 branch: '{branch}'
287 refspec: ''
288
289 builders:
Fatih Degirmenci0c0e67a2019-04-09 08:39:51 +0200290 - 'cloud-infra-{phase}-macro'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000291
292# vim: set ts=2 sw=2 expandtab: