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
35 engine-version: master
36 engine-refspec: master
37 deploy-scenario-version: master
38 deploy-scenario-refspec: master
43 engine-version: master
44 engine-refspec: master
45 deploy-scenario-version: master
46 deploy-scenario-refspec: master
57 provisioner-type: heat
58 installer-type: kubespray
59 slave-label: 'jumphost-onap-ubuntu1804'
66 test-type: oom-healthcheck
70 onap-healthcheck-phases:
71 - onap-healthcheck-core:
73 test-type: onap-healthcheck
74 - onap-healthcheck-small:
76 test-type: onap-healthcheck
77 - onap-healthcheck-medium:
79 test-type: onap-healthcheck
80 - onap-healthcheck-full:
82 test-type: onap-healthcheck
85 - '{deploy-scenario}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
86 - '{onap-other-phases}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
87 - '{onap-healthcheck-phases}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
90 name: '{deploy-scenario}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
92 project-type: multijob
94 disabled: '{obj:disabled}'
101 branch: '{nordix-branch}'
102 - nordix-gerrit-parameters
103 - onap-parameter-macro
106 default: '{onap-version}'
107 description: 'ONAP version to deploy'
110 default: '{engine-version}'
111 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
114 default: '{engine-refspec}'
115 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
117 name: DEPLOY_SCENARIO_VERSION
118 default: '{deploy-scenario-version}'
119 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
121 name: DEPLOY_SCENARIO_REFSPEC
122 default: '{deploy-scenario-refspec}'
123 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
128 use-build-blocker: true
130 - 'cloud-infra-periodic-engine-.*'
140 - credentials-binding:
142 credential-id: nordix-jenkins-openrcfile-city-frankfurt-defaultproject
143 variable: OPENRC_FILE
147 - fix-workspace-permissions
153 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
154 branch: '{nordix-branch}'
160 - description-setter:
161 description: $INSTALLER_TYPE | $DEPLOY_SCENARIO
164 cp $OPENRC_FILE /tmp/openrc
166 name: Deploy ONAP using OOM
167 condition: SUCCESSFUL
169 - name: 'onap-deploy-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
170 current-parameters: false
171 predefined-parameters: |
173 DEPLOY_TYPE=$DEPLOY_TYPE
174 PROVISIONER_TYPE=$PROVISIONER_TYPE
175 INSTALLER_TYPE=$INSTALLER_TYPE
176 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
177 ONAP_VERSION=$ONAP_VERSION
178 ONAP_FLAVOR=$ONAP_FLAVOR
179 ENGINE_VERSION=$ENGINE_VERSION
180 ENGINE_REFSPEC=$ENGINE_REFSPEC
181 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
182 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
183 XTESTING_REPO_URL=$XTESTING_REPO_URL
184 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
187 node-parameters: true
188 kill-phase-on: FAILURE
191 name: K8S and OOM Healthcheck using xtesting
194 - name: 'oom-healthcheck-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
195 current-parameters: false
196 predefined-parameters: |
198 DEPLOY_TYPE=$DEPLOY_TYPE
199 PROVISIONER_TYPE=$PROVISIONER_TYPE
200 INSTALLER_TYPE=$INSTALLER_TYPE
201 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
202 ONAP_VERSION=$ONAP_VERSION
204 TEST_TYPE=oom-healthcheck
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
212 node-parameters: true
216 name: ONAP Healthcheck using xtesting
219 - name: 'onap-healthcheck-core-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
220 current-parameters: false
221 predefined-parameters: |
222 SLAVE_LABEL=$SLAVE_LABEL
224 PROVISIONER_TYPE=$PROVISIONER_TYPE
225 INSTALLER_TYPE=$INSTALLER_TYPE
226 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
227 DEPLOY_TYPE=$DEPLOY_TYPE
228 ONAP_VERSION=$ONAP_VERSION
230 TEST_TYPE=onap-healthcheck
231 ENGINE_VERSION=$ENGINE_VERSION
232 ENGINE_REFSPEC=$ENGINE_REFSPEC
233 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
234 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
235 XTESTING_REPO_URL=$XTESTING_REPO_URL
236 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
238 node-parameters: true
241 - name: 'onap-healthcheck-small-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
242 current-parameters: false
243 predefined-parameters: |
244 SLAVE_LABEL=$SLAVE_LABEL
246 PROVISIONER_TYPE=$PROVISIONER_TYPE
247 INSTALLER_TYPE=$INSTALLER_TYPE
248 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
249 DEPLOY_TYPE=$DEPLOY_TYPE
250 ONAP_VERSION=$ONAP_VERSION
252 TEST_TYPE=onap-healthcheck
253 ENGINE_VERSION=$ENGINE_VERSION
254 ENGINE_REFSPEC=$ENGINE_REFSPEC
255 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
256 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
257 XTESTING_REPO_URL=$XTESTING_REPO_URL
258 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
260 node-parameters: true
263 - name: 'onap-healthcheck-medium-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
264 current-parameters: false
265 predefined-parameters: |
266 SLAVE_LABEL=$SLAVE_LABEL
268 PROVISIONER_TYPE=$PROVISIONER_TYPE
269 INSTALLER_TYPE=$INSTALLER_TYPE
270 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
271 DEPLOY_TYPE=$DEPLOY_TYPE
272 ONAP_VERSION=$ONAP_VERSION
274 TEST_TYPE=onap-healthcheck
275 ENGINE_VERSION=$ENGINE_VERSION
276 ENGINE_REFSPEC=$ENGINE_REFSPEC
277 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
278 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
279 XTESTING_REPO_URL=$XTESTING_REPO_URL
280 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
282 node-parameters: true
285 - name: 'onap-healthcheck-full-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
286 current-parameters: false
287 predefined-parameters: |
288 SLAVE_LABEL=$SLAVE_LABEL
290 PROVISIONER_TYPE=$PROVISIONER_TYPE
291 INSTALLER_TYPE=$INSTALLER_TYPE
292 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
293 DEPLOY_TYPE=$DEPLOY_TYPE
294 ONAP_VERSION=$ONAP_VERSION
296 TEST_TYPE=onap-healthcheck
297 ENGINE_VERSION=$ENGINE_VERSION
298 ENGINE_REFSPEC=$ENGINE_REFSPEC
299 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
300 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
301 XTESTING_REPO_URL=$XTESTING_REPO_URL
302 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
304 node-parameters: true
308 name: Promote ONAP (not activated)
311 - name: 'promote-onap-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
312 current-parameters: false
313 predefined-parameters: |
315 DEPLOY_TYPE=$DEPLOY_TYPE
316 INSTALLER_TYPE=$INSTALLER_TYPE
317 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
318 ONAP_VERSION=$ONAP_VERSION
319 ONAP_FLAVOR=$ONAP_FLAVOR
320 ENGINE_VERSION=$ENGINE_VERSION
321 ENGINE_REFSPEC=$ENGINE_REFSPEC
322 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
323 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
324 XTESTING_REPO_URL=$XTESTING_REPO_URL
325 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
327 node-parameters: true
343 !include-raw-escape: ./wait-for-pkg-manager.sh
345 !include-raw: ./delete-heat-stack.sh
348 name: '{onap-other-phases}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
358 - project-parameters:
360 branch: '{nordix-branch}'
361 - nordix-gerrit-parameters
362 - onap-parameter-macro
365 default: '{onap-version}'
366 description: 'ONAP version to deploy'
369 - credentials-binding:
371 credential-id: nordix-jenkins-openrcfile-city-frankfurt-defaultproject
372 variable: OPENRC_FILE
375 timeout: '{build-timeout}'
376 - fix-workspace-permissions
380 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
381 branch: '{nordix-branch}'
387 - description-setter:
388 description: $INSTALLER_TYPE $DEPLOY_SCENARIO
389 - '{onap-other-phases}-macro'
392 name: '{onap-healthcheck-phases}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
402 - project-parameters:
404 branch: '{nordix-branch}'
405 - nordix-gerrit-parameters
406 - onap-parameter-macro
409 default: '{onap-version}'
410 description: 'ONAP version to deploy'
413 default: '{engine-version}'
414 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
417 default: '{engine-refspec}'
418 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
420 name: DEPLOY_SCENARIO_VERSION
421 default: '{deploy-scenario-version}'
422 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
424 name: DEPLOY_SCENARIO_REFSPEC
425 default: '{deploy-scenario-refspec}'
426 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
429 - credentials-binding:
431 credential-id: nordix-jenkins-openrcfile-city-frankfurt-defaultproject
432 variable: OPENRC_FILE
435 timeout: '{build-timeout}'
436 - fix-workspace-permissions
440 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
441 branch: '{nordix-branch}'
447 - description-setter:
448 description: $INSTALLER_TYPE $DEPLOY_SCENARIO
449 - 'onap-healthcheck-macro'
451 # vim: set ts=2 sw=2 expandtab: