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
45 engine-version: master
46 engine-refspec: master
47 deploy-scenario-version: master
48 deploy-scenario-refspec: master
63 provisioner-type: heat
64 installer-type: kubespray
65 slave-label: 'jumphost-onap-ubuntu1804'
72 test-type: oom-healthcheck
76 onap-healthcheck-phases:
77 - onap-healthcheck-core:
79 test-type: onap-healthcheck
80 - onap-healthcheck-small:
82 test-type: onap-healthcheck
83 - onap-healthcheck-medium:
85 test-type: onap-healthcheck
86 - onap-healthcheck-full:
88 test-type: onap-healthcheck
91 - '{deploy-scenario}-{onap-flavor}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
92 - '{onap-other-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
93 - '{onap-healthcheck-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
96 name: '{deploy-scenario}-{onap-flavor}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
98 project-type: multijob
100 disabled: '{obj:disabled}'
105 - project-parameters:
107 branch: '{nordix-branch}'
108 - nordix-gerrit-parameters
109 - onap-parameter-macro
112 default: '{onap-version}'
113 description: 'ONAP version to deploy'
116 default: '{onap-flavor}'
117 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
120 default: 'nordix-cicd-{deploy-scenario}-{onap-branch}-{onap-flavor}'
123 default: '{engine-version}'
124 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
127 default: '{engine-refspec}'
128 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
130 name: DEPLOY_SCENARIO_VERSION
131 default: '{deploy-scenario-version}'
132 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
134 name: DEPLOY_SCENARIO_REFSPEC
135 default: '{deploy-scenario-refspec}'
136 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
139 default: '{pod-name}'
140 description: 'Development purposes only! Set to none for disabling test results DB reporting.'
147 description: 'Development purposes only! Whether delete the stack or not. Default is yes. Setting this to no will increase the cost!'
152 use-build-blocker: true
154 - 'cloud-infra-periodic-engine-.*'
164 - credentials-binding:
166 credential-id: est-jenkins-openrcfile-city-karlskrona-onap
167 variable: OPENRC_FILE
171 - fix-workspace-permissions
177 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
178 branch: '{nordix-branch}'
184 - description-setter:
185 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
188 cp $OPENRC_FILE /tmp/openrc
190 name: Deploy ONAP using OOM
193 - name: 'onap-deploy-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
194 current-parameters: false
195 predefined-parameters: |
197 DEPLOY_TYPE=$DEPLOY_TYPE
198 PROVISIONER_TYPE=$PROVISIONER_TYPE
199 INSTALLER_TYPE=$INSTALLER_TYPE
200 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
201 ONAP_VERSION=$ONAP_VERSION
202 ONAP_FLAVOR=$ONAP_FLAVOR
204 STACK_NAME=$STACK_NAME
205 ENGINE_VERSION=$ENGINE_VERSION
206 ENGINE_REFSPEC=$ENGINE_REFSPEC
207 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
208 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
209 XTESTING_REPO_URL=$XTESTING_REPO_URL
210 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
213 node-parameters: true
217 name: K8S and OOM Healthcheck using xtesting
220 - name: 'oom-healthcheck-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
221 current-parameters: false
222 predefined-parameters: |
224 DEPLOY_TYPE=$DEPLOY_TYPE
225 PROVISIONER_TYPE=$PROVISIONER_TYPE
226 INSTALLER_TYPE=$INSTALLER_TYPE
227 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
228 ONAP_VERSION=$ONAP_VERSION
230 TEST_TYPE=oom-healthcheck
232 STACK_NAME=$STACK_NAME
233 ENGINE_VERSION=$ENGINE_VERSION
234 ENGINE_REFSPEC=$ENGINE_REFSPEC
235 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
236 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
237 XTESTING_REPO_URL=$XTESTING_REPO_URL
238 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
240 node-parameters: true
244 name: ONAP Healthcheck using xtesting
247 - name: 'onap-healthcheck-core-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
248 current-parameters: false
249 predefined-parameters: |
250 SLAVE_LABEL=$SLAVE_LABEL
252 PROVISIONER_TYPE=$PROVISIONER_TYPE
253 INSTALLER_TYPE=$INSTALLER_TYPE
254 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
255 DEPLOY_TYPE=$DEPLOY_TYPE
256 ONAP_VERSION=$ONAP_VERSION
258 TEST_TYPE=onap-healthcheck
260 STACK_NAME=$STACK_NAME
261 ENGINE_VERSION=$ENGINE_VERSION
262 ENGINE_REFSPEC=$ENGINE_REFSPEC
263 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
264 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
265 XTESTING_REPO_URL=$XTESTING_REPO_URL
266 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
268 node-parameters: true
271 - name: 'onap-healthcheck-small-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
272 current-parameters: false
273 predefined-parameters: |
274 SLAVE_LABEL=$SLAVE_LABEL
276 PROVISIONER_TYPE=$PROVISIONER_TYPE
277 INSTALLER_TYPE=$INSTALLER_TYPE
278 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
279 DEPLOY_TYPE=$DEPLOY_TYPE
280 ONAP_VERSION=$ONAP_VERSION
282 TEST_TYPE=onap-healthcheck
284 STACK_NAME=$STACK_NAME
285 ENGINE_VERSION=$ENGINE_VERSION
286 ENGINE_REFSPEC=$ENGINE_REFSPEC
287 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
288 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
289 XTESTING_REPO_URL=$XTESTING_REPO_URL
290 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
292 node-parameters: true
295 - name: 'onap-healthcheck-medium-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
296 current-parameters: false
297 predefined-parameters: |
298 SLAVE_LABEL=$SLAVE_LABEL
300 PROVISIONER_TYPE=$PROVISIONER_TYPE
301 INSTALLER_TYPE=$INSTALLER_TYPE
302 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
303 DEPLOY_TYPE=$DEPLOY_TYPE
304 ONAP_VERSION=$ONAP_VERSION
306 TEST_TYPE=onap-healthcheck
308 STACK_NAME=$STACK_NAME
309 ENGINE_VERSION=$ENGINE_VERSION
310 ENGINE_REFSPEC=$ENGINE_REFSPEC
311 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
312 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
313 XTESTING_REPO_URL=$XTESTING_REPO_URL
314 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
316 node-parameters: true
319 - name: 'onap-healthcheck-full-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
320 current-parameters: false
321 predefined-parameters: |
322 SLAVE_LABEL=$SLAVE_LABEL
324 PROVISIONER_TYPE=$PROVISIONER_TYPE
325 INSTALLER_TYPE=$INSTALLER_TYPE
326 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
327 DEPLOY_TYPE=$DEPLOY_TYPE
328 ONAP_VERSION=$ONAP_VERSION
330 TEST_TYPE=onap-healthcheck
332 STACK_NAME=$STACK_NAME
333 ENGINE_VERSION=$ENGINE_VERSION
334 ENGINE_REFSPEC=$ENGINE_REFSPEC
335 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
336 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
337 XTESTING_REPO_URL=$XTESTING_REPO_URL
338 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
340 node-parameters: true
344 name: Promote ONAP (not activated)
347 - name: 'promote-onap-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
348 current-parameters: false
349 predefined-parameters: |
351 DEPLOY_TYPE=$DEPLOY_TYPE
352 INSTALLER_TYPE=$INSTALLER_TYPE
353 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
354 ONAP_VERSION=$ONAP_VERSION
355 ONAP_FLAVOR=$ONAP_FLAVOR
356 ENGINE_VERSION=$ENGINE_VERSION
357 ENGINE_REFSPEC=$ENGINE_REFSPEC
359 STACK_NAME=$STACK_NAME
360 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
361 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
362 XTESTING_REPO_URL=$XTESTING_REPO_URL
363 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
365 node-parameters: true
381 !include-raw-escape: ./wait-for-pkg-manager.sh
383 !include-raw: ./delete-heat-stack.sh
386 name: '{onap-other-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
396 - project-parameters:
398 branch: '{nordix-branch}'
399 - nordix-gerrit-parameters
400 - onap-parameter-macro
403 default: '{onap-flavor}'
404 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
407 default: '{onap-version}'
408 description: 'ONAP version to deploy'
411 - credentials-binding:
413 credential-id: est-jenkins-openrcfile-city-karlskrona-onap
414 variable: OPENRC_FILE
417 timeout: '{build-timeout}'
418 - fix-workspace-permissions
422 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
423 branch: '{nordix-branch}'
429 - description-setter:
430 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
431 - '{onap-other-phases}-macro'
434 name: '{onap-healthcheck-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
444 - project-parameters:
446 branch: '{nordix-branch}'
447 - nordix-gerrit-parameters
448 - onap-parameter-macro
451 default: '{onap-version}'
452 description: 'ONAP version to deploy'
455 default: '{engine-version}'
456 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
459 default: '{engine-refspec}'
460 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
462 name: DEPLOY_SCENARIO_VERSION
463 default: '{deploy-scenario-version}'
464 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
466 name: DEPLOY_SCENARIO_REFSPEC
467 default: '{deploy-scenario-refspec}'
468 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
471 default: '{pod-name}'
472 description: 'Development purposes only! Set to none for disabling test results DB reporting.'
475 - credentials-binding:
477 credential-id: est-jenkins-openrcfile-city-karlskrona-onap
478 variable: OPENRC_FILE
481 timeout: '{build-timeout}'
482 - fix-workspace-permissions
486 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
487 branch: '{nordix-branch}'
493 - description-setter:
494 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
495 - 'onap-healthcheck-macro'
497 # vim: set ts=2 sw=2 expandtab: