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 deploying and testing
23 # ONAP scenario onap-nofeature-noha.
24 #--------------------------------------------------------------------------------------
27 name: 'cloud-infra-periodic-onap'
29 project: 'infra/engine'
33 slave-label: 'city-jumphost-ubuntu1804'
34 openrc-credentials-file: 'est-jenkins-openrcfile-city-frankfurt-onap'
35 daily-trigger: '@midnight'
37 slave-label: 'xerces-jumphost-ubuntu1804'
38 openrc-credentials-file: 'est-estinfra-openrcfile-xerces-lund-onap'
39 daily-trigger: '#@midnight'
46 engine-version: master
47 engine-refspec: master
48 deploy-scenario: 'onap-nofeature-noha'
49 deploy-scenario-version: master
50 deploy-scenario-refspec: master
57 engine-version: master
58 engine-refspec: master
59 deploy-scenario: 'onap-nofeature-noha'
60 deploy-scenario-version: master
61 deploy-scenario-refspec: master
74 provisioner-type: heat
75 installer-type: kubespray
82 test-type: oom-healthcheck
86 onap-healthcheck-phases:
89 test-type: onap-healthcheck
92 test-type: onap-healthcheck
95 test-type: onap-healthcheck
98 test-type: onap-healthcheck
101 test-type: onap-healthcheck
104 - 'onap-online-{onap-flavor}-{distro}-{installer-type}-{cloud}-{type}-{ci-loop}-{onap-branch}'
105 - '{onap-other-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
106 - '{onap-healthcheck-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
109 name: 'onap-online-{onap-flavor}-{distro}-{installer-type}-{cloud}-{type}-{ci-loop}-{onap-branch}'
111 project-type: multijob
113 disabled: '{obj:disabled}'
118 - project-parameters:
120 branch: '{nordix-branch}'
121 - nordix-gerrit-parameters
122 - onap-parameter-macro
125 default: '{slave-label}'
126 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
130 description: 'Distribution to use for configuring target nodes (networking etc.)'
132 name: OPENSTACK_CLOUD_PROVIDER
134 description: 'Name of the cloud where this job is run'
137 default: '{onap-version}'
138 description: 'ONAP version to deploy'
141 default: '{onap-flavor}'
142 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
145 default: 'nordix-cicd-{deploy-scenario}-{onap-branch}-{onap-flavor}'
148 default: 'keypair-nordix-cicd-{deploy-scenario}-{onap-branch}-{onap-flavor}'
150 name: HEAT_ENVIRONMENT_FILENAME
151 default: "heat-environment-{cloud}-{distro}-full.yaml"
152 description: 'Type of the deployment'
155 default: '{engine-version}'
156 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
159 default: '{engine-refspec}'
160 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
162 name: DEPLOY_SCENARIO_VERSION
163 default: '{deploy-scenario-version}'
164 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
166 name: DEPLOY_SCENARIO_REFSPEC
167 default: '{deploy-scenario-refspec}'
168 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
171 default: '{pod-name}'
172 description: 'Development purposes only! Set to none for disabling test results DB reporting.'
175 default: '{delete-stack}'
176 description: 'Development purposes only! Whether delete the stack or not. It must either be yes or no. Setting this to no will increase the cost!'
181 use-build-blocker: true
183 - 'cloud-infra-verify-engine-.*'
184 - 'cloud-infra-verify-scenario-.*'
185 - 'cloud-infra-periodic-engine-.*'
197 - credentials-binding:
199 credential-id: '{openrc-credentials-file}'
200 variable: OPENRC_FILE
204 - fix-workspace-permissions
209 - timed: '{daily-trigger}'
213 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
214 branch: '{nordix-branch}'
220 - description-setter:
221 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
224 /bin/rm -rf /tmp/openrc && /bin/cp -f $OPENRC_FILE /tmp/openrc
226 name: Deploy ONAP using OOM
229 - name: 'onap-deploy-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
230 current-parameters: false
231 predefined-parameters: |
233 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
234 DEPLOY_TYPE=$DEPLOY_TYPE
235 PROVISIONER_TYPE=$PROVISIONER_TYPE
236 INSTALLER_TYPE=$INSTALLER_TYPE
237 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
238 ONAP_VERSION=$ONAP_VERSION
239 ONAP_FLAVOR=$ONAP_FLAVOR
241 STACK_NAME=$STACK_NAME
242 KEYPAIR_NAME=$KEYPAIR_NAME
243 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
244 ENGINE_VERSION=$ENGINE_VERSION
245 ENGINE_REFSPEC=$ENGINE_REFSPEC
246 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
247 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
248 XTESTING_REPO_URL=$XTESTING_REPO_URL
249 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
252 node-parameters: true
256 name: K8S and OOM Healthcheck using xtesting
259 - name: 'oom-hc-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
260 current-parameters: false
261 predefined-parameters: |
263 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
264 DEPLOY_TYPE=$DEPLOY_TYPE
265 PROVISIONER_TYPE=$PROVISIONER_TYPE
266 INSTALLER_TYPE=$INSTALLER_TYPE
267 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
268 ONAP_VERSION=$ONAP_VERSION
270 TEST_TYPE=oom-healthcheck
272 STACK_NAME=$STACK_NAME
273 KEYPAIR_NAME=$KEYPAIR_NAME
274 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
275 ENGINE_VERSION=$ENGINE_VERSION
276 ENGINE_REFSPEC=$ENGINE_REFSPEC
277 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
278 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
279 XTESTING_REPO_URL=$XTESTING_REPO_URL
280 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
282 node-parameters: true
286 name: ONAP Healthcheck using xtesting
287 execution-type: SEQUENTIALLY
290 - name: 'onap-hc-core-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
291 current-parameters: false
292 predefined-parameters: |
293 SLAVE_LABEL=$SLAVE_LABEL
295 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
296 PROVISIONER_TYPE=$PROVISIONER_TYPE
297 INSTALLER_TYPE=$INSTALLER_TYPE
298 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
299 DEPLOY_TYPE=$DEPLOY_TYPE
300 ONAP_VERSION=$ONAP_VERSION
302 TEST_TYPE=onap-healthcheck
304 STACK_NAME=$STACK_NAME
305 KEYPAIR_NAME=$KEYPAIR_NAME
306 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
307 ENGINE_VERSION=$ENGINE_VERSION
308 ENGINE_REFSPEC=$ENGINE_REFSPEC
309 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
310 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
311 XTESTING_REPO_URL=$XTESTING_REPO_URL
312 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
314 node-parameters: true
317 - name: 'onap-hc-small-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
318 current-parameters: false
319 predefined-parameters: |
320 SLAVE_LABEL=$SLAVE_LABEL
322 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
323 PROVISIONER_TYPE=$PROVISIONER_TYPE
324 INSTALLER_TYPE=$INSTALLER_TYPE
325 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
326 DEPLOY_TYPE=$DEPLOY_TYPE
327 ONAP_VERSION=$ONAP_VERSION
329 TEST_TYPE=onap-healthcheck
331 STACK_NAME=$STACK_NAME
332 KEYPAIR_NAME=$KEYPAIR_NAME
333 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
334 ENGINE_VERSION=$ENGINE_VERSION
335 ENGINE_REFSPEC=$ENGINE_REFSPEC
336 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
337 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
338 XTESTING_REPO_URL=$XTESTING_REPO_URL
339 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
341 node-parameters: true
344 - name: 'onap-hc-medium-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
345 current-parameters: false
346 predefined-parameters: |
347 SLAVE_LABEL=$SLAVE_LABEL
349 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
350 PROVISIONER_TYPE=$PROVISIONER_TYPE
351 INSTALLER_TYPE=$INSTALLER_TYPE
352 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
353 DEPLOY_TYPE=$DEPLOY_TYPE
354 ONAP_VERSION=$ONAP_VERSION
356 TEST_TYPE=onap-healthcheck
358 STACK_NAME=$STACK_NAME
359 KEYPAIR_NAME=$KEYPAIR_NAME
360 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
361 ENGINE_VERSION=$ENGINE_VERSION
362 ENGINE_REFSPEC=$ENGINE_REFSPEC
363 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
364 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
365 XTESTING_REPO_URL=$XTESTING_REPO_URL
366 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
368 node-parameters: true
371 - name: 'onap-hc-full-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
372 current-parameters: false
373 predefined-parameters: |
374 SLAVE_LABEL=$SLAVE_LABEL
376 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
377 PROVISIONER_TYPE=$PROVISIONER_TYPE
378 INSTALLER_TYPE=$INSTALLER_TYPE
379 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
380 DEPLOY_TYPE=$DEPLOY_TYPE
381 ONAP_VERSION=$ONAP_VERSION
383 TEST_TYPE=onap-healthcheck
385 STACK_NAME=$STACK_NAME
386 KEYPAIR_NAME=$KEYPAIR_NAME
387 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
388 ENGINE_VERSION=$ENGINE_VERSION
389 ENGINE_REFSPEC=$ENGINE_REFSPEC
390 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
391 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
392 XTESTING_REPO_URL=$XTESTING_REPO_URL
393 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
395 node-parameters: true
398 - name: 'onap-hc-healthdist-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
399 current-parameters: false
400 predefined-parameters: |
401 SLAVE_LABEL=$SLAVE_LABEL
403 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
404 PROVISIONER_TYPE=$PROVISIONER_TYPE
405 INSTALLER_TYPE=$INSTALLER_TYPE
406 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
407 DEPLOY_TYPE=$DEPLOY_TYPE
408 ONAP_VERSION=$ONAP_VERSION
409 ONAP_FLAVOR=healthdist
410 TEST_TYPE=onap-healthcheck
412 STACK_NAME=$STACK_NAME
413 KEYPAIR_NAME=$KEYPAIR_NAME
414 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
415 ENGINE_VERSION=$ENGINE_VERSION
416 ENGINE_REFSPEC=$ENGINE_REFSPEC
417 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
418 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
419 XTESTING_REPO_URL=$XTESTING_REPO_URL
420 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
422 node-parameters: true
426 name: Promote ONAP (not activated)
429 - name: 'promote-onap-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
430 current-parameters: false
431 predefined-parameters: |
432 SLAVE_LABEL=$SLAVE_LABEL
434 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
435 DEPLOY_TYPE=$DEPLOY_TYPE
436 INSTALLER_TYPE=$INSTALLER_TYPE
437 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
438 ONAP_VERSION=$ONAP_VERSION
439 ONAP_FLAVOR=$ONAP_FLAVOR
440 ENGINE_VERSION=$ENGINE_VERSION
441 ENGINE_REFSPEC=$ENGINE_REFSPEC
443 STACK_NAME=$STACK_NAME
444 KEYPAIR_NAME=$KEYPAIR_NAME
445 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
446 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
447 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
448 XTESTING_REPO_URL=$XTESTING_REPO_URL
449 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
451 node-parameters: true
467 !include-raw-escape: ./wait-for-pkg-manager.sh
469 !include-raw: ./delete-heat-stack.sh
472 name: '{onap-other-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
482 - project-parameters:
484 branch: '{nordix-branch}'
485 - nordix-gerrit-parameters
486 - onap-parameter-macro
489 default: 'xerces-jumphost-onap-ubuntu1804'
490 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
492 name: OPENSTACK_CLOUD_PROVIDER
494 description: 'Name of the cloud where this job is run'
497 default: 'ubuntu1804'
498 description: 'Distribution to use for configuring target nodes (networking etc.)'
501 default: '{onap-flavor}'
502 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
505 default: '{onap-version}'
506 description: 'ONAP version to deploy'
508 name: HEAT_ENVIRONMENT_FILENAME
509 default: "heat-environment-full.yaml"
510 description: 'Type of the deployment'
512 name: HEAT_ENVIRONMENT_FILE
513 default: "file:///opt/engine/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/$HEAT_ENVIRONMENT_FILENAME"
514 description: 'Type of the deployment'
519 timeout: '{build-timeout}'
520 - fix-workspace-permissions
521 - credentials-binding:
522 - username-password-separated:
523 credential-id: 'nordix-cicd-arm-credentials'
524 username: NORDIX_ARM_USERNAME
525 password: NORDIX_ARM_TOKEN
526 - username-password-separated:
527 credential-id: 'nordix-cicd-harbor-credentials'
528 username: NORDIX_HARBOR_USERNAME
529 password: NORDIX_HARBOR_PASSWORD
533 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
534 branch: '{nordix-branch}'
540 - description-setter:
541 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR | $OPENSTACK_CLOUD_PROVIDER
542 - '{onap-other-phases}-macro'
545 name: '{onap-healthcheck-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
555 - project-parameters:
557 branch: '{nordix-branch}'
558 - nordix-gerrit-parameters
559 - onap-parameter-macro
562 default: 'xerces-jumphost-onap-ubuntu1804'
563 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
565 name: OPENSTACK_CLOUD_PROVIDER
567 description: 'Name of the cloud where this job is run'
570 default: 'ubuntu1804'
571 description: 'Distribution to use for configuring target nodes (networking etc.)'
574 default: '{onap-version}'
575 description: 'ONAP version to deploy'
577 name: HEAT_ENVIRONMENT_FILENAME
578 default: "heat-environment-full.yaml"
579 description: 'Type of the deployment'
581 name: HEAT_ENVIRONMENT_FILE
582 default: "file:///opt/engine/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/$HEAT_ENVIRONMENT_FILENAME"
583 description: 'Type of the deployment'
586 default: '{engine-version}'
587 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
590 default: '{engine-refspec}'
591 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
593 name: DEPLOY_SCENARIO_VERSION
594 default: '{deploy-scenario-version}'
595 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
597 name: DEPLOY_SCENARIO_REFSPEC
598 default: '{deploy-scenario-refspec}'
599 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
602 default: '{pod-name}'
603 description: 'Development purposes only! Set to none for disabling test results DB reporting.'
608 timeout: '{build-timeout}'
609 - fix-workspace-permissions
613 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
614 branch: '{nordix-branch}'
620 - description-setter:
621 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR | $OPENSTACK_CLOUD_PROVIDER
622 - 'onap-healthcheck-macro'
624 # vim: set ts=2 sw=2 expandtab: