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'
34 onap-version: 4.0.0-ONAP
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
59 provisioner-type: heat
60 installer-type: kubespray
61 slave-label: 'jumphost-onap-ubuntu1804'
68 test-type: oom-healthcheck
72 onap-healthcheck-phases:
73 - onap-healthcheck-core:
75 test-type: onap-healthcheck
76 - onap-healthcheck-small:
78 test-type: onap-healthcheck
79 - onap-healthcheck-medium:
81 test-type: onap-healthcheck
82 - onap-healthcheck-full:
84 test-type: onap-healthcheck
87 - '{deploy-scenario}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
88 - '{onap-other-phases}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
89 - '{onap-healthcheck-phases}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
92 name: '{deploy-scenario}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
94 project-type: multijob
96 disabled: '{obj:disabled}'
101 - project-parameters:
103 branch: '{nordix-branch}'
104 - nordix-gerrit-parameters
105 - onap-parameter-macro
108 default: '{onap-version}'
109 description: 'ONAP version to deploy'
112 default: '{onap-flavor}'
113 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
116 default: 'nordix-cicd-onap-{onap-branch}-{onap-flavor}'
119 default: '{engine-version}'
120 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
123 default: '{engine-refspec}'
124 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
126 name: DEPLOY_SCENARIO_VERSION
127 default: '{deploy-scenario-version}'
128 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
130 name: DEPLOY_SCENARIO_REFSPEC
131 default: '{deploy-scenario-refspec}'
132 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
137 use-build-blocker: true
139 - 'cloud-infra-periodic-engine-.*'
149 - credentials-binding:
151 credential-id: nordix-jenkins-openrcfile-city-frankfurt-defaultproject
152 variable: OPENRC_FILE
156 - fix-workspace-permissions
162 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
163 branch: '{nordix-branch}'
169 - description-setter:
170 description: $INSTALLER_TYPE | $DEPLOY_SCENARIO
173 cp $OPENRC_FILE /tmp/openrc
175 name: Deploy ONAP using OOM
178 - name: 'onap-deploy-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
179 current-parameters: false
180 predefined-parameters: |
182 DEPLOY_TYPE=$DEPLOY_TYPE
183 PROVISIONER_TYPE=$PROVISIONER_TYPE
184 INSTALLER_TYPE=$INSTALLER_TYPE
185 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
186 ONAP_VERSION=$ONAP_VERSION
187 ONAP_FLAVOR=$ONAP_FLAVOR
188 STACK_NAME=$STACK_NAME
189 ENGINE_VERSION=$ENGINE_VERSION
190 ENGINE_REFSPEC=$ENGINE_REFSPEC
191 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
192 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
193 XTESTING_REPO_URL=$XTESTING_REPO_URL
194 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
197 node-parameters: true
201 name: K8S and OOM Healthcheck using xtesting
204 - name: 'oom-healthcheck-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
205 current-parameters: false
206 predefined-parameters: |
208 DEPLOY_TYPE=$DEPLOY_TYPE
209 PROVISIONER_TYPE=$PROVISIONER_TYPE
210 INSTALLER_TYPE=$INSTALLER_TYPE
211 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
212 ONAP_VERSION=$ONAP_VERSION
214 TEST_TYPE=oom-healthcheck
215 STACK_NAME=$STACK_NAME
216 ENGINE_VERSION=$ENGINE_VERSION
217 ENGINE_REFSPEC=$ENGINE_REFSPEC
218 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
219 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
220 XTESTING_REPO_URL=$XTESTING_REPO_URL
221 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
223 node-parameters: true
227 name: ONAP Healthcheck using xtesting
230 - name: 'onap-healthcheck-core-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
231 current-parameters: false
232 predefined-parameters: |
233 SLAVE_LABEL=$SLAVE_LABEL
235 PROVISIONER_TYPE=$PROVISIONER_TYPE
236 INSTALLER_TYPE=$INSTALLER_TYPE
237 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
238 DEPLOY_TYPE=$DEPLOY_TYPE
239 ONAP_VERSION=$ONAP_VERSION
241 TEST_TYPE=onap-healthcheck
242 STACK_NAME=$STACK_NAME
243 ENGINE_VERSION=$ENGINE_VERSION
244 ENGINE_REFSPEC=$ENGINE_REFSPEC
245 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
246 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
247 XTESTING_REPO_URL=$XTESTING_REPO_URL
248 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
250 node-parameters: true
253 - name: 'onap-healthcheck-small-periodic-{distro}-{installer-type}-{type}-{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
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-healthcheck-medium-periodic-{distro}-{installer-type}-{type}-{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
288 STACK_NAME=$STACK_NAME
289 ENGINE_VERSION=$ENGINE_VERSION
290 ENGINE_REFSPEC=$ENGINE_REFSPEC
291 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
292 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
293 XTESTING_REPO_URL=$XTESTING_REPO_URL
294 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
296 node-parameters: true
299 - name: 'onap-healthcheck-full-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
300 current-parameters: false
301 predefined-parameters: |
302 SLAVE_LABEL=$SLAVE_LABEL
304 PROVISIONER_TYPE=$PROVISIONER_TYPE
305 INSTALLER_TYPE=$INSTALLER_TYPE
306 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
307 DEPLOY_TYPE=$DEPLOY_TYPE
308 ONAP_VERSION=$ONAP_VERSION
310 TEST_TYPE=onap-healthcheck
311 STACK_NAME=$STACK_NAME
312 ENGINE_VERSION=$ENGINE_VERSION
313 ENGINE_REFSPEC=$ENGINE_REFSPEC
314 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
315 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
316 XTESTING_REPO_URL=$XTESTING_REPO_URL
317 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
319 node-parameters: true
323 name: Promote ONAP (not activated)
326 - name: 'promote-onap-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
327 current-parameters: false
328 predefined-parameters: |
330 DEPLOY_TYPE=$DEPLOY_TYPE
331 INSTALLER_TYPE=$INSTALLER_TYPE
332 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
333 ONAP_VERSION=$ONAP_VERSION
334 ONAP_FLAVOR=$ONAP_FLAVOR
335 ENGINE_VERSION=$ENGINE_VERSION
336 ENGINE_REFSPEC=$ENGINE_REFSPEC
337 STACK_NAME=$STACK_NAME
338 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
339 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
340 XTESTING_REPO_URL=$XTESTING_REPO_URL
341 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
343 node-parameters: true
359 !include-raw-escape: ./wait-for-pkg-manager.sh
361 !include-raw: ./delete-heat-stack.sh
364 name: '{onap-other-phases}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
374 - project-parameters:
376 branch: '{nordix-branch}'
377 - nordix-gerrit-parameters
378 - onap-parameter-macro
381 default: '{onap-flavor}'
382 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
385 default: '{onap-version}'
386 description: 'ONAP version to deploy'
389 - credentials-binding:
391 credential-id: nordix-jenkins-openrcfile-city-frankfurt-defaultproject
392 variable: OPENRC_FILE
395 timeout: '{build-timeout}'
396 - fix-workspace-permissions
400 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
401 branch: '{nordix-branch}'
407 - description-setter:
408 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
409 - '{onap-other-phases}-macro'
412 name: '{onap-healthcheck-phases}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
422 - project-parameters:
424 branch: '{nordix-branch}'
425 - nordix-gerrit-parameters
426 - onap-parameter-macro
429 default: '{onap-version}'
430 description: 'ONAP version to deploy'
433 default: '{engine-version}'
434 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
437 default: '{engine-refspec}'
438 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
440 name: DEPLOY_SCENARIO_VERSION
441 default: '{deploy-scenario-version}'
442 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
444 name: DEPLOY_SCENARIO_REFSPEC
445 default: '{deploy-scenario-refspec}'
446 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
449 - credentials-binding:
451 credential-id: nordix-jenkins-openrcfile-city-frankfurt-defaultproject
452 variable: OPENRC_FILE
455 timeout: '{build-timeout}'
456 - fix-workspace-permissions
460 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
461 branch: '{nordix-branch}'
467 - description-setter:
468 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
469 - 'onap-healthcheck-macro'
471 # vim: set ts=2 sw=2 expandtab: