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-onap-ubuntu1804'
34 openrc-credentials-file: 'est-jenkins-openrcfile-city-karlskrona-onap'
35 daily-trigger: '@midnight'
37 slave-label: 'xerces-jumphost-onap-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.)'
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.'
141 default: 'nordix-cicd-{deploy-scenario}-{onap-branch}-{onap-flavor}'
143 name: HEAT_ENVIRONMENT_FILENAME
144 default: "heat-environment-{cloud}-{distro}-full.yaml"
145 description: 'Type of the deployment'
148 default: '{engine-version}'
149 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
152 default: '{engine-refspec}'
153 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
155 name: DEPLOY_SCENARIO_VERSION
156 default: '{deploy-scenario-version}'
157 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
159 name: DEPLOY_SCENARIO_REFSPEC
160 default: '{deploy-scenario-refspec}'
161 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
164 default: '{pod-name}'
165 description: 'Development purposes only! Set to none for disabling test results DB reporting.'
168 default: '{delete-stack}'
169 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!'
174 use-build-blocker: true
176 - 'cloud-infra-periodic-engine-.*'
186 - credentials-binding:
188 credential-id: '{openrc-credentials-file}'
189 variable: OPENRC_FILE
193 - fix-workspace-permissions
198 - timed: '{daily-trigger}'
202 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
203 branch: '{nordix-branch}'
209 - description-setter:
210 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
213 cp $OPENRC_FILE /tmp/openrc
215 name: Deploy ONAP using OOM
218 - name: 'onap-deploy-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
219 current-parameters: false
220 predefined-parameters: |
222 DEPLOY_TYPE=$DEPLOY_TYPE
223 PROVISIONER_TYPE=$PROVISIONER_TYPE
224 INSTALLER_TYPE=$INSTALLER_TYPE
225 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
226 ONAP_VERSION=$ONAP_VERSION
227 ONAP_FLAVOR=$ONAP_FLAVOR
229 STACK_NAME=$STACK_NAME
230 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
231 ENGINE_VERSION=$ENGINE_VERSION
232 ENGINE_REFSPEC=$ENGINE_REFSPEC
233 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
234 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
235 XTESTING_REPO_URL=$XTESTING_REPO_URL
236 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
239 node-parameters: true
243 name: K8S and OOM Healthcheck using xtesting
246 - name: 'oom-hc-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
247 current-parameters: false
248 predefined-parameters: |
250 DEPLOY_TYPE=$DEPLOY_TYPE
251 PROVISIONER_TYPE=$PROVISIONER_TYPE
252 INSTALLER_TYPE=$INSTALLER_TYPE
253 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
254 ONAP_VERSION=$ONAP_VERSION
256 TEST_TYPE=oom-healthcheck
258 STACK_NAME=$STACK_NAME
259 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
260 ENGINE_VERSION=$ENGINE_VERSION
261 ENGINE_REFSPEC=$ENGINE_REFSPEC
262 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
263 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
264 XTESTING_REPO_URL=$XTESTING_REPO_URL
265 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
267 node-parameters: true
271 name: ONAP Healthcheck using xtesting
272 execution-type: SEQUENTIALLY
275 - name: 'onap-hc-core-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
276 current-parameters: false
277 predefined-parameters: |
278 SLAVE_LABEL=$SLAVE_LABEL
280 PROVISIONER_TYPE=$PROVISIONER_TYPE
281 INSTALLER_TYPE=$INSTALLER_TYPE
282 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
283 DEPLOY_TYPE=$DEPLOY_TYPE
284 ONAP_VERSION=$ONAP_VERSION
286 TEST_TYPE=onap-healthcheck
288 STACK_NAME=$STACK_NAME
289 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
290 ENGINE_VERSION=$ENGINE_VERSION
291 ENGINE_REFSPEC=$ENGINE_REFSPEC
292 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
293 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
294 XTESTING_REPO_URL=$XTESTING_REPO_URL
295 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
297 node-parameters: true
300 - name: 'onap-hc-small-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
301 current-parameters: false
302 predefined-parameters: |
303 SLAVE_LABEL=$SLAVE_LABEL
305 PROVISIONER_TYPE=$PROVISIONER_TYPE
306 INSTALLER_TYPE=$INSTALLER_TYPE
307 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
308 DEPLOY_TYPE=$DEPLOY_TYPE
309 ONAP_VERSION=$ONAP_VERSION
311 TEST_TYPE=onap-healthcheck
313 STACK_NAME=$STACK_NAME
314 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
315 ENGINE_VERSION=$ENGINE_VERSION
316 ENGINE_REFSPEC=$ENGINE_REFSPEC
317 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
318 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
319 XTESTING_REPO_URL=$XTESTING_REPO_URL
320 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
322 node-parameters: true
325 - name: 'onap-hc-medium-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
326 current-parameters: false
327 predefined-parameters: |
328 SLAVE_LABEL=$SLAVE_LABEL
330 PROVISIONER_TYPE=$PROVISIONER_TYPE
331 INSTALLER_TYPE=$INSTALLER_TYPE
332 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
333 DEPLOY_TYPE=$DEPLOY_TYPE
334 ONAP_VERSION=$ONAP_VERSION
336 TEST_TYPE=onap-healthcheck
338 STACK_NAME=$STACK_NAME
339 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
340 ENGINE_VERSION=$ENGINE_VERSION
341 ENGINE_REFSPEC=$ENGINE_REFSPEC
342 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
343 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
344 XTESTING_REPO_URL=$XTESTING_REPO_URL
345 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
347 node-parameters: true
350 - name: 'onap-hc-full-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
351 current-parameters: false
352 predefined-parameters: |
353 SLAVE_LABEL=$SLAVE_LABEL
355 PROVISIONER_TYPE=$PROVISIONER_TYPE
356 INSTALLER_TYPE=$INSTALLER_TYPE
357 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
358 DEPLOY_TYPE=$DEPLOY_TYPE
359 ONAP_VERSION=$ONAP_VERSION
361 TEST_TYPE=onap-healthcheck
363 STACK_NAME=$STACK_NAME
364 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
365 ENGINE_VERSION=$ENGINE_VERSION
366 ENGINE_REFSPEC=$ENGINE_REFSPEC
367 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
368 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
369 XTESTING_REPO_URL=$XTESTING_REPO_URL
370 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
372 node-parameters: true
375 - name: 'onap-hc-healthdist-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
376 current-parameters: false
377 predefined-parameters: |
378 SLAVE_LABEL=$SLAVE_LABEL
380 PROVISIONER_TYPE=$PROVISIONER_TYPE
381 INSTALLER_TYPE=$INSTALLER_TYPE
382 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
383 DEPLOY_TYPE=$DEPLOY_TYPE
384 ONAP_VERSION=$ONAP_VERSION
385 ONAP_FLAVOR=healthdist
386 TEST_TYPE=onap-healthcheck
388 STACK_NAME=$STACK_NAME
389 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
390 ENGINE_VERSION=$ENGINE_VERSION
391 ENGINE_REFSPEC=$ENGINE_REFSPEC
392 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
393 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
394 XTESTING_REPO_URL=$XTESTING_REPO_URL
395 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
397 node-parameters: true
401 name: Promote ONAP (not activated)
404 - name: 'promote-onap-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
405 current-parameters: false
406 predefined-parameters: |
407 SLAVE_LABEL=$SLAVE_LABEL
409 DEPLOY_TYPE=$DEPLOY_TYPE
410 INSTALLER_TYPE=$INSTALLER_TYPE
411 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
412 ONAP_VERSION=$ONAP_VERSION
413 ONAP_FLAVOR=$ONAP_FLAVOR
414 ENGINE_VERSION=$ENGINE_VERSION
415 ENGINE_REFSPEC=$ENGINE_REFSPEC
417 STACK_NAME=$STACK_NAME
418 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
419 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
420 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
421 XTESTING_REPO_URL=$XTESTING_REPO_URL
422 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
424 node-parameters: true
440 !include-raw-escape: ./wait-for-pkg-manager.sh
442 !include-raw: ./delete-heat-stack.sh
445 name: '{onap-other-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
455 - project-parameters:
457 branch: '{nordix-branch}'
458 - nordix-gerrit-parameters
459 - onap-parameter-macro
462 default: 'xerces-jumphost-onap-ubuntu1804'
463 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
466 default: 'ubuntu1804'
467 description: 'Distribution to use for configuring target nodes (networking etc.)'
470 default: '{onap-flavor}'
471 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
474 default: '{onap-version}'
475 description: 'ONAP version to deploy'
477 name: HEAT_ENVIRONMENT_FILENAME
478 default: "heat-environment-full.yaml"
479 description: 'Type of the deployment'
481 name: HEAT_ENVIRONMENT_FILE
482 default: "file://$WORKSPACE/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/$HEAT_ENVIRONMENT_FILENAME"
483 description: 'Type of the deployment'
486 - credentials-binding:
488 credential-id: est-jenkins-openrcfile-city-karlskrona-onap
489 variable: OPENRC_FILE
492 timeout: '{build-timeout}'
493 - fix-workspace-permissions
497 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
498 branch: '{nordix-branch}'
504 - description-setter:
505 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
506 - '{onap-other-phases}-macro'
509 name: '{onap-healthcheck-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
519 - project-parameters:
521 branch: '{nordix-branch}'
522 - nordix-gerrit-parameters
523 - onap-parameter-macro
526 default: 'xerces-jumphost-onap-ubuntu1804'
527 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
530 default: 'ubuntu1804'
531 description: 'Distribution to use for configuring target nodes (networking etc.)'
534 default: '{onap-version}'
535 description: 'ONAP version to deploy'
537 name: HEAT_ENVIRONMENT_FILENAME
538 default: "heat-environment-full.yaml"
539 description: 'Type of the deployment'
541 name: HEAT_ENVIRONMENT_FILE
542 default: "file://$WORKSPACE/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/$HEAT_ENVIRONMENT_FILENAME"
543 description: 'Type of the deployment'
546 default: '{engine-version}'
547 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
550 default: '{engine-refspec}'
551 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
553 name: DEPLOY_SCENARIO_VERSION
554 default: '{deploy-scenario-version}'
555 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
557 name: DEPLOY_SCENARIO_REFSPEC
558 default: '{deploy-scenario-refspec}'
559 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
562 default: '{pod-name}'
563 description: 'Development purposes only! Set to none for disabling test results DB reporting.'
566 - credentials-binding:
568 credential-id: est-jenkins-openrcfile-city-karlskrona-onap
569 variable: OPENRC_FILE
572 timeout: '{build-timeout}'
573 - fix-workspace-permissions
577 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
578 branch: '{nordix-branch}'
584 - description-setter:
585 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
586 - 'onap-healthcheck-macro'
588 # vim: set ts=2 sw=2 expandtab: