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-periodic-engine-.*'
193 - credentials-binding:
195 credential-id: '{openrc-credentials-file}'
196 variable: OPENRC_FILE
200 - fix-workspace-permissions
205 - timed: '{daily-trigger}'
209 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
210 branch: '{nordix-branch}'
216 - description-setter:
217 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
220 /bin/rm -rf /tmp/openrc && /bin/cp -f $OPENRC_FILE /tmp/openrc
222 name: Deploy ONAP using OOM
225 - name: 'onap-deploy-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
226 current-parameters: false
227 predefined-parameters: |
229 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
230 DEPLOY_TYPE=$DEPLOY_TYPE
231 PROVISIONER_TYPE=$PROVISIONER_TYPE
232 INSTALLER_TYPE=$INSTALLER_TYPE
233 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
234 ONAP_VERSION=$ONAP_VERSION
235 ONAP_FLAVOR=$ONAP_FLAVOR
237 STACK_NAME=$STACK_NAME
238 KEYPAIR_NAME=$KEYPAIR_NAME
239 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
240 ENGINE_VERSION=$ENGINE_VERSION
241 ENGINE_REFSPEC=$ENGINE_REFSPEC
242 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
243 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
244 XTESTING_REPO_URL=$XTESTING_REPO_URL
245 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
248 node-parameters: true
252 name: K8S and OOM Healthcheck using xtesting
255 - name: 'oom-hc-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
256 current-parameters: false
257 predefined-parameters: |
259 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
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=oom-healthcheck
268 STACK_NAME=$STACK_NAME
269 KEYPAIR_NAME=$KEYPAIR_NAME
270 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
271 ENGINE_VERSION=$ENGINE_VERSION
272 ENGINE_REFSPEC=$ENGINE_REFSPEC
273 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
274 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
275 XTESTING_REPO_URL=$XTESTING_REPO_URL
276 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
278 node-parameters: true
282 name: ONAP Healthcheck using xtesting
283 execution-type: SEQUENTIALLY
286 - name: 'onap-hc-core-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
287 current-parameters: false
288 predefined-parameters: |
289 SLAVE_LABEL=$SLAVE_LABEL
291 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
292 PROVISIONER_TYPE=$PROVISIONER_TYPE
293 INSTALLER_TYPE=$INSTALLER_TYPE
294 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
295 DEPLOY_TYPE=$DEPLOY_TYPE
296 ONAP_VERSION=$ONAP_VERSION
298 TEST_TYPE=onap-healthcheck
300 STACK_NAME=$STACK_NAME
301 KEYPAIR_NAME=$KEYPAIR_NAME
302 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
303 ENGINE_VERSION=$ENGINE_VERSION
304 ENGINE_REFSPEC=$ENGINE_REFSPEC
305 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
306 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
307 XTESTING_REPO_URL=$XTESTING_REPO_URL
308 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
310 node-parameters: true
313 - name: 'onap-hc-small-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
314 current-parameters: false
315 predefined-parameters: |
316 SLAVE_LABEL=$SLAVE_LABEL
318 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
319 PROVISIONER_TYPE=$PROVISIONER_TYPE
320 INSTALLER_TYPE=$INSTALLER_TYPE
321 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
322 DEPLOY_TYPE=$DEPLOY_TYPE
323 ONAP_VERSION=$ONAP_VERSION
325 TEST_TYPE=onap-healthcheck
327 STACK_NAME=$STACK_NAME
328 KEYPAIR_NAME=$KEYPAIR_NAME
329 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
330 ENGINE_VERSION=$ENGINE_VERSION
331 ENGINE_REFSPEC=$ENGINE_REFSPEC
332 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
333 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
334 XTESTING_REPO_URL=$XTESTING_REPO_URL
335 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
337 node-parameters: true
340 - name: 'onap-hc-medium-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
341 current-parameters: false
342 predefined-parameters: |
343 SLAVE_LABEL=$SLAVE_LABEL
345 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
346 PROVISIONER_TYPE=$PROVISIONER_TYPE
347 INSTALLER_TYPE=$INSTALLER_TYPE
348 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
349 DEPLOY_TYPE=$DEPLOY_TYPE
350 ONAP_VERSION=$ONAP_VERSION
352 TEST_TYPE=onap-healthcheck
354 STACK_NAME=$STACK_NAME
355 KEYPAIR_NAME=$KEYPAIR_NAME
356 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
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
367 - name: 'onap-hc-full-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
368 current-parameters: false
369 predefined-parameters: |
370 SLAVE_LABEL=$SLAVE_LABEL
372 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
373 PROVISIONER_TYPE=$PROVISIONER_TYPE
374 INSTALLER_TYPE=$INSTALLER_TYPE
375 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
376 DEPLOY_TYPE=$DEPLOY_TYPE
377 ONAP_VERSION=$ONAP_VERSION
379 TEST_TYPE=onap-healthcheck
381 STACK_NAME=$STACK_NAME
382 KEYPAIR_NAME=$KEYPAIR_NAME
383 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
384 ENGINE_VERSION=$ENGINE_VERSION
385 ENGINE_REFSPEC=$ENGINE_REFSPEC
386 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
387 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
388 XTESTING_REPO_URL=$XTESTING_REPO_URL
389 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
391 node-parameters: true
394 - name: 'onap-hc-healthdist-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
395 current-parameters: false
396 predefined-parameters: |
397 SLAVE_LABEL=$SLAVE_LABEL
399 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
400 PROVISIONER_TYPE=$PROVISIONER_TYPE
401 INSTALLER_TYPE=$INSTALLER_TYPE
402 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
403 DEPLOY_TYPE=$DEPLOY_TYPE
404 ONAP_VERSION=$ONAP_VERSION
405 ONAP_FLAVOR=healthdist
406 TEST_TYPE=onap-healthcheck
408 STACK_NAME=$STACK_NAME
409 KEYPAIR_NAME=$KEYPAIR_NAME
410 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
411 ENGINE_VERSION=$ENGINE_VERSION
412 ENGINE_REFSPEC=$ENGINE_REFSPEC
413 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
414 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
415 XTESTING_REPO_URL=$XTESTING_REPO_URL
416 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
418 node-parameters: true
422 name: Promote ONAP (not activated)
425 - name: 'promote-onap-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
426 current-parameters: false
427 predefined-parameters: |
428 SLAVE_LABEL=$SLAVE_LABEL
430 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
431 DEPLOY_TYPE=$DEPLOY_TYPE
432 INSTALLER_TYPE=$INSTALLER_TYPE
433 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
434 ONAP_VERSION=$ONAP_VERSION
435 ONAP_FLAVOR=$ONAP_FLAVOR
436 ENGINE_VERSION=$ENGINE_VERSION
437 ENGINE_REFSPEC=$ENGINE_REFSPEC
439 STACK_NAME=$STACK_NAME
440 KEYPAIR_NAME=$KEYPAIR_NAME
441 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
442 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
443 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
444 XTESTING_REPO_URL=$XTESTING_REPO_URL
445 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
447 node-parameters: true
463 !include-raw-escape: ./wait-for-pkg-manager.sh
465 !include-raw: ./delete-heat-stack.sh
468 name: '{onap-other-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
478 - project-parameters:
480 branch: '{nordix-branch}'
481 - nordix-gerrit-parameters
482 - onap-parameter-macro
485 default: 'xerces-jumphost-onap-ubuntu1804'
486 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
488 name: OPENSTACK_CLOUD_PROVIDER
490 description: 'Name of the cloud where this job is run'
493 default: 'ubuntu1804'
494 description: 'Distribution to use for configuring target nodes (networking etc.)'
497 default: '{onap-flavor}'
498 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
501 default: '{onap-version}'
502 description: 'ONAP version to deploy'
504 name: HEAT_ENVIRONMENT_FILENAME
505 default: "heat-environment-full.yaml"
506 description: 'Type of the deployment'
508 name: HEAT_ENVIRONMENT_FILE
509 default: "file://$WORKSPACE/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/$HEAT_ENVIRONMENT_FILENAME"
510 description: 'Type of the deployment'
515 timeout: '{build-timeout}'
516 - fix-workspace-permissions
517 - credentials-binding:
518 - username-password-separated:
519 credential-id: 'nordix-cicd-arm-credentials'
520 username: NORDIX_ARM_USERNAME
521 password: NORDIX_ARM_TOKEN
522 - username-password-separated:
523 credential-id: 'nordix-cicd-harbor-credentials'
524 username: NORDIX_HARBOR_USERNAME
525 password: NORDIX_HARBOR_PASSWORD
529 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
530 branch: '{nordix-branch}'
536 - description-setter:
537 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR | $OPENSTACK_CLOUD_PROVIDER
538 - '{onap-other-phases}-macro'
541 name: '{onap-healthcheck-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
551 - project-parameters:
553 branch: '{nordix-branch}'
554 - nordix-gerrit-parameters
555 - onap-parameter-macro
558 default: 'xerces-jumphost-onap-ubuntu1804'
559 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
561 name: OPENSTACK_CLOUD_PROVIDER
563 description: 'Name of the cloud where this job is run'
566 default: 'ubuntu1804'
567 description: 'Distribution to use for configuring target nodes (networking etc.)'
570 default: '{onap-version}'
571 description: 'ONAP version to deploy'
573 name: HEAT_ENVIRONMENT_FILENAME
574 default: "heat-environment-full.yaml"
575 description: 'Type of the deployment'
577 name: HEAT_ENVIRONMENT_FILE
578 default: "file://$WORKSPACE/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/$HEAT_ENVIRONMENT_FILENAME"
579 description: 'Type of the deployment'
582 default: '{engine-version}'
583 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
586 default: '{engine-refspec}'
587 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
589 name: DEPLOY_SCENARIO_VERSION
590 default: '{deploy-scenario-version}'
591 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
593 name: DEPLOY_SCENARIO_REFSPEC
594 default: '{deploy-scenario-refspec}'
595 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
598 default: '{pod-name}'
599 description: 'Development purposes only! Set to none for disabling test results DB reporting.'
604 timeout: '{build-timeout}'
605 - fix-workspace-permissions
609 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
610 branch: '{nordix-branch}'
616 - description-setter:
617 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR | $OPENSTACK_CLOUD_PROVIDER
618 - 'onap-healthcheck-macro'
620 # vim: set ts=2 sw=2 expandtab: