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
250 execution-type: SEQUENTIALLY
253 - name: 'onap-hc-core-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
254 current-parameters: false
255 predefined-parameters: |
256 SLAVE_LABEL=$SLAVE_LABEL
258 PROVISIONER_TYPE=$PROVISIONER_TYPE
259 INSTALLER_TYPE=$INSTALLER_TYPE
260 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
261 DEPLOY_TYPE=$DEPLOY_TYPE
262 ONAP_VERSION=$ONAP_VERSION
264 TEST_TYPE=onap-healthcheck
266 STACK_NAME=$STACK_NAME
267 ENGINE_VERSION=$ENGINE_VERSION
268 ENGINE_REFSPEC=$ENGINE_REFSPEC
269 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
270 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
271 XTESTING_REPO_URL=$XTESTING_REPO_URL
272 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
274 node-parameters: true
277 - name: 'onap-hc-small-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
278 current-parameters: false
279 predefined-parameters: |
280 SLAVE_LABEL=$SLAVE_LABEL
282 PROVISIONER_TYPE=$PROVISIONER_TYPE
283 INSTALLER_TYPE=$INSTALLER_TYPE
284 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
285 DEPLOY_TYPE=$DEPLOY_TYPE
286 ONAP_VERSION=$ONAP_VERSION
288 TEST_TYPE=onap-healthcheck
290 STACK_NAME=$STACK_NAME
291 ENGINE_VERSION=$ENGINE_VERSION
292 ENGINE_REFSPEC=$ENGINE_REFSPEC
293 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
294 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
295 XTESTING_REPO_URL=$XTESTING_REPO_URL
296 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
298 node-parameters: true
301 - name: 'onap-hc-medium-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
302 current-parameters: false
303 predefined-parameters: |
304 SLAVE_LABEL=$SLAVE_LABEL
306 PROVISIONER_TYPE=$PROVISIONER_TYPE
307 INSTALLER_TYPE=$INSTALLER_TYPE
308 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
309 DEPLOY_TYPE=$DEPLOY_TYPE
310 ONAP_VERSION=$ONAP_VERSION
312 TEST_TYPE=onap-healthcheck
314 STACK_NAME=$STACK_NAME
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-full-{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 ENGINE_VERSION=$ENGINE_VERSION
340 ENGINE_REFSPEC=$ENGINE_REFSPEC
341 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
342 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
343 XTESTING_REPO_URL=$XTESTING_REPO_URL
344 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
346 node-parameters: true
349 - name: 'onap-hc-healthdist-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
350 current-parameters: false
351 predefined-parameters: |
352 SLAVE_LABEL=$SLAVE_LABEL
354 PROVISIONER_TYPE=$PROVISIONER_TYPE
355 INSTALLER_TYPE=$INSTALLER_TYPE
356 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
357 DEPLOY_TYPE=$DEPLOY_TYPE
358 ONAP_VERSION=$ONAP_VERSION
359 ONAP_FLAVOR=healthdist
360 TEST_TYPE=onap-healthcheck
362 STACK_NAME=$STACK_NAME
363 ENGINE_VERSION=$ENGINE_VERSION
364 ENGINE_REFSPEC=$ENGINE_REFSPEC
365 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
366 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
367 XTESTING_REPO_URL=$XTESTING_REPO_URL
368 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
370 node-parameters: true
374 name: Promote ONAP (not activated)
377 - name: 'promote-onap-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
378 current-parameters: false
379 predefined-parameters: |
381 DEPLOY_TYPE=$DEPLOY_TYPE
382 INSTALLER_TYPE=$INSTALLER_TYPE
383 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
384 ONAP_VERSION=$ONAP_VERSION
385 ONAP_FLAVOR=$ONAP_FLAVOR
386 ENGINE_VERSION=$ENGINE_VERSION
387 ENGINE_REFSPEC=$ENGINE_REFSPEC
389 STACK_NAME=$STACK_NAME
390 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
391 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
392 XTESTING_REPO_URL=$XTESTING_REPO_URL
393 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
395 node-parameters: true
411 !include-raw-escape: ./wait-for-pkg-manager.sh
413 !include-raw: ./delete-heat-stack.sh
416 name: '{onap-other-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
426 - project-parameters:
428 branch: '{nordix-branch}'
429 - nordix-gerrit-parameters
430 - onap-parameter-macro
433 default: '{onap-flavor}'
434 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
437 default: '{onap-version}'
438 description: 'ONAP version to deploy'
441 - credentials-binding:
443 credential-id: est-jenkins-openrcfile-city-karlskrona-onap
444 variable: OPENRC_FILE
447 timeout: '{build-timeout}'
448 - fix-workspace-permissions
452 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
453 branch: '{nordix-branch}'
459 - description-setter:
460 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
461 - '{onap-other-phases}-macro'
464 name: '{onap-healthcheck-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
474 - project-parameters:
476 branch: '{nordix-branch}'
477 - nordix-gerrit-parameters
478 - onap-parameter-macro
481 default: '{onap-version}'
482 description: 'ONAP version to deploy'
485 default: '{engine-version}'
486 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
489 default: '{engine-refspec}'
490 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
492 name: DEPLOY_SCENARIO_VERSION
493 default: '{deploy-scenario-version}'
494 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
496 name: DEPLOY_SCENARIO_REFSPEC
497 default: '{deploy-scenario-refspec}'
498 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
501 default: '{pod-name}'
502 description: 'Development purposes only! Set to none for disabling test results DB reporting.'
505 - credentials-binding:
507 credential-id: est-jenkins-openrcfile-city-karlskrona-onap
508 variable: OPENRC_FILE
511 timeout: '{build-timeout}'
512 - fix-workspace-permissions
516 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
517 branch: '{nordix-branch}'
523 - description-setter:
524 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
525 - 'onap-healthcheck-macro'
527 # vim: set ts=2 sw=2 expandtab: