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'
36 engine-version: master
37 engine-refspec: master
38 deploy-scenario-version: master
39 deploy-scenario-refspec: master
46 engine-version: master
47 engine-refspec: master
48 deploy-scenario-version: master
49 deploy-scenario-refspec: master
65 provisioner-type: heat
66 installer-type: kubespray
67 slave-label: 'jumphost-onap-ubuntu1804'
74 test-type: oom-healthcheck
78 onap-healthcheck-phases:
79 - onap-healthcheck-core:
81 test-type: onap-healthcheck
82 - onap-healthcheck-small:
84 test-type: onap-healthcheck
85 - onap-healthcheck-medium:
87 test-type: onap-healthcheck
88 - onap-healthcheck-full:
90 test-type: onap-healthcheck
93 - '{deploy-scenario}-{onap-flavor}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
94 - '{onap-other-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
95 - '{onap-healthcheck-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
98 name: '{deploy-scenario}-{onap-flavor}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
100 project-type: multijob
102 disabled: '{obj:disabled}'
107 - project-parameters:
109 branch: '{nordix-branch}'
110 - nordix-gerrit-parameters
111 - onap-parameter-macro
114 default: '{onap-version}'
115 description: 'ONAP version to deploy'
118 default: '{onap-flavor}'
119 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
122 default: 'nordix-cicd-{deploy-scenario}-{onap-branch}-{onap-flavor}'
125 default: '{engine-version}'
126 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
129 default: '{engine-refspec}'
130 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
132 name: DEPLOY_SCENARIO_VERSION
133 default: '{deploy-scenario-version}'
134 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
136 name: DEPLOY_SCENARIO_REFSPEC
137 default: '{deploy-scenario-refspec}'
138 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
141 default: '{pod-name}'
142 description: 'Development purposes only! Set to none for disabling test results DB reporting.'
145 default: '{delete-stack}'
146 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!'
151 use-build-blocker: true
153 - 'cloud-infra-periodic-engine-.*'
163 - credentials-binding:
165 credential-id: est-jenkins-openrcfile-city-karlskrona-onap
166 variable: OPENRC_FILE
170 - fix-workspace-permissions
179 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
180 branch: '{nordix-branch}'
186 - description-setter:
187 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
190 cp $OPENRC_FILE /tmp/openrc
192 name: Deploy ONAP using OOM
195 - name: 'onap-deploy-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
196 current-parameters: false
197 predefined-parameters: |
199 DEPLOY_TYPE=$DEPLOY_TYPE
200 PROVISIONER_TYPE=$PROVISIONER_TYPE
201 INSTALLER_TYPE=$INSTALLER_TYPE
202 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
203 ONAP_VERSION=$ONAP_VERSION
204 ONAP_FLAVOR=$ONAP_FLAVOR
206 STACK_NAME=$STACK_NAME
207 ENGINE_VERSION=$ENGINE_VERSION
208 ENGINE_REFSPEC=$ENGINE_REFSPEC
209 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
210 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
211 XTESTING_REPO_URL=$XTESTING_REPO_URL
212 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
215 node-parameters: true
219 name: K8S and OOM Healthcheck using xtesting
222 - name: 'oom-healthcheck-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
223 current-parameters: false
224 predefined-parameters: |
226 DEPLOY_TYPE=$DEPLOY_TYPE
227 PROVISIONER_TYPE=$PROVISIONER_TYPE
228 INSTALLER_TYPE=$INSTALLER_TYPE
229 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
230 ONAP_VERSION=$ONAP_VERSION
232 TEST_TYPE=oom-healthcheck
234 STACK_NAME=$STACK_NAME
235 ENGINE_VERSION=$ENGINE_VERSION
236 ENGINE_REFSPEC=$ENGINE_REFSPEC
237 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
238 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
239 XTESTING_REPO_URL=$XTESTING_REPO_URL
240 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
242 node-parameters: true
246 name: ONAP Healthcheck using xtesting
249 - name: 'onap-healthcheck-core-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
250 current-parameters: false
251 predefined-parameters: |
252 SLAVE_LABEL=$SLAVE_LABEL
254 PROVISIONER_TYPE=$PROVISIONER_TYPE
255 INSTALLER_TYPE=$INSTALLER_TYPE
256 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
257 DEPLOY_TYPE=$DEPLOY_TYPE
258 ONAP_VERSION=$ONAP_VERSION
260 TEST_TYPE=onap-healthcheck
262 STACK_NAME=$STACK_NAME
263 ENGINE_VERSION=$ENGINE_VERSION
264 ENGINE_REFSPEC=$ENGINE_REFSPEC
265 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
266 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
267 XTESTING_REPO_URL=$XTESTING_REPO_URL
268 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
270 node-parameters: true
273 - name: 'onap-healthcheck-small-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
274 current-parameters: false
275 predefined-parameters: |
276 SLAVE_LABEL=$SLAVE_LABEL
278 PROVISIONER_TYPE=$PROVISIONER_TYPE
279 INSTALLER_TYPE=$INSTALLER_TYPE
280 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
281 DEPLOY_TYPE=$DEPLOY_TYPE
282 ONAP_VERSION=$ONAP_VERSION
284 TEST_TYPE=onap-healthcheck
286 STACK_NAME=$STACK_NAME
287 ENGINE_VERSION=$ENGINE_VERSION
288 ENGINE_REFSPEC=$ENGINE_REFSPEC
289 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
290 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
291 XTESTING_REPO_URL=$XTESTING_REPO_URL
292 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
294 node-parameters: true
297 - name: 'onap-healthcheck-medium-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
298 current-parameters: false
299 predefined-parameters: |
300 SLAVE_LABEL=$SLAVE_LABEL
302 PROVISIONER_TYPE=$PROVISIONER_TYPE
303 INSTALLER_TYPE=$INSTALLER_TYPE
304 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
305 DEPLOY_TYPE=$DEPLOY_TYPE
306 ONAP_VERSION=$ONAP_VERSION
308 TEST_TYPE=onap-healthcheck
310 STACK_NAME=$STACK_NAME
311 ENGINE_VERSION=$ENGINE_VERSION
312 ENGINE_REFSPEC=$ENGINE_REFSPEC
313 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
314 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
315 XTESTING_REPO_URL=$XTESTING_REPO_URL
316 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
318 node-parameters: true
321 - name: 'onap-healthcheck-full-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
322 current-parameters: false
323 predefined-parameters: |
324 SLAVE_LABEL=$SLAVE_LABEL
326 PROVISIONER_TYPE=$PROVISIONER_TYPE
327 INSTALLER_TYPE=$INSTALLER_TYPE
328 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
329 DEPLOY_TYPE=$DEPLOY_TYPE
330 ONAP_VERSION=$ONAP_VERSION
332 TEST_TYPE=onap-healthcheck
334 STACK_NAME=$STACK_NAME
335 ENGINE_VERSION=$ENGINE_VERSION
336 ENGINE_REFSPEC=$ENGINE_REFSPEC
337 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
338 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
339 XTESTING_REPO_URL=$XTESTING_REPO_URL
340 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
342 node-parameters: true
346 name: Promote ONAP (not activated)
349 - name: 'promote-onap-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
350 current-parameters: false
351 predefined-parameters: |
353 DEPLOY_TYPE=$DEPLOY_TYPE
354 INSTALLER_TYPE=$INSTALLER_TYPE
355 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
356 ONAP_VERSION=$ONAP_VERSION
357 ONAP_FLAVOR=$ONAP_FLAVOR
358 ENGINE_VERSION=$ENGINE_VERSION
359 ENGINE_REFSPEC=$ENGINE_REFSPEC
361 STACK_NAME=$STACK_NAME
362 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
363 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
364 XTESTING_REPO_URL=$XTESTING_REPO_URL
365 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
367 node-parameters: true
383 !include-raw-escape: ./wait-for-pkg-manager.sh
385 !include-raw: ./delete-heat-stack.sh
388 name: '{onap-other-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
398 - project-parameters:
400 branch: '{nordix-branch}'
401 - nordix-gerrit-parameters
402 - onap-parameter-macro
405 default: '{onap-flavor}'
406 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
409 default: '{onap-version}'
410 description: 'ONAP version to deploy'
413 - credentials-binding:
415 credential-id: est-jenkins-openrcfile-city-karlskrona-onap
416 variable: OPENRC_FILE
419 timeout: '{build-timeout}'
420 - fix-workspace-permissions
424 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
425 branch: '{nordix-branch}'
431 - description-setter:
432 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
433 - '{onap-other-phases}-macro'
436 name: '{onap-healthcheck-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-version}'
454 description: 'ONAP version to deploy'
457 default: '{engine-version}'
458 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
461 default: '{engine-refspec}'
462 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
464 name: DEPLOY_SCENARIO_VERSION
465 default: '{deploy-scenario-version}'
466 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
468 name: DEPLOY_SCENARIO_REFSPEC
469 default: '{deploy-scenario-refspec}'
470 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
473 default: '{pod-name}'
474 description: 'Development purposes only! Set to none for disabling test results DB reporting.'
477 - credentials-binding:
479 credential-id: est-jenkins-openrcfile-city-karlskrona-onap
480 variable: OPENRC_FILE
483 timeout: '{build-timeout}'
484 - fix-workspace-permissions
488 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
489 branch: '{nordix-branch}'
495 - description-setter:
496 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
497 - 'onap-healthcheck-macro'
499 # vim: set ts=2 sw=2 expandtab: