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}'
147 name: HEAT_ENVIRONMENT_FILENAME
148 default: "heat-environment-{cloud}-{distro}-full.yaml"
149 description: 'Type of the deployment'
152 default: '{engine-version}'
153 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
156 default: '{engine-refspec}'
157 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
159 name: DEPLOY_SCENARIO_VERSION
160 default: '{deploy-scenario-version}'
161 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
163 name: DEPLOY_SCENARIO_REFSPEC
164 default: '{deploy-scenario-refspec}'
165 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
168 default: '{pod-name}'
169 description: 'Development purposes only! Set to none for disabling test results DB reporting.'
172 default: '{delete-stack}'
173 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!'
178 use-build-blocker: true
180 - 'cloud-infra-periodic-engine-.*'
190 - credentials-binding:
192 credential-id: '{openrc-credentials-file}'
193 variable: OPENRC_FILE
197 - fix-workspace-permissions
202 - timed: '{daily-trigger}'
206 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
207 branch: '{nordix-branch}'
213 - description-setter:
214 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
217 sudo /bin/rm -rf /tmp/openrc && sudo /bin/cp -f $OPENRC_FILE /tmp/openrc
219 name: Deploy ONAP using OOM
222 - name: 'onap-deploy-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
223 current-parameters: false
224 predefined-parameters: |
226 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
227 DEPLOY_TYPE=$DEPLOY_TYPE
228 PROVISIONER_TYPE=$PROVISIONER_TYPE
229 INSTALLER_TYPE=$INSTALLER_TYPE
230 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
231 ONAP_VERSION=$ONAP_VERSION
232 ONAP_FLAVOR=$ONAP_FLAVOR
234 STACK_NAME=$STACK_NAME
235 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
236 ENGINE_VERSION=$ENGINE_VERSION
237 ENGINE_REFSPEC=$ENGINE_REFSPEC
238 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
239 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
240 XTESTING_REPO_URL=$XTESTING_REPO_URL
241 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
244 node-parameters: true
248 name: K8S and OOM Healthcheck using xtesting
251 - name: 'oom-hc-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
252 current-parameters: false
253 predefined-parameters: |
255 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
256 DEPLOY_TYPE=$DEPLOY_TYPE
257 PROVISIONER_TYPE=$PROVISIONER_TYPE
258 INSTALLER_TYPE=$INSTALLER_TYPE
259 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
260 ONAP_VERSION=$ONAP_VERSION
262 TEST_TYPE=oom-healthcheck
264 STACK_NAME=$STACK_NAME
265 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
266 ENGINE_VERSION=$ENGINE_VERSION
267 ENGINE_REFSPEC=$ENGINE_REFSPEC
268 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
269 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
270 XTESTING_REPO_URL=$XTESTING_REPO_URL
271 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
273 node-parameters: true
277 name: ONAP Healthcheck using xtesting
278 execution-type: SEQUENTIALLY
281 - name: 'onap-hc-core-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
282 current-parameters: false
283 predefined-parameters: |
284 SLAVE_LABEL=$SLAVE_LABEL
286 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
287 PROVISIONER_TYPE=$PROVISIONER_TYPE
288 INSTALLER_TYPE=$INSTALLER_TYPE
289 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
290 DEPLOY_TYPE=$DEPLOY_TYPE
291 ONAP_VERSION=$ONAP_VERSION
293 TEST_TYPE=onap-healthcheck
295 STACK_NAME=$STACK_NAME
296 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
297 ENGINE_VERSION=$ENGINE_VERSION
298 ENGINE_REFSPEC=$ENGINE_REFSPEC
299 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
300 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
301 XTESTING_REPO_URL=$XTESTING_REPO_URL
302 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
304 node-parameters: true
307 - name: 'onap-hc-small-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
308 current-parameters: false
309 predefined-parameters: |
310 SLAVE_LABEL=$SLAVE_LABEL
312 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
313 PROVISIONER_TYPE=$PROVISIONER_TYPE
314 INSTALLER_TYPE=$INSTALLER_TYPE
315 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
316 DEPLOY_TYPE=$DEPLOY_TYPE
317 ONAP_VERSION=$ONAP_VERSION
319 TEST_TYPE=onap-healthcheck
321 STACK_NAME=$STACK_NAME
322 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
323 ENGINE_VERSION=$ENGINE_VERSION
324 ENGINE_REFSPEC=$ENGINE_REFSPEC
325 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
326 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
327 XTESTING_REPO_URL=$XTESTING_REPO_URL
328 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
330 node-parameters: true
333 - name: 'onap-hc-medium-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
334 current-parameters: false
335 predefined-parameters: |
336 SLAVE_LABEL=$SLAVE_LABEL
338 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
339 PROVISIONER_TYPE=$PROVISIONER_TYPE
340 INSTALLER_TYPE=$INSTALLER_TYPE
341 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
342 DEPLOY_TYPE=$DEPLOY_TYPE
343 ONAP_VERSION=$ONAP_VERSION
345 TEST_TYPE=onap-healthcheck
347 STACK_NAME=$STACK_NAME
348 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
349 ENGINE_VERSION=$ENGINE_VERSION
350 ENGINE_REFSPEC=$ENGINE_REFSPEC
351 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
352 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
353 XTESTING_REPO_URL=$XTESTING_REPO_URL
354 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
356 node-parameters: true
359 - name: 'onap-hc-full-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
360 current-parameters: false
361 predefined-parameters: |
362 SLAVE_LABEL=$SLAVE_LABEL
364 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
365 PROVISIONER_TYPE=$PROVISIONER_TYPE
366 INSTALLER_TYPE=$INSTALLER_TYPE
367 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
368 DEPLOY_TYPE=$DEPLOY_TYPE
369 ONAP_VERSION=$ONAP_VERSION
371 TEST_TYPE=onap-healthcheck
373 STACK_NAME=$STACK_NAME
374 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
375 ENGINE_VERSION=$ENGINE_VERSION
376 ENGINE_REFSPEC=$ENGINE_REFSPEC
377 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
378 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
379 XTESTING_REPO_URL=$XTESTING_REPO_URL
380 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
382 node-parameters: true
385 - name: 'onap-hc-healthdist-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
386 current-parameters: false
387 predefined-parameters: |
388 SLAVE_LABEL=$SLAVE_LABEL
390 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
391 PROVISIONER_TYPE=$PROVISIONER_TYPE
392 INSTALLER_TYPE=$INSTALLER_TYPE
393 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
394 DEPLOY_TYPE=$DEPLOY_TYPE
395 ONAP_VERSION=$ONAP_VERSION
396 ONAP_FLAVOR=healthdist
397 TEST_TYPE=onap-healthcheck
399 STACK_NAME=$STACK_NAME
400 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
401 ENGINE_VERSION=$ENGINE_VERSION
402 ENGINE_REFSPEC=$ENGINE_REFSPEC
403 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
404 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
405 XTESTING_REPO_URL=$XTESTING_REPO_URL
406 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
408 node-parameters: true
412 name: Promote ONAP (not activated)
415 - name: 'promote-onap-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
416 current-parameters: false
417 predefined-parameters: |
418 SLAVE_LABEL=$SLAVE_LABEL
420 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
421 DEPLOY_TYPE=$DEPLOY_TYPE
422 INSTALLER_TYPE=$INSTALLER_TYPE
423 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
424 ONAP_VERSION=$ONAP_VERSION
425 ONAP_FLAVOR=$ONAP_FLAVOR
426 ENGINE_VERSION=$ENGINE_VERSION
427 ENGINE_REFSPEC=$ENGINE_REFSPEC
429 STACK_NAME=$STACK_NAME
430 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
431 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
432 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
433 XTESTING_REPO_URL=$XTESTING_REPO_URL
434 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
436 node-parameters: true
452 !include-raw-escape: ./wait-for-pkg-manager.sh
454 !include-raw: ./delete-heat-stack.sh
457 name: '{onap-other-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
467 - project-parameters:
469 branch: '{nordix-branch}'
470 - nordix-gerrit-parameters
471 - onap-parameter-macro
474 default: 'xerces-jumphost-onap-ubuntu1804'
475 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
477 name: OPENSTACK_CLOUD_PROVIDER
479 description: 'Name of the cloud where this job is run'
482 default: 'ubuntu1804'
483 description: 'Distribution to use for configuring target nodes (networking etc.)'
486 default: '{onap-flavor}'
487 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
490 default: '{onap-version}'
491 description: 'ONAP version to deploy'
493 name: HEAT_ENVIRONMENT_FILENAME
494 default: "heat-environment-full.yaml"
495 description: 'Type of the deployment'
497 name: HEAT_ENVIRONMENT_FILE
498 default: "file://$WORKSPACE/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/$HEAT_ENVIRONMENT_FILENAME"
499 description: 'Type of the deployment'
504 timeout: '{build-timeout}'
505 - fix-workspace-permissions
506 - credentials-binding:
507 - username-password-separated:
508 credential-id: 'nordix-cicd-arm-credentials'
509 username: NORDIX_ARM_USERNAME
510 password: NORDIX_ARM_TOKEN
511 - username-password-separated:
512 credential-id: 'nordix-cicd-harbor-credentials'
513 username: NORDIX_HARBOR_USERNAME
514 password: NORDIX_HARBOR_PASSWORD
518 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
519 branch: '{nordix-branch}'
525 - description-setter:
526 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR | $OPENSTACK_CLOUD_PROVIDER
527 - '{onap-other-phases}-macro'
530 name: '{onap-healthcheck-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
540 - project-parameters:
542 branch: '{nordix-branch}'
543 - nordix-gerrit-parameters
544 - onap-parameter-macro
547 default: 'xerces-jumphost-onap-ubuntu1804'
548 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
550 name: OPENSTACK_CLOUD_PROVIDER
552 description: 'Name of the cloud where this job is run'
555 default: 'ubuntu1804'
556 description: 'Distribution to use for configuring target nodes (networking etc.)'
559 default: '{onap-version}'
560 description: 'ONAP version to deploy'
562 name: HEAT_ENVIRONMENT_FILENAME
563 default: "heat-environment-full.yaml"
564 description: 'Type of the deployment'
566 name: HEAT_ENVIRONMENT_FILE
567 default: "file://$WORKSPACE/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/$HEAT_ENVIRONMENT_FILENAME"
568 description: 'Type of the deployment'
571 default: '{engine-version}'
572 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
575 default: '{engine-refspec}'
576 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
578 name: DEPLOY_SCENARIO_VERSION
579 default: '{deploy-scenario-version}'
580 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
582 name: DEPLOY_SCENARIO_REFSPEC
583 default: '{deploy-scenario-refspec}'
584 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
587 default: '{pod-name}'
588 description: 'Development purposes only! Set to none for disabling test results DB reporting.'
593 timeout: '{build-timeout}'
594 - fix-workspace-permissions
598 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
599 branch: '{nordix-branch}'
605 - description-setter:
606 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR | $OPENSTACK_CLOUD_PROVIDER
607 - 'onap-healthcheck-macro'
609 # vim: set ts=2 sw=2 expandtab: