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
48 engine-version: master
49 engine-refspec: "refs/changes/71/1771/4"
50 deploy-scenario-version: "9a215b7935ab2b14cc7451ba15ea575e62e26da7"
51 deploy-scenario-refspec: "refs/changes/65/1765/12"
57 engine-version: master
58 engine-refspec: master
59 deploy-scenario-version: master
60 deploy-scenario-refspec: master
71 provisioner-type: heat
72 installer-type: kubespray
73 slave-label: 'jumphost-onap-ubuntu1804'
80 test-type: oom-healthcheck
83 test-type: onap-healthcheck
90 - '{deploy-scenario}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
91 - '{phase}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
94 name: '{deploy-scenario}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
96 project-type: multijob
98 disabled: '{obj:disabled}'
103 - project-parameters:
105 branch: '{nordix-branch}'
106 - nordix-gerrit-parameters
109 default: '{slave-label}'
110 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
114 description: 'Distribution to use for configuring target nodes (networking etc.)'
116 name: PROVISIONER_TYPE
117 default: '{provisioner-type}'
118 description: 'Provisioner to use for provisioning nodes'
121 default: '{installer-type}'
122 description: 'Installer to use for deploying the scenario'
124 name: DEPLOY_SCENARIO
125 default: '{deploy-scenario}'
126 description: 'Scenario to deploy and test'
130 description: 'Type of the deployment'
133 default: '{onap-version}'
134 description: 'ONAP version to deploy'
137 default: '{onap-flavor}'
138 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
140 name: ENGINE_REPO_URL
141 default: 'https://gerrit.nordix.org/infra/engine.git'
142 description: 'URL to Nordix cloud-infra/engine repository'
145 default: '{engine-version}'
146 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
149 default: '{engine-refspec}'
150 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
152 name: DEPLOY_SCENARIO_VERSION
153 default: '{deploy-scenario-version}'
154 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
156 name: DEPLOY_SCENARIO_REFSPEC
157 default: '{deploy-scenario-refspec}'
158 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
160 name: XTESTING_REPO_URL
161 default: 'https://gerrit.nordix.org/opnfv/xtesting-onap.git'
162 description: 'URL to Nordix xtesting-onap repository'
164 name: ENGINE_ANSIBLE_PARAMS
166 description: 'Extra parameters that can be added when run the play books.'
170 description: 'Cleanup leftovers of the previous run'
175 use-build-blocker: true
177 - 'cloud-infra-periodic-engine-.*'
189 - fix-workspace-permissions
193 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
194 branch: '{nordix-branch}'
200 - description-setter:
201 description: $INSTALLER_TYPE | $DEPLOY_SCENARIO
203 name: Deploy ONAP using OOM
204 condition: SUCCESSFUL
206 - name: 'onap-deploy-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
207 current-parameters: false
208 predefined-parameters: |
210 DEPLOY_TYPE=$DEPLOY_TYPE
211 PROVISIONER_TYPE=$PROVISIONER_TYPE
212 INSTALLER_TYPE=$INSTALLER_TYPE
213 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
214 ONAP_VERSION=$ONAP_VERSION
215 ONAP_FLAVOR=$ONAP_FLAVOR
216 ENGINE_VERSION=$ENGINE_VERSION
217 ENGINE_REFSPEC=$ENGINE_REFSPEC
218 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
219 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
220 XTESTING_REPO_URL=$XTESTING_REPO_URL
221 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
224 node-parameters: true
225 kill-phase-on: FAILURE
228 name: Kubernetes and OOM Healthcheck using xtesting
231 - name: 'oom-healthcheck-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
232 current-parameters: false
233 predefined-parameters: |
235 DEPLOY_TYPE=$DEPLOY_TYPE
236 PROVISIONER_TYPE=$PROVISIONER_TYPE
237 INSTALLER_TYPE=$INSTALLER_TYPE
238 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
239 ONAP_VERSION=$ONAP_VERSION
241 TEST_TYPE=oom-healthcheck
242 ENGINE_VERSION=$ENGINE_VERSION
243 ENGINE_REFSPEC=$ENGINE_REFSPEC
244 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
245 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
246 XTESTING_REPO_URL=$XTESTING_REPO_URL
247 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
249 node-parameters: true
253 name: ONAP Healthcheck using xtesting (core, small, medium, and full functionality)
256 - name: 'onap-healthcheck-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
257 current-parameters: false
258 predefined-parameters: |
260 DEPLOY_TYPE=$DEPLOY_TYPE
261 PROVISIONER_TYPE=$PROVISIONER_TYPE
262 INSTALLER_TYPE=$INSTALLER_TYPE
263 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
264 ONAP_VERSION=$ONAP_VERSION
266 TEST_TYPE=onap-healthcheck
267 ENGINE_VERSION=$ENGINE_VERSION
268 ENGINE_REFSPEC=$ENGINE_REFSPEC
269 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
270 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
271 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
272 XTESTING_REPO_URL=$XTESTING_REPO_URL
273 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
275 node-parameters: true
278 - name: 'onap-healthcheck-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
279 current-parameters: false
280 predefined-parameters: |
282 DEPLOY_TYPE=$DEPLOY_TYPE
283 PROVISIONER_TYPE=$PROVISIONER_TYPE
284 INSTALLER_TYPE=$INSTALLER_TYPE
285 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
286 ONAP_VERSION=$ONAP_VERSION
288 TEST_TYPE=onap-healthcheck
289 ENGINE_VERSION=$ENGINE_VERSION
290 ENGINE_REFSPEC=$ENGINE_REFSPEC
291 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
292 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
293 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
294 XTESTING_REPO_URL=$XTESTING_REPO_URL
295 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
297 node-parameters: true
300 - name: 'onap-healthcheck-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
301 current-parameters: false
302 predefined-parameters: |
304 DEPLOY_TYPE=$DEPLOY_TYPE
305 PROVISIONER_TYPE=$PROVISIONER_TYPE
306 INSTALLER_TYPE=$INSTALLER_TYPE
307 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
308 ONAP_VERSION=$ONAP_VERSION
310 TEST_TYPE=onap-healthcheck
311 ENGINE_VERSION=$ENGINE_VERSION
312 ENGINE_REFSPEC=$ENGINE_REFSPEC
313 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
314 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
315 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
316 XTESTING_REPO_URL=$XTESTING_REPO_URL
317 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
319 node-parameters: true
322 - name: 'onap-healthcheck-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
323 current-parameters: false
324 predefined-parameters: |
326 DEPLOY_TYPE=$DEPLOY_TYPE
327 PROVISIONER_TYPE=$PROVISIONER_TYPE
328 INSTALLER_TYPE=$INSTALLER_TYPE
329 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
330 ONAP_VERSION=$ONAP_VERSION
332 TEST_TYPE=onap-healthcheck
333 ENGINE_VERSION=$ENGINE_VERSION
334 ENGINE_REFSPEC=$ENGINE_REFSPEC
335 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
336 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
337 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
338 XTESTING_REPO_URL=$XTESTING_REPO_URL
339 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
341 node-parameters: true
345 name: Promote ONAP (not activated)
348 - name: 'promote-onap-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
349 current-parameters: false
350 predefined-parameters: |
352 DEPLOY_TYPE=$DEPLOY_TYPE
353 INSTALLER_TYPE=$INSTALLER_TYPE
354 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
355 ONAP_VERSION=$ONAP_VERSION
356 ONAP_FLAVOR=$ONAP_FLAVOR
357 ENGINE_VERSION=$ENGINE_VERSION
358 ENGINE_REFSPEC=$ENGINE_REFSPEC
359 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
360 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
361 XTESTING_REPO_URL=$XTESTING_REPO_URL
362 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
364 node-parameters: true
371 - name: 'delete-stack-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
372 current-parameters: false
373 predefined-parameters: |
375 DEPLOY_TYPE=$DEPLOY_TYPE
376 INSTALLER_TYPE=$INSTALLER_TYPE
377 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
378 ONAP_VERSION=$ONAP_VERSION
379 ONAP_FLAVOR=$ONAP_FLAVOR
380 ENGINE_VERSION=$ENGINE_VERSION
381 ENGINE_REFSPEC=$ENGINE_REFSPEC
382 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
383 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
384 XTESTING_REPO_URL=$XTESTING_REPO_URL
385 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
387 node-parameters: true
392 name: '{phase}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
402 - project-parameters:
404 branch: '{nordix-branch}'
405 - nordix-gerrit-parameters
408 default: 'jumphost-onap-ubuntu1804'
409 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
412 default: 'ubuntu1804'
413 description: 'Distribution to use for configuring target nodes (networking etc.). Overriden by upstream job.'
415 name: PROVISIONER_TYPE
417 description: 'Provisioner to use for provisioning nodes'
421 description: 'Installer to use for deploying the scenario'
423 name: DEPLOY_SCENARIO
424 default: 'onap-oom-nofeature'
425 description: 'Scenario to deploy and test'
427 name: HEAT_ENVIRONMENT_FILE
428 default: "file://$WORKSPACE/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/heat-environment-full.yaml"
429 description: 'Type of the deployment'
433 description: 'Type of the deployment. Overriden by upstream job.'
437 description: 'ONAP version to deploy'
440 default: '{onap-flavor}'
441 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
444 default: 'oom-healthcheck'
445 description: 'Test type to run. Could be oom-healthcheck or onap-healthcheck'
449 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
453 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
455 name: DEPLOY_SCENARIO_VERSION
457 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
459 name: DEPLOY_SCENARIO_REFSPEC
461 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
463 name: XTESTING_REPO_URL
464 default: 'https://gerrit.nordix.org/opnfv/xtesting-onap.git'
465 description: 'URL to Nordix xtesting-onap repository'
467 name: ENGINE_ANSIBLE_PARAMS
469 description: 'Extra parameters that can be added when run the play books.'
475 - credentials-binding:
477 credential-id: nordix-jenkins-openrcfile-city-frankfurt-defaultproject
478 variable: OPENRC_FILE
481 timeout: '{build-timeout}'
482 - fix-workspace-permissions
486 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
487 branch: '{nordix-branch}'
493 - description-setter:
494 description: $INSTALLER_TYPE $DEPLOY_SCENARIO
497 # vim: set ts=2 sw=2 expandtab: