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-onap-{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.'
145 use-build-blocker: true
147 - 'cloud-infra-periodic-engine-.*'
157 - credentials-binding:
159 credential-id: nordix-jenkins-openrcfile-city-frankfurt-defaultproject
160 variable: OPENRC_FILE
164 - fix-workspace-permissions
170 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
171 branch: '{nordix-branch}'
177 - description-setter:
178 description: $INSTALLER_TYPE | $DEPLOY_SCENARIO
181 cp $OPENRC_FILE /tmp/openrc
183 name: Deploy ONAP using OOM
186 - name: 'onap-deploy-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
187 current-parameters: false
188 predefined-parameters: |
190 DEPLOY_TYPE=$DEPLOY_TYPE
191 PROVISIONER_TYPE=$PROVISIONER_TYPE
192 INSTALLER_TYPE=$INSTALLER_TYPE
193 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
194 ONAP_VERSION=$ONAP_VERSION
195 ONAP_FLAVOR=$ONAP_FLAVOR
197 STACK_NAME=$STACK_NAME
198 ENGINE_VERSION=$ENGINE_VERSION
199 ENGINE_REFSPEC=$ENGINE_REFSPEC
200 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
201 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
202 XTESTING_REPO_URL=$XTESTING_REPO_URL
203 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
206 node-parameters: true
210 name: K8S and OOM Healthcheck using xtesting
213 - name: 'oom-healthcheck-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
214 current-parameters: false
215 predefined-parameters: |
217 DEPLOY_TYPE=$DEPLOY_TYPE
218 PROVISIONER_TYPE=$PROVISIONER_TYPE
219 INSTALLER_TYPE=$INSTALLER_TYPE
220 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
221 ONAP_VERSION=$ONAP_VERSION
223 TEST_TYPE=oom-healthcheck
225 STACK_NAME=$STACK_NAME
226 ENGINE_VERSION=$ENGINE_VERSION
227 ENGINE_REFSPEC=$ENGINE_REFSPEC
228 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
229 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
230 XTESTING_REPO_URL=$XTESTING_REPO_URL
231 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
233 node-parameters: true
237 name: ONAP Healthcheck using xtesting
240 - name: 'onap-healthcheck-core-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
241 current-parameters: false
242 predefined-parameters: |
243 SLAVE_LABEL=$SLAVE_LABEL
245 PROVISIONER_TYPE=$PROVISIONER_TYPE
246 INSTALLER_TYPE=$INSTALLER_TYPE
247 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
248 DEPLOY_TYPE=$DEPLOY_TYPE
249 ONAP_VERSION=$ONAP_VERSION
251 TEST_TYPE=onap-healthcheck
253 STACK_NAME=$STACK_NAME
254 ENGINE_VERSION=$ENGINE_VERSION
255 ENGINE_REFSPEC=$ENGINE_REFSPEC
256 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
257 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
258 XTESTING_REPO_URL=$XTESTING_REPO_URL
259 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
261 node-parameters: true
264 - name: 'onap-healthcheck-small-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
265 current-parameters: false
266 predefined-parameters: |
267 SLAVE_LABEL=$SLAVE_LABEL
269 PROVISIONER_TYPE=$PROVISIONER_TYPE
270 INSTALLER_TYPE=$INSTALLER_TYPE
271 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
272 DEPLOY_TYPE=$DEPLOY_TYPE
273 ONAP_VERSION=$ONAP_VERSION
275 TEST_TYPE=onap-healthcheck
277 STACK_NAME=$STACK_NAME
278 ENGINE_VERSION=$ENGINE_VERSION
279 ENGINE_REFSPEC=$ENGINE_REFSPEC
280 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
281 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
282 XTESTING_REPO_URL=$XTESTING_REPO_URL
283 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
285 node-parameters: true
288 - name: 'onap-healthcheck-medium-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
289 current-parameters: false
290 predefined-parameters: |
291 SLAVE_LABEL=$SLAVE_LABEL
293 PROVISIONER_TYPE=$PROVISIONER_TYPE
294 INSTALLER_TYPE=$INSTALLER_TYPE
295 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
296 DEPLOY_TYPE=$DEPLOY_TYPE
297 ONAP_VERSION=$ONAP_VERSION
299 TEST_TYPE=onap-healthcheck
301 STACK_NAME=$STACK_NAME
302 ENGINE_VERSION=$ENGINE_VERSION
303 ENGINE_REFSPEC=$ENGINE_REFSPEC
304 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
305 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
306 XTESTING_REPO_URL=$XTESTING_REPO_URL
307 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
309 node-parameters: true
312 - name: 'onap-healthcheck-full-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
313 current-parameters: false
314 predefined-parameters: |
315 SLAVE_LABEL=$SLAVE_LABEL
317 PROVISIONER_TYPE=$PROVISIONER_TYPE
318 INSTALLER_TYPE=$INSTALLER_TYPE
319 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
320 DEPLOY_TYPE=$DEPLOY_TYPE
321 ONAP_VERSION=$ONAP_VERSION
323 TEST_TYPE=onap-healthcheck
325 STACK_NAME=$STACK_NAME
326 ENGINE_VERSION=$ENGINE_VERSION
327 ENGINE_REFSPEC=$ENGINE_REFSPEC
328 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
329 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
330 XTESTING_REPO_URL=$XTESTING_REPO_URL
331 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
333 node-parameters: true
337 name: Promote ONAP (not activated)
340 - name: 'promote-onap-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
341 current-parameters: false
342 predefined-parameters: |
344 DEPLOY_TYPE=$DEPLOY_TYPE
345 INSTALLER_TYPE=$INSTALLER_TYPE
346 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
347 ONAP_VERSION=$ONAP_VERSION
348 ONAP_FLAVOR=$ONAP_FLAVOR
349 ENGINE_VERSION=$ENGINE_VERSION
350 ENGINE_REFSPEC=$ENGINE_REFSPEC
352 STACK_NAME=$STACK_NAME
353 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
354 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
355 XTESTING_REPO_URL=$XTESTING_REPO_URL
356 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
358 node-parameters: true
374 !include-raw-escape: ./wait-for-pkg-manager.sh
376 !include-raw: ./delete-heat-stack.sh
379 name: '{onap-other-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
389 - project-parameters:
391 branch: '{nordix-branch}'
392 - nordix-gerrit-parameters
393 - onap-parameter-macro
396 default: '{onap-flavor}'
397 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
400 default: '{onap-version}'
401 description: 'ONAP version to deploy'
404 - credentials-binding:
406 credential-id: nordix-jenkins-openrcfile-city-frankfurt-defaultproject
407 variable: OPENRC_FILE
410 timeout: '{build-timeout}'
411 - fix-workspace-permissions
415 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
416 branch: '{nordix-branch}'
422 - description-setter:
423 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
424 - '{onap-other-phases}-macro'
427 name: '{onap-healthcheck-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
437 - project-parameters:
439 branch: '{nordix-branch}'
440 - nordix-gerrit-parameters
441 - onap-parameter-macro
444 default: '{onap-version}'
445 description: 'ONAP version to deploy'
448 default: '{engine-version}'
449 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
452 default: '{engine-refspec}'
453 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
455 name: DEPLOY_SCENARIO_VERSION
456 default: '{deploy-scenario-version}'
457 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
459 name: DEPLOY_SCENARIO_REFSPEC
460 default: '{deploy-scenario-refspec}'
461 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
464 default: '{pod-name}'
465 description: 'Development purposes only! Set to none for disabling test results DB reporting.'
468 - credentials-binding:
470 credential-id: nordix-jenkins-openrcfile-city-frankfurt-defaultproject
471 variable: OPENRC_FILE
474 timeout: '{build-timeout}'
475 - fix-workspace-permissions
479 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
480 branch: '{nordix-branch}'
486 - description-setter:
487 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
488 - 'onap-healthcheck-macro'
490 # vim: set ts=2 sw=2 expandtab: