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
10 # http://www.apache.org/licenses/LICENSE-2.0
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.
18 # SPDX-License-Identifier: Apache-2.0
19 # ============LICENSE_END=========================================================
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.
25 # These jobs are set to run on slaves with label vpod-deploy-ubuntu1604.
27 # - Ubuntu1604 as the base distro
28 # - nested virtualization
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
35 # The slaves should not have a cloud infra scenario deployed on them.
36 #--------------------------------------------------------------------------------------
39 name: 'cloud-infra-periodic-onap'
41 project: 'infra/engine'
46 onap-version: 4.0.0-ONAP
47 engine-version: master
48 engine-refspec: "refs/changes/71/1771/4"
49 deploy-scenario-version: "9a215b7935ab2b14cc7451ba15ea575e62e26da7"
50 deploy-scenario-refspec: "refs/changes/65/1765/12"
55 engine-version: master
56 engine-refspec: master
57 deploy-scenario-version: master
58 deploy-scenario-refspec: master
69 provisioner-type: heat
70 installer-type: kubespray
71 slave-label: 'jumphost-onap-ubuntu1804'
78 test-type: oom-healthcheck
84 onap-healthcheck-phases:
85 - onap-healthcheck-core:
87 test-type: onap-healthcheck
88 - onap-healthcheck-small:
90 test-type: onap-healthcheck
91 - onap-healthcheck-medium:
93 test-type: onap-healthcheck
94 - onap-healthcheck-full:
96 test-type: onap-healthcheck
99 - '{deploy-scenario}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
100 - '{onap-other-phases}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
101 - '{onap-healthcheck-phases}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
104 name: '{deploy-scenario}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
106 project-type: multijob
108 disabled: '{obj:disabled}'
113 - project-parameters:
115 branch: '{nordix-branch}'
116 - nordix-gerrit-parameters
117 - onap-parameter-macro
120 default: '{onap-version}'
121 description: 'ONAP version to deploy'
124 default: '{engine-version}'
125 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
128 default: '{engine-refspec}'
129 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
131 name: DEPLOY_SCENARIO_VERSION
132 default: '{deploy-scenario-version}'
133 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
135 name: DEPLOY_SCENARIO_REFSPEC
136 default: '{deploy-scenario-refspec}'
137 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
142 use-build-blocker: true
144 - 'cloud-infra-periodic-engine-.*'
156 - fix-workspace-permissions
160 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
161 branch: '{nordix-branch}'
167 - description-setter:
168 description: $INSTALLER_TYPE | $DEPLOY_SCENARIO
170 name: Deploy ONAP using OOM
171 condition: SUCCESSFUL
173 - name: 'onap-deploy-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
174 current-parameters: false
175 predefined-parameters: |
177 DEPLOY_TYPE=$DEPLOY_TYPE
178 PROVISIONER_TYPE=$PROVISIONER_TYPE
179 INSTALLER_TYPE=$INSTALLER_TYPE
180 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
181 ONAP_VERSION=$ONAP_VERSION
182 ONAP_FLAVOR=$ONAP_FLAVOR
183 ENGINE_VERSION=$ENGINE_VERSION
184 ENGINE_REFSPEC=$ENGINE_REFSPEC
185 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
186 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
187 XTESTING_REPO_URL=$XTESTING_REPO_URL
188 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
191 node-parameters: true
192 kill-phase-on: FAILURE
195 name: K8S and OOM Healthcheck using xtesting
198 - name: 'oom-healthcheck-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
199 current-parameters: false
200 predefined-parameters: |
202 DEPLOY_TYPE=$DEPLOY_TYPE
203 PROVISIONER_TYPE=$PROVISIONER_TYPE
204 INSTALLER_TYPE=$INSTALLER_TYPE
205 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
206 ONAP_VERSION=$ONAP_VERSION
208 TEST_TYPE=oom-healthcheck
209 ENGINE_VERSION=$ENGINE_VERSION
210 ENGINE_REFSPEC=$ENGINE_REFSPEC
211 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
212 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
213 XTESTING_REPO_URL=$XTESTING_REPO_URL
214 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
216 node-parameters: true
220 name: ONAP Healthcheck using xtesting
223 - name: 'onap-healthcheck-core-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
224 current-parameters: false
225 predefined-parameters: |
226 SLAVE_LABEL=$SLAVE_LABEL
228 PROVISIONER_TYPE=$PROVISIONER_TYPE
229 INSTALLER_TYPE=$INSTALLER_TYPE
230 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
231 DEPLOY_TYPE=$DEPLOY_TYPE
232 ONAP_VERSION=$ONAP_VERSION
234 TEST_TYPE=onap-healthcheck
235 ENGINE_VERSION=$ENGINE_VERSION
236 ENGINE_REFSPEC=$ENGINE_REFSPEC
237 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
238 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
239 XTESTING_REPO_URL=$XTESTING_REPO_URL
240 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
242 node-parameters: true
245 - name: 'onap-healthcheck-small-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
246 current-parameters: false
247 predefined-parameters: |
248 SLAVE_LABEL=$SLAVE_LABEL
250 PROVISIONER_TYPE=$PROVISIONER_TYPE
251 INSTALLER_TYPE=$INSTALLER_TYPE
252 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
253 DEPLOY_TYPE=$DEPLOY_TYPE
254 ONAP_VERSION=$ONAP_VERSION
256 TEST_TYPE=onap-healthcheck
257 ENGINE_VERSION=$ENGINE_VERSION
258 ENGINE_REFSPEC=$ENGINE_REFSPEC
259 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
260 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
261 XTESTING_REPO_URL=$XTESTING_REPO_URL
262 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
264 node-parameters: true
267 - name: 'onap-healthcheck-medium-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
268 current-parameters: false
269 predefined-parameters: |
270 SLAVE_LABEL=$SLAVE_LABEL
272 PROVISIONER_TYPE=$PROVISIONER_TYPE
273 INSTALLER_TYPE=$INSTALLER_TYPE
274 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
275 DEPLOY_TYPE=$DEPLOY_TYPE
276 ONAP_VERSION=$ONAP_VERSION
278 TEST_TYPE=onap-healthcheck
279 ENGINE_VERSION=$ENGINE_VERSION
280 ENGINE_REFSPEC=$ENGINE_REFSPEC
281 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
282 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
283 XTESTING_REPO_URL=$XTESTING_REPO_URL
284 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
286 node-parameters: true
289 - name: 'onap-healthcheck-full-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
290 current-parameters: false
291 predefined-parameters: |
292 SLAVE_LABEL=$SLAVE_LABEL
294 PROVISIONER_TYPE=$PROVISIONER_TYPE
295 INSTALLER_TYPE=$INSTALLER_TYPE
296 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
297 DEPLOY_TYPE=$DEPLOY_TYPE
298 ONAP_VERSION=$ONAP_VERSION
300 TEST_TYPE=onap-healthcheck
301 ENGINE_VERSION=$ENGINE_VERSION
302 ENGINE_REFSPEC=$ENGINE_REFSPEC
303 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
304 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
305 XTESTING_REPO_URL=$XTESTING_REPO_URL
306 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
308 node-parameters: true
312 name: Promote ONAP (not activated)
315 - name: 'promote-onap-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
316 current-parameters: false
317 predefined-parameters: |
319 DEPLOY_TYPE=$DEPLOY_TYPE
320 INSTALLER_TYPE=$INSTALLER_TYPE
321 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
322 ONAP_VERSION=$ONAP_VERSION
323 ONAP_FLAVOR=$ONAP_FLAVOR
324 ENGINE_VERSION=$ENGINE_VERSION
325 ENGINE_REFSPEC=$ENGINE_REFSPEC
326 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
327 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
328 XTESTING_REPO_URL=$XTESTING_REPO_URL
329 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
331 node-parameters: true
338 - name: 'delete-stack-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
339 current-parameters: false
340 predefined-parameters: |
342 DEPLOY_TYPE=$DEPLOY_TYPE
343 INSTALLER_TYPE=$INSTALLER_TYPE
344 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
345 ONAP_VERSION=$ONAP_VERSION
346 ONAP_FLAVOR=$ONAP_FLAVOR
347 ENGINE_VERSION=$ENGINE_VERSION
348 ENGINE_REFSPEC=$ENGINE_REFSPEC
349 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
350 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
351 XTESTING_REPO_URL=$XTESTING_REPO_URL
352 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
354 node-parameters: true
359 name: '{onap-other-phases}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
369 - project-parameters:
371 branch: '{nordix-branch}'
372 - nordix-gerrit-parameters
373 - onap-parameter-macro
376 default: '{onap-version}'
377 description: 'ONAP version to deploy'
380 - credentials-binding:
382 credential-id: nordix-jenkins-openrcfile-city-frankfurt-defaultproject
383 variable: OPENRC_FILE
386 timeout: '{build-timeout}'
387 - fix-workspace-permissions
391 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
392 branch: '{nordix-branch}'
398 - description-setter:
399 description: $INSTALLER_TYPE $DEPLOY_SCENARIO
400 - '{onap-other-phases}-macro'
403 name: '{onap-healthcheck-phases}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
413 - project-parameters:
415 branch: '{nordix-branch}'
416 - nordix-gerrit-parameters
417 - onap-parameter-macro
420 default: '{onap-version}'
421 description: 'ONAP version to deploy'
424 default: '{engine-version}'
425 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
428 default: '{engine-refspec}'
429 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
431 name: DEPLOY_SCENARIO_VERSION
432 default: '{deploy-scenario-version}'
433 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
435 name: DEPLOY_SCENARIO_REFSPEC
436 default: '{deploy-scenario-refspec}'
437 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
440 - credentials-binding:
442 credential-id: nordix-jenkins-openrcfile-city-frankfurt-defaultproject
443 variable: OPENRC_FILE
446 timeout: '{build-timeout}'
447 - fix-workspace-permissions
451 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
452 branch: '{nordix-branch}'
458 - description-setter:
459 description: $INSTALLER_TYPE $DEPLOY_SCENARIO
460 - 'onap-healthcheck-macro'
462 # vim: set ts=2 sw=2 expandtab: