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:
81 test-type: onap-healthcheck
84 test-type: onap-healthcheck
87 test-type: onap-healthcheck
90 test-type: onap-healthcheck
93 test-type: onap-healthcheck
96 - '{deploy-scenario}-{onap-flavor}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
97 - '{onap-other-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
98 - '{onap-healthcheck-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
101 name: '{deploy-scenario}-{onap-flavor}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
103 project-type: multijob
105 disabled: '{obj:disabled}'
110 - project-parameters:
112 branch: '{nordix-branch}'
113 - nordix-gerrit-parameters
114 - onap-parameter-macro
117 default: '{onap-version}'
118 description: 'ONAP version to deploy'
121 default: '{onap-flavor}'
122 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
125 default: 'nordix-cicd-{deploy-scenario}-{onap-branch}-{onap-flavor}'
128 default: '{engine-version}'
129 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
132 default: '{engine-refspec}'
133 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
135 name: DEPLOY_SCENARIO_VERSION
136 default: '{deploy-scenario-version}'
137 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
139 name: DEPLOY_SCENARIO_REFSPEC
140 default: '{deploy-scenario-refspec}'
141 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
144 default: '{pod-name}'
145 description: 'Development purposes only! Set to none for disabling test results DB reporting.'
148 default: '{delete-stack}'
149 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!'
154 use-build-blocker: true
156 - 'cloud-infra-periodic-engine-.*'
166 - credentials-binding:
168 credential-id: est-jenkins-openrcfile-city-karlskrona-onap
169 variable: OPENRC_FILE
173 - fix-workspace-permissions
182 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
183 branch: '{nordix-branch}'
189 - description-setter:
190 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
193 cp $OPENRC_FILE /tmp/openrc
195 name: Deploy ONAP using OOM
198 - name: 'onap-deploy-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
199 current-parameters: false
200 predefined-parameters: |
202 DEPLOY_TYPE=$DEPLOY_TYPE
203 PROVISIONER_TYPE=$PROVISIONER_TYPE
204 INSTALLER_TYPE=$INSTALLER_TYPE
205 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
206 ONAP_VERSION=$ONAP_VERSION
207 ONAP_FLAVOR=$ONAP_FLAVOR
209 STACK_NAME=$STACK_NAME
210 ENGINE_VERSION=$ENGINE_VERSION
211 ENGINE_REFSPEC=$ENGINE_REFSPEC
212 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
213 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
214 XTESTING_REPO_URL=$XTESTING_REPO_URL
215 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
218 node-parameters: true
222 name: K8S and OOM Healthcheck using xtesting
225 - name: 'oom-hc-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
226 current-parameters: false
227 predefined-parameters: |
229 DEPLOY_TYPE=$DEPLOY_TYPE
230 PROVISIONER_TYPE=$PROVISIONER_TYPE
231 INSTALLER_TYPE=$INSTALLER_TYPE
232 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
233 ONAP_VERSION=$ONAP_VERSION
235 TEST_TYPE=oom-healthcheck
237 STACK_NAME=$STACK_NAME
238 ENGINE_VERSION=$ENGINE_VERSION
239 ENGINE_REFSPEC=$ENGINE_REFSPEC
240 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
241 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
242 XTESTING_REPO_URL=$XTESTING_REPO_URL
243 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
245 node-parameters: true
249 name: ONAP Healthcheck using xtesting
252 - name: 'onap-hc-core-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
253 current-parameters: false
254 predefined-parameters: |
255 SLAVE_LABEL=$SLAVE_LABEL
257 PROVISIONER_TYPE=$PROVISIONER_TYPE
258 INSTALLER_TYPE=$INSTALLER_TYPE
259 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
260 DEPLOY_TYPE=$DEPLOY_TYPE
261 ONAP_VERSION=$ONAP_VERSION
263 TEST_TYPE=onap-healthcheck
265 STACK_NAME=$STACK_NAME
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
276 - name: 'onap-hc-small-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
277 current-parameters: false
278 predefined-parameters: |
279 SLAVE_LABEL=$SLAVE_LABEL
281 PROVISIONER_TYPE=$PROVISIONER_TYPE
282 INSTALLER_TYPE=$INSTALLER_TYPE
283 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
284 DEPLOY_TYPE=$DEPLOY_TYPE
285 ONAP_VERSION=$ONAP_VERSION
287 TEST_TYPE=onap-healthcheck
289 STACK_NAME=$STACK_NAME
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-medium-{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 ENGINE_VERSION=$ENGINE_VERSION
315 ENGINE_REFSPEC=$ENGINE_REFSPEC
316 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
317 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
318 XTESTING_REPO_URL=$XTESTING_REPO_URL
319 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
321 node-parameters: true
324 - name: 'onap-hc-full-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
325 current-parameters: false
326 predefined-parameters: |
327 SLAVE_LABEL=$SLAVE_LABEL
329 PROVISIONER_TYPE=$PROVISIONER_TYPE
330 INSTALLER_TYPE=$INSTALLER_TYPE
331 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
332 DEPLOY_TYPE=$DEPLOY_TYPE
333 ONAP_VERSION=$ONAP_VERSION
335 TEST_TYPE=onap-healthcheck
337 STACK_NAME=$STACK_NAME
338 ENGINE_VERSION=$ENGINE_VERSION
339 ENGINE_REFSPEC=$ENGINE_REFSPEC
340 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
341 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
342 XTESTING_REPO_URL=$XTESTING_REPO_URL
343 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
345 node-parameters: true
348 - name: 'onap-hc-healthdist-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
349 current-parameters: false
350 predefined-parameters: |
351 SLAVE_LABEL=$SLAVE_LABEL
353 PROVISIONER_TYPE=$PROVISIONER_TYPE
354 INSTALLER_TYPE=$INSTALLER_TYPE
355 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
356 DEPLOY_TYPE=$DEPLOY_TYPE
357 ONAP_VERSION=$ONAP_VERSION
358 ONAP_FLAVOR=healthdist
359 TEST_TYPE=onap-healthcheck
361 STACK_NAME=$STACK_NAME
362 ENGINE_VERSION=$ENGINE_VERSION
363 ENGINE_REFSPEC=$ENGINE_REFSPEC
364 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
365 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
366 XTESTING_REPO_URL=$XTESTING_REPO_URL
367 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
369 node-parameters: true
373 name: Promote ONAP (not activated)
376 - name: 'promote-onap-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
377 current-parameters: false
378 predefined-parameters: |
380 DEPLOY_TYPE=$DEPLOY_TYPE
381 INSTALLER_TYPE=$INSTALLER_TYPE
382 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
383 ONAP_VERSION=$ONAP_VERSION
384 ONAP_FLAVOR=$ONAP_FLAVOR
385 ENGINE_VERSION=$ENGINE_VERSION
386 ENGINE_REFSPEC=$ENGINE_REFSPEC
388 STACK_NAME=$STACK_NAME
389 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
390 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
391 XTESTING_REPO_URL=$XTESTING_REPO_URL
392 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
394 node-parameters: true
410 !include-raw-escape: ./wait-for-pkg-manager.sh
412 !include-raw: ./delete-heat-stack.sh
415 name: '{onap-other-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
425 - project-parameters:
427 branch: '{nordix-branch}'
428 - nordix-gerrit-parameters
429 - onap-parameter-macro
432 default: '{onap-flavor}'
433 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
436 default: '{onap-version}'
437 description: 'ONAP version to deploy'
440 - credentials-binding:
442 credential-id: est-jenkins-openrcfile-city-karlskrona-onap
443 variable: OPENRC_FILE
446 timeout: '{build-timeout}'
447 - fix-workspace-permissions
451 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
452 branch: '{nordix-branch}'
458 - description-setter:
459 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
460 - '{onap-other-phases}-macro'
463 name: '{onap-healthcheck-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
473 - project-parameters:
475 branch: '{nordix-branch}'
476 - nordix-gerrit-parameters
477 - onap-parameter-macro
480 default: '{onap-version}'
481 description: 'ONAP version to deploy'
484 default: '{engine-version}'
485 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
488 default: '{engine-refspec}'
489 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
491 name: DEPLOY_SCENARIO_VERSION
492 default: '{deploy-scenario-version}'
493 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
495 name: DEPLOY_SCENARIO_REFSPEC
496 default: '{deploy-scenario-refspec}'
497 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
500 default: '{pod-name}'
501 description: 'Development purposes only! Set to none for disabling test results DB reporting.'
504 - credentials-binding:
506 credential-id: est-jenkins-openrcfile-city-karlskrona-onap
507 variable: OPENRC_FILE
510 timeout: '{build-timeout}'
511 - fix-workspace-permissions
515 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
516 branch: '{nordix-branch}'
522 - description-setter:
523 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
524 - 'onap-healthcheck-macro'
526 # vim: set ts=2 sw=2 expandtab: