blob: ff36fae1a93055af281f298954e842fa0a68bebe [file] [log] [blame]
Fatih Degirmenci6b4d2852019-02-07 11:24:29 +01001---
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
Fatih Degirmencid7f06a82019-03-23 12:54:45 +010021#--------------------------------------------------------------------------------------
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/engine
25#
26# These jobs verify changes that
27# - implement new features or fix bugs for the deployment framework, engine, itself
28# - implement new features or fix bugs to the playbooks and roles used for utilizing
29# open source components such as bifrost, kubespray, and kolla-ansible
30# - bump versions of open source components or the scenarios
31#
32# These jobs are set to run on slaves with label vpod-deploy-ubuntu1604.
33# The slaves have
34# - Ubuntu1604 as the base distro
35# - nested virtualization
36# - internet access
37# - passwordless sudo
38# - 16 CPUs/32GB RAM/200 GB Disk
39# - docker, git vim curl wget zip unzip chrony apt-transport-https ca-certificates curl
40# gnupg-agent software-properties-common docker-ce docker-ce-cli containerd.io openjdk-8-jre
41#
42# The slaves should not have a cloud infra scenario deployed on them.
43#--------------------------------------------------------------------------------------
44
Fatih Degirmenci6b4d2852019-02-07 11:24:29 +010045- project:
Fatih Degirmencid7f06a82019-03-23 12:54:45 +010046 name: 'cloud-infra-verify-engine'
Fatih Degirmenci6b4d2852019-02-07 11:24:29 +010047
Fatih Degirmenci1cea3ec2019-02-08 12:10:48 +010048 project: 'infra/engine'
Fatih Degirmenci6b4d2852019-02-07 11:24:29 +010049
50 stream:
51 - 'master':
52 branch: '{stream}'
53 disabled: 'false'
54
Fatih Degirmencia71174c2019-02-28 10:19:43 +010055 os:
Fatih Degirmencia71174c2019-02-28 10:19:43 +010056 - ubuntu1804:
Fatih Degirmenci9ff8c252019-03-01 15:45:57 +010057 disabled: 'false'
58 distribution: 'ubuntu18'
Fatih Degirmencid7f06a82019-03-23 12:54:45 +010059 ipa_dib_os_element: 'coreos'
Fatih Degirmenci9ff8c252019-03-01 15:45:57 +010060 dib_os_release: 'bionic'
61 dib_os_element: 'ubuntu-minimal'
Fatih Degirmencia71174c2019-02-28 10:19:43 +010062 - centos7:
Fatih Degirmencia71174c2019-02-28 10:19:43 +010063 disabled: 'true'
Fatih Degirmenci9ff8c252019-03-01 15:45:57 +010064 distribution: 'centos7'
Fatih Degirmencid7f06a82019-03-23 12:54:45 +010065 ipa_dib_os_element: 'coreos'
Fatih Degirmenci9ff8c252019-03-01 15:45:57 +010066 dib_os_release: '7'
67 dib_os_element: 'centos-minimal'
Fatih Degirmenci6b4d2852019-02-07 11:24:29 +010068
69 type:
70 - virtual
71
72 phase:
73 - deploy
Fatih Degirmenci429341c2019-04-03 11:18:28 -070074 - functest
Fatih Degirmenci6b4d2852019-02-07 11:24:29 +010075
76 jobs:
Fatih Degirmencid7f06a82019-03-23 12:54:45 +010077 - 'cloud-infra-verify-engine-{os}-{type}-{stream}'
Fatih Degirmencia71174c2019-02-28 10:19:43 +010078 - 'cloud-infra-verify-{os}-{phase}-{type}-{stream}'
Fatih Degirmenci6b4d2852019-02-07 11:24:29 +010079
80- job-template:
Fatih Degirmencid7f06a82019-03-23 12:54:45 +010081 name: 'cloud-infra-verify-engine-{os}-{type}-{stream}'
Fatih Degirmenci6b4d2852019-02-07 11:24:29 +010082
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
Fatih Degirmencic83c5272019-02-26 14:52:07 +010094 - label:
95 name: SLAVE_LABEL
Fatih Degirmencia71174c2019-02-28 10:19:43 +010096 default: 'vpod-deploy-{os}'
Fatih Degirmenci9ff8c252019-03-01 15:45:57 +010097 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
Fatih Degirmenci6b4d2852019-02-07 11:24:29 +010098 - string:
Fatih Degirmenci9ff8c252019-03-01 15:45:57 +010099 name: DISTRIBUTION
100 default: '{distribution}'
101 description: 'Distribution to use for configuring target nodes (networking etc.)'
102 - string:
Fatih Degirmencia5099eb2019-03-21 11:25:55 +0100103 name: USE_PREBUILT_DEPLOYMENT_IMAGE
104 default: 'true'
105 description: 'Use prebuilt deployment image while running as part of CI/CD'
106 - string:
Fatih Degirmenci9ff8c252019-03-01 15:45:57 +0100107 name: IPA_DIB_OS_ELEMENT
108 default: '{ipa_dib_os_element}'
109 description: 'DIB OS Element to use for building the ramdisk image'
110 - string:
111 name: DIB_OS_RELEASE
112 default: '{dib_os_release}'
113 description: 'DIB OS Release to use for building the deployment image to provision target nodes with'
114 - string:
115 name: DIB_OS_ELEMENT
116 default: '{dib_os_element}'
117 description: 'DIB OS Element to use for building the deployment image to provision target nodes with'
Fatih Degirmencie8bc4552019-02-15 16:20:23 +0100118 - string:
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700119 name: DEPLOY_SCENARIO
120 default: 'k8-calico-nofeature'
121 description: 'Scenario to deploy and test'
122 - string:
123 name: TEST_SUITE
124 default: 'healthcheck'
125 description: 'Test suite to run'
126 - string:
Fatih Degirmencie8bc4552019-02-15 16:20:23 +0100127 name: CLEANUP
128 default: 'true'
Fatih Degirmenci9ff8c252019-03-01 15:45:57 +0100129 description: 'Cleanup leftovers of the previous run'
Fatih Degirmenci6b4d2852019-02-07 11:24:29 +0100130
131 properties:
132 - logrotate
133 - build-blocker:
134 use-build-blocker: true
135 blocking-jobs:
Fatih Degirmencid7f06a82019-03-23 12:54:45 +0100136 - 'cloud-infra-verify-engine-{os}-.*'
Fatih Degirmenci514c5be2019-03-29 12:30:28 +0000137 - 'cloud-infra-periodic-engine-{os}-.*'
Fatih Degirmenci6b4d2852019-02-07 11:24:29 +0100138 - 'cloud-infra-os-.*'
139 - 'cloud-infra-k8-.*'
Fatih Degirmenci885498a2019-02-26 11:02:36 +0100140 block-level: 'NODE'
Fatih Degirmenci6b4d2852019-02-07 11:24:29 +0100141 - throttle:
142 max-per-node: 1
Fatih Degirmenci885498a2019-02-26 11:02:36 +0100143 max-total: 3
Fatih Degirmenci6b4d2852019-02-07 11:24:29 +0100144 option: project
145
146 wrappers:
147 - build-timeout:
148 timeout: 120
149 - fix-workspace-permissions
Fatih Degirmenci885498a2019-02-26 11:02:36 +0100150 - openstack:
Fatih Degirmenci885498a2019-02-26 11:02:36 +0100151 single-use: True
Fatih Degirmenci6b4d2852019-02-07 11:24:29 +0100152
153 scm:
154 - git-scm-gerrit:
155 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
156 branch: '{branch}'
157 refspec: $GERRIT_REFSPEC
158
159 triggers:
160 - nordix-gerrit-trigger-patchset-created:
Fatih Degirmencid7f06a82019-03-23 12:54:45 +0100161 project: 'infra\/engine'
Fatih Degirmenci6b4d2852019-02-07 11:24:29 +0100162 branch: '{branch}'
163 files: '**'
164
165 builders:
166 - multijob:
167 name: deploy
168 condition: SUCCESSFUL
169 projects:
Fatih Degirmencia71174c2019-02-28 10:19:43 +0100170 - name: 'cloud-infra-verify-{os}-deploy-{type}-{stream}'
Fatih Degirmenci6b4d2852019-02-07 11:24:29 +0100171 current-parameters: true
172 predefined-parameters: |
Fatih Degirmenci9ff8c252019-03-01 15:45:57 +0100173 DISTRIBUTION=$DISTRIBUTION
Fatih Degirmencia5099eb2019-03-21 11:25:55 +0100174 USE_PREBUILT_DEPLOYMENT_IMAGE=$USE_PREBUILT_DEPLOYMENT_IMAGE
Fatih Degirmenci9ff8c252019-03-01 15:45:57 +0100175 IPA_DIB_OS_ELEMENT=$IPA_DIB_OS_ELEMENT
176 DIB_OS_RELEASE=$DIB_OS_RELEASE
177 DIB_OS_ELEMENT=$DIB_OS_ELEMENT
Fatih Degirmencie8bc4552019-02-15 16:20:23 +0100178 CLEANUP=$CLEANUP
Fatih Degirmenci6b4d2852019-02-07 11:24:29 +0100179 GERRIT_PROJECT=$GERRIT_PROJECT
180 GERRIT_BRANCH=$GERRIT_BRANCH
181 GERRIT_REFSPEC=$GERRIT_REFSPEC
182 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
183 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
184 node-parameters: true
185 kill-phase-on: FAILURE
186 abort-all-job: true
187 - multijob:
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700188 name: functest
Fatih Degirmenci6b4d2852019-02-07 11:24:29 +0100189 condition: SUCCESSFUL
190 projects:
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700191 - name: 'cloud-infra-verify-{os}-functest-{type}-{stream}'
Fatih Degirmenci6b4d2852019-02-07 11:24:29 +0100192 current-parameters: true
193 predefined-parameters: |
Fatih Degirmenci9ff8c252019-03-01 15:45:57 +0100194 DISTRIBUTION=$DISTRIBUTION
Fatih Degirmencia5099eb2019-03-21 11:25:55 +0100195 USE_PREBUILT_DEPLOYMENT_IMAGE=$USE_PREBUILT_DEPLOYMENT_IMAGE
Fatih Degirmenci9ff8c252019-03-01 15:45:57 +0100196 IPA_DIB_OS_ELEMENT=$IPA_DIB_OS_ELEMENT
197 DIB_OS_RELEASE=$DIB_OS_RELEASE
198 DIB_OS_ELEMENT=$DIB_OS_ELEMENT
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700199 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
200 TEST_SUITE=$TEST_SUITE
Fatih Degirmencie8bc4552019-02-15 16:20:23 +0100201 CLEANUP=$CLEANUP
Fatih Degirmenci6b4d2852019-02-07 11:24:29 +0100202 GERRIT_PROJECT=$GERRIT_PROJECT
203 GERRIT_BRANCH=$GERRIT_BRANCH
204 GERRIT_REFSPEC=$GERRIT_REFSPEC
205 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
206 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
207 node-parameters: true
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700208 kill-phase-on: FAILURE
Fatih Degirmenci6b4d2852019-02-07 11:24:29 +0100209 abort-all-job: true
210
211- job-template:
Fatih Degirmencia71174c2019-02-28 10:19:43 +0100212 name: 'cloud-infra-verify-{os}-{phase}-{type}-{stream}'
Fatih Degirmenci6b4d2852019-02-07 11:24:29 +0100213
214 disabled: false
215
216 concurrent: true
217
218 properties:
219 - logrotate
220
221 parameters:
222 - string:
223 name: PROJECT
224 default: $GERRIT_PROJECT
225 - string:
Fatih Degirmenci9ff8c252019-03-01 15:45:57 +0100226 name: DISTRIBUTION
227 default: 'ubuntu18'
228 description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
229 - string:
Fatih Degirmencia5099eb2019-03-21 11:25:55 +0100230 name: USE_PREBUILT_DEPLOYMENT_IMAGE
231 default: 'false'
232 description: 'Use prebuilt deployment image while running as part of CI/CD'
233 - string:
Fatih Degirmenci9ff8c252019-03-01 15:45:57 +0100234 name: IPA_DIB_OS_ELEMENT
235 default: 'fedora'
236 description: 'DIB OS Element to use for building the ramdisk image. Overriden by upstream job.'
237 - string:
238 name: DIB_OS_RELEASE
239 default: 'bionic'
240 description: 'DIB OS Release to use for building the deployment image to provision target nodes with. Overriden by upstream job.'
241 - string:
242 name: DIB_OS_ELEMENT
243 default: 'ubuntu-minimal'
244 description: 'DIB OS Element to use for building the deployment image to provision target nodes with. Overriden by upstream job.'
Fatih Degirmencie8bc4552019-02-15 16:20:23 +0100245 - string:
Fatih Degirmenci429341c2019-04-03 11:18:28 -0700246 name: DEPLOY_SCENARIO
247 default: 'k8-calico-nofeature'
248 description: 'Scenario to deploy and test'
249 - string:
250 name: TEST_FW
251 default: '{phase}'
252 description: 'Test framework to use'
253 - string:
254 name: TEST_SUITE
255 default: 'healthcheck'
256 description: 'Test suite to run'
257 - string:
Fatih Degirmenci91429362019-03-25 09:53:32 +0100258 name: TEST_REPO_URL
259 default: 'https://gerrit.nordix.org/infra/test.git'
260 description: 'URL to Nordix Cloud Infra test repository'
261 - string:
Fatih Degirmencie8bc4552019-02-15 16:20:23 +0100262 name: CLEANUP
263 default: 'false'
Fatih Degirmenci6b4d2852019-02-07 11:24:29 +0100264
265 wrappers:
266 - build-timeout:
267 timeout: 120
268 - fix-workspace-permissions
269
270 scm:
271 - git-scm-gerrit:
272 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
273 branch: '{branch}'
274 refspec: $GERRIT_REFSPEC
275
276 builders:
Fatih Degirmenci0c0e67a2019-04-09 08:39:51 +0200277 - 'cloud-infra-{phase}-macro'
Fatih Degirmenci6b4d2852019-02-07 11:24:29 +0100278
279# vim: set ts=2 sw=2 expandtab: