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
251 node-parameters: true
255 name: K8S and OOM Healthcheck using xtesting
258 - name: 'oom-hc-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
259 current-parameters: false
260 predefined-parameters: |
262 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
263 DEPLOY_TYPE=$DEPLOY_TYPE
264 PROVISIONER_TYPE=$PROVISIONER_TYPE
265 INSTALLER_TYPE=$INSTALLER_TYPE
266 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
267 ONAP_VERSION=$ONAP_VERSION
269 TEST_TYPE=oom-healthcheck
271 STACK_NAME=$STACK_NAME
272 KEYPAIR_NAME=$KEYPAIR_NAME
273 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
274 ENGINE_VERSION=$ENGINE_VERSION
275 ENGINE_REFSPEC=$ENGINE_REFSPEC
276 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
277 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
278 XTESTING_REPO_URL=$XTESTING_REPO_URL
279 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
280 node-parameters: true
284 name: ONAP Healthcheck using xtesting
285 execution-type: SEQUENTIALLY
288 - name: 'onap-hc-core-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
289 current-parameters: false
290 predefined-parameters: |
291 SLAVE_LABEL=$SLAVE_LABEL
293 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
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
302 STACK_NAME=$STACK_NAME
303 KEYPAIR_NAME=$KEYPAIR_NAME
304 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
305 ENGINE_VERSION=$ENGINE_VERSION
306 ENGINE_REFSPEC=$ENGINE_REFSPEC
307 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
308 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
309 XTESTING_REPO_URL=$XTESTING_REPO_URL
310 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
311 node-parameters: true
314 - name: 'onap-hc-small-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
315 current-parameters: false
316 predefined-parameters: |
317 SLAVE_LABEL=$SLAVE_LABEL
319 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
320 PROVISIONER_TYPE=$PROVISIONER_TYPE
321 INSTALLER_TYPE=$INSTALLER_TYPE
322 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
323 DEPLOY_TYPE=$DEPLOY_TYPE
324 ONAP_VERSION=$ONAP_VERSION
326 TEST_TYPE=onap-healthcheck
328 STACK_NAME=$STACK_NAME
329 KEYPAIR_NAME=$KEYPAIR_NAME
330 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
331 ENGINE_VERSION=$ENGINE_VERSION
332 ENGINE_REFSPEC=$ENGINE_REFSPEC
333 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
334 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
335 XTESTING_REPO_URL=$XTESTING_REPO_URL
336 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
363 node-parameters: true
366 - name: 'onap-hc-full-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
367 current-parameters: false
368 predefined-parameters: |
369 SLAVE_LABEL=$SLAVE_LABEL
371 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
372 PROVISIONER_TYPE=$PROVISIONER_TYPE
373 INSTALLER_TYPE=$INSTALLER_TYPE
374 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
375 DEPLOY_TYPE=$DEPLOY_TYPE
376 ONAP_VERSION=$ONAP_VERSION
378 TEST_TYPE=onap-healthcheck
380 STACK_NAME=$STACK_NAME
381 KEYPAIR_NAME=$KEYPAIR_NAME
382 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
383 ENGINE_VERSION=$ENGINE_VERSION
384 ENGINE_REFSPEC=$ENGINE_REFSPEC
385 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
386 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
387 XTESTING_REPO_URL=$XTESTING_REPO_URL
388 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
389 node-parameters: true
392 - name: 'onap-hc-healthdist-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
393 current-parameters: false
394 predefined-parameters: |
395 SLAVE_LABEL=$SLAVE_LABEL
397 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
398 PROVISIONER_TYPE=$PROVISIONER_TYPE
399 INSTALLER_TYPE=$INSTALLER_TYPE
400 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
401 DEPLOY_TYPE=$DEPLOY_TYPE
402 ONAP_VERSION=$ONAP_VERSION
403 ONAP_FLAVOR=healthdist
404 TEST_TYPE=onap-healthcheck
406 STACK_NAME=$STACK_NAME
407 KEYPAIR_NAME=$KEYPAIR_NAME
408 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
409 ENGINE_VERSION=$ENGINE_VERSION
410 ENGINE_REFSPEC=$ENGINE_REFSPEC
411 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
412 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
413 XTESTING_REPO_URL=$XTESTING_REPO_URL
414 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
415 node-parameters: true
419 name: Promote ONAP (not activated)
422 - name: 'promote-onap-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
423 current-parameters: false
424 predefined-parameters: |
425 SLAVE_LABEL=$SLAVE_LABEL
427 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
428 DEPLOY_TYPE=$DEPLOY_TYPE
429 INSTALLER_TYPE=$INSTALLER_TYPE
430 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
431 ONAP_VERSION=$ONAP_VERSION
432 ONAP_FLAVOR=$ONAP_FLAVOR
433 ENGINE_VERSION=$ENGINE_VERSION
434 ENGINE_REFSPEC=$ENGINE_REFSPEC
436 STACK_NAME=$STACK_NAME
437 KEYPAIR_NAME=$KEYPAIR_NAME
438 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
439 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
440 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
441 XTESTING_REPO_URL=$XTESTING_REPO_URL
442 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
443 node-parameters: true
459 !include-raw-escape: ./wait-for-pkg-manager.sh
461 !include-raw: ./delete-heat-stack.sh
464 name: '{onap-other-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
474 - project-parameters:
476 branch: '{nordix-branch}'
477 - nordix-gerrit-parameters
478 - onap-parameter-macro
481 default: 'xerces-jumphost-onap-ubuntu1804'
482 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
484 name: OPENSTACK_CLOUD_PROVIDER
486 description: 'Name of the cloud where this job is run'
489 default: 'ubuntu1804'
490 description: 'Distribution to use for configuring target nodes (networking etc.)'
493 default: '{onap-flavor}'
494 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
497 default: '{onap-version}'
498 description: 'ONAP version to deploy'
500 name: HEAT_ENVIRONMENT_FILENAME
501 default: "heat-environment-full.yaml"
502 description: 'Type of the deployment'
504 name: HEAT_ENVIRONMENT_FILE
505 default: "file:///opt/engine/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/$HEAT_ENVIRONMENT_FILENAME"
506 description: 'Type of the deployment'
511 timeout: '{build-timeout}'
512 - fix-workspace-permissions
513 - credentials-binding:
514 - username-password-separated:
515 credential-id: 'nordix-cicd-arm-credentials'
516 username: NORDIX_ARM_USERNAME
517 password: NORDIX_ARM_TOKEN
518 - username-password-separated:
519 credential-id: 'nordix-cicd-harbor-credentials'
520 username: NORDIX_HARBOR_USERNAME
521 password: NORDIX_HARBOR_PASSWORD
525 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
526 branch: '{nordix-branch}'
532 - description-setter:
533 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR | $OPENSTACK_CLOUD_PROVIDER
534 - '{onap-other-phases}-macro'
537 name: '{onap-healthcheck-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
547 - project-parameters:
549 branch: '{nordix-branch}'
550 - nordix-gerrit-parameters
551 - onap-parameter-macro
554 default: 'xerces-jumphost-onap-ubuntu1804'
555 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
557 name: OPENSTACK_CLOUD_PROVIDER
559 description: 'Name of the cloud where this job is run'
562 default: 'ubuntu1804'
563 description: 'Distribution to use for configuring target nodes (networking etc.)'
566 default: '{onap-version}'
567 description: 'ONAP version to deploy'
569 name: HEAT_ENVIRONMENT_FILENAME
570 default: "heat-environment-full.yaml"
571 description: 'Type of the deployment'
573 name: HEAT_ENVIRONMENT_FILE
574 default: "file:///opt/engine/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/$HEAT_ENVIRONMENT_FILENAME"
575 description: 'Type of the deployment'
578 default: '{engine-version}'
579 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
582 default: '{engine-refspec}'
583 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
585 name: DEPLOY_SCENARIO_VERSION
586 default: '{deploy-scenario-version}'
587 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
589 name: DEPLOY_SCENARIO_REFSPEC
590 default: '{deploy-scenario-refspec}'
591 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
594 default: '{pod-name}'
595 description: 'Development purposes only! Set to none for disabling test results DB reporting.'
600 timeout: '{build-timeout}'
601 - fix-workspace-permissions
605 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
606 branch: '{nordix-branch}'
612 - description-setter:
613 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR | $OPENSTACK_CLOUD_PROVIDER
614 - 'onap-healthcheck-macro'
616 # vim: set ts=2 sw=2 expandtab: