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: '{onap-version}'
126 description: 'ONAP version to deploy'
129 default: '{onap-flavor}'
130 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
133 default: 'nordix-cicd-{deploy-scenario}-{onap-branch}-{onap-flavor}'
135 name: HEAT_ENVIRONMENT_FILE
136 default: "file://$WORKSPACE/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/heat-environment-{cloud}-{distro}-full.yaml"
137 description: 'Type of the deployment'
140 default: '{engine-version}'
141 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
144 default: '{engine-refspec}'
145 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
147 name: DEPLOY_SCENARIO_VERSION
148 default: '{deploy-scenario-version}'
149 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
151 name: DEPLOY_SCENARIO_REFSPEC
152 default: '{deploy-scenario-refspec}'
153 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
156 default: '{pod-name}'
157 description: 'Development purposes only! Set to none for disabling test results DB reporting.'
160 default: '{delete-stack}'
161 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!'
166 use-build-blocker: true
168 - 'cloud-infra-periodic-engine-.*'
178 - credentials-binding:
180 credential-id: '{openrc-credentials-file}'
181 variable: OPENRC_FILE
185 - fix-workspace-permissions
190 - timed: '{daily-trigger}'
194 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
195 branch: '{nordix-branch}'
201 - description-setter:
202 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
205 cp $OPENRC_FILE /tmp/openrc
207 name: Deploy ONAP using OOM
210 - name: 'onap-deploy-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
211 current-parameters: false
212 predefined-parameters: |
214 DEPLOY_TYPE=$DEPLOY_TYPE
215 PROVISIONER_TYPE=$PROVISIONER_TYPE
216 INSTALLER_TYPE=$INSTALLER_TYPE
217 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
218 ONAP_VERSION=$ONAP_VERSION
219 ONAP_FLAVOR=$ONAP_FLAVOR
221 STACK_NAME=$STACK_NAME
222 HEAT_ENVIRONMENT_FILE=$HEAT_ENVIRONMENT_FILE
223 ENGINE_VERSION=$ENGINE_VERSION
224 ENGINE_REFSPEC=$ENGINE_REFSPEC
225 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
226 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
227 XTESTING_REPO_URL=$XTESTING_REPO_URL
228 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
231 node-parameters: true
235 name: K8S and OOM Healthcheck using xtesting
238 - name: 'oom-hc-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
239 current-parameters: false
240 predefined-parameters: |
242 DEPLOY_TYPE=$DEPLOY_TYPE
243 PROVISIONER_TYPE=$PROVISIONER_TYPE
244 INSTALLER_TYPE=$INSTALLER_TYPE
245 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
246 ONAP_VERSION=$ONAP_VERSION
248 TEST_TYPE=oom-healthcheck
250 STACK_NAME=$STACK_NAME
251 HEAT_ENVIRONMENT_FILE=$HEAT_ENVIRONMENT_FILE
252 ENGINE_VERSION=$ENGINE_VERSION
253 ENGINE_REFSPEC=$ENGINE_REFSPEC
254 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
255 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
256 XTESTING_REPO_URL=$XTESTING_REPO_URL
257 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
259 node-parameters: true
263 name: ONAP Healthcheck using xtesting
264 execution-type: SEQUENTIALLY
267 - name: 'onap-hc-core-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
268 current-parameters: false
269 predefined-parameters: |
270 SLAVE_LABEL=$SLAVE_LABEL
272 PROVISIONER_TYPE=$PROVISIONER_TYPE
273 INSTALLER_TYPE=$INSTALLER_TYPE
274 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
275 DEPLOY_TYPE=$DEPLOY_TYPE
276 ONAP_VERSION=$ONAP_VERSION
278 TEST_TYPE=onap-healthcheck
280 STACK_NAME=$STACK_NAME
281 HEAT_ENVIRONMENT_FILE=$HEAT_ENVIRONMENT_FILE
282 ENGINE_VERSION=$ENGINE_VERSION
283 ENGINE_REFSPEC=$ENGINE_REFSPEC
284 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
285 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
286 XTESTING_REPO_URL=$XTESTING_REPO_URL
287 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
289 node-parameters: true
292 - name: 'onap-hc-small-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
293 current-parameters: false
294 predefined-parameters: |
295 SLAVE_LABEL=$SLAVE_LABEL
297 PROVISIONER_TYPE=$PROVISIONER_TYPE
298 INSTALLER_TYPE=$INSTALLER_TYPE
299 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
300 DEPLOY_TYPE=$DEPLOY_TYPE
301 ONAP_VERSION=$ONAP_VERSION
303 TEST_TYPE=onap-healthcheck
305 STACK_NAME=$STACK_NAME
306 HEAT_ENVIRONMENT_FILE=$HEAT_ENVIRONMENT_FILE
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-medium-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
318 current-parameters: false
319 predefined-parameters: |
320 SLAVE_LABEL=$SLAVE_LABEL
322 PROVISIONER_TYPE=$PROVISIONER_TYPE
323 INSTALLER_TYPE=$INSTALLER_TYPE
324 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
325 DEPLOY_TYPE=$DEPLOY_TYPE
326 ONAP_VERSION=$ONAP_VERSION
328 TEST_TYPE=onap-healthcheck
330 STACK_NAME=$STACK_NAME
331 HEAT_ENVIRONMENT_FILE=$HEAT_ENVIRONMENT_FILE
332 ENGINE_VERSION=$ENGINE_VERSION
333 ENGINE_REFSPEC=$ENGINE_REFSPEC
334 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
335 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
336 XTESTING_REPO_URL=$XTESTING_REPO_URL
337 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
339 node-parameters: true
342 - name: 'onap-hc-full-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
343 current-parameters: false
344 predefined-parameters: |
345 SLAVE_LABEL=$SLAVE_LABEL
347 PROVISIONER_TYPE=$PROVISIONER_TYPE
348 INSTALLER_TYPE=$INSTALLER_TYPE
349 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
350 DEPLOY_TYPE=$DEPLOY_TYPE
351 ONAP_VERSION=$ONAP_VERSION
353 TEST_TYPE=onap-healthcheck
355 STACK_NAME=$STACK_NAME
356 HEAT_ENVIRONMENT_FILE=$HEAT_ENVIRONMENT_FILE
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-healthdist-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
368 current-parameters: false
369 predefined-parameters: |
370 SLAVE_LABEL=$SLAVE_LABEL
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
377 ONAP_FLAVOR=healthdist
378 TEST_TYPE=onap-healthcheck
380 STACK_NAME=$STACK_NAME
381 HEAT_ENVIRONMENT_FILE=$HEAT_ENVIRONMENT_FILE
382 ENGINE_VERSION=$ENGINE_VERSION
383 ENGINE_REFSPEC=$ENGINE_REFSPEC
384 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
385 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
386 XTESTING_REPO_URL=$XTESTING_REPO_URL
387 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
389 node-parameters: true
393 name: Promote ONAP (not activated)
396 - name: 'promote-onap-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
397 current-parameters: false
398 predefined-parameters: |
400 DEPLOY_TYPE=$DEPLOY_TYPE
401 INSTALLER_TYPE=$INSTALLER_TYPE
402 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
403 ONAP_VERSION=$ONAP_VERSION
404 ONAP_FLAVOR=$ONAP_FLAVOR
405 ENGINE_VERSION=$ENGINE_VERSION
406 ENGINE_REFSPEC=$ENGINE_REFSPEC
408 STACK_NAME=$STACK_NAME
409 HEAT_ENVIRONMENT_FILE=$HEAT_ENVIRONMENT_FILE
410 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
411 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
412 XTESTING_REPO_URL=$XTESTING_REPO_URL
413 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
415 node-parameters: true
431 !include-raw-escape: ./wait-for-pkg-manager.sh
433 !include-raw: ./delete-heat-stack.sh
436 name: '{onap-other-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
446 - project-parameters:
448 branch: '{nordix-branch}'
449 - nordix-gerrit-parameters
450 - onap-parameter-macro
453 default: '{onap-flavor}'
454 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
457 default: '{onap-version}'
458 description: 'ONAP version to deploy'
460 name: HEAT_ENVIRONMENT_FILE
461 default: "file://$WORKSPACE/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/heat-environment-full.yaml"
462 description: 'Type of the deployment'
465 - credentials-binding:
467 credential-id: est-jenkins-openrcfile-city-karlskrona-onap
468 variable: OPENRC_FILE
471 timeout: '{build-timeout}'
472 - fix-workspace-permissions
476 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
477 branch: '{nordix-branch}'
483 - description-setter:
484 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
485 - '{onap-other-phases}-macro'
488 name: '{onap-healthcheck-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
498 - project-parameters:
500 branch: '{nordix-branch}'
501 - nordix-gerrit-parameters
502 - onap-parameter-macro
505 default: '{onap-version}'
506 description: 'ONAP version to deploy'
508 name: HEAT_ENVIRONMENT_FILE
509 default: "file://$WORKSPACE/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/heat-environment-full.yaml"
510 description: 'Type of the deployment'
513 default: '{engine-version}'
514 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
517 default: '{engine-refspec}'
518 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
520 name: DEPLOY_SCENARIO_VERSION
521 default: '{deploy-scenario-version}'
522 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
524 name: DEPLOY_SCENARIO_REFSPEC
525 default: '{deploy-scenario-refspec}'
526 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
529 default: '{pod-name}'
530 description: 'Development purposes only! Set to none for disabling test results DB reporting.'
533 - credentials-binding:
535 credential-id: est-jenkins-openrcfile-city-karlskrona-onap
536 variable: OPENRC_FILE
539 timeout: '{build-timeout}'
540 - fix-workspace-permissions
544 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
545 branch: '{nordix-branch}'
551 - description-setter:
552 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
553 - 'onap-healthcheck-macro'
555 # vim: set ts=2 sw=2 expandtab: