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
163 name: Deploy ONAP using OOM
164 condition: SUCCESSFUL
166 - name: 'onap-deploy-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
167 current-parameters: false
168 predefined-parameters: |
170 DEPLOY_TYPE=$DEPLOY_TYPE
171 PROVISIONER_TYPE=$PROVISIONER_TYPE
172 INSTALLER_TYPE=$INSTALLER_TYPE
173 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
174 ONAP_VERSION=$ONAP_VERSION
175 ONAP_FLAVOR=$ONAP_FLAVOR
176 ENGINE_VERSION=$ENGINE_VERSION
177 ENGINE_REFSPEC=$ENGINE_REFSPEC
178 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
179 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
180 XTESTING_REPO_URL=$XTESTING_REPO_URL
181 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
184 node-parameters: true
185 kill-phase-on: FAILURE
188 name: K8S and OOM Healthcheck using xtesting
191 - name: 'oom-healthcheck-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
192 current-parameters: false
193 predefined-parameters: |
195 DEPLOY_TYPE=$DEPLOY_TYPE
196 PROVISIONER_TYPE=$PROVISIONER_TYPE
197 INSTALLER_TYPE=$INSTALLER_TYPE
198 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
199 ONAP_VERSION=$ONAP_VERSION
201 TEST_TYPE=oom-healthcheck
202 ENGINE_VERSION=$ENGINE_VERSION
203 ENGINE_REFSPEC=$ENGINE_REFSPEC
204 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
205 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
206 XTESTING_REPO_URL=$XTESTING_REPO_URL
207 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
209 node-parameters: true
213 name: ONAP Healthcheck using xtesting
216 - name: 'onap-healthcheck-core-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
217 current-parameters: false
218 predefined-parameters: |
219 SLAVE_LABEL=$SLAVE_LABEL
221 PROVISIONER_TYPE=$PROVISIONER_TYPE
222 INSTALLER_TYPE=$INSTALLER_TYPE
223 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
224 DEPLOY_TYPE=$DEPLOY_TYPE
225 ONAP_VERSION=$ONAP_VERSION
227 TEST_TYPE=onap-healthcheck
228 ENGINE_VERSION=$ENGINE_VERSION
229 ENGINE_REFSPEC=$ENGINE_REFSPEC
230 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
231 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
232 XTESTING_REPO_URL=$XTESTING_REPO_URL
233 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
235 node-parameters: true
238 - name: 'onap-healthcheck-small-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
239 current-parameters: false
240 predefined-parameters: |
241 SLAVE_LABEL=$SLAVE_LABEL
243 PROVISIONER_TYPE=$PROVISIONER_TYPE
244 INSTALLER_TYPE=$INSTALLER_TYPE
245 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
246 DEPLOY_TYPE=$DEPLOY_TYPE
247 ONAP_VERSION=$ONAP_VERSION
249 TEST_TYPE=onap-healthcheck
250 ENGINE_VERSION=$ENGINE_VERSION
251 ENGINE_REFSPEC=$ENGINE_REFSPEC
252 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
253 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
254 XTESTING_REPO_URL=$XTESTING_REPO_URL
255 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
257 node-parameters: true
260 - name: 'onap-healthcheck-medium-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
261 current-parameters: false
262 predefined-parameters: |
263 SLAVE_LABEL=$SLAVE_LABEL
265 PROVISIONER_TYPE=$PROVISIONER_TYPE
266 INSTALLER_TYPE=$INSTALLER_TYPE
267 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
268 DEPLOY_TYPE=$DEPLOY_TYPE
269 ONAP_VERSION=$ONAP_VERSION
271 TEST_TYPE=onap-healthcheck
272 ENGINE_VERSION=$ENGINE_VERSION
273 ENGINE_REFSPEC=$ENGINE_REFSPEC
274 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
275 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
276 XTESTING_REPO_URL=$XTESTING_REPO_URL
277 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
279 node-parameters: true
282 - name: 'onap-healthcheck-full-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
283 current-parameters: false
284 predefined-parameters: |
285 SLAVE_LABEL=$SLAVE_LABEL
287 PROVISIONER_TYPE=$PROVISIONER_TYPE
288 INSTALLER_TYPE=$INSTALLER_TYPE
289 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
290 DEPLOY_TYPE=$DEPLOY_TYPE
291 ONAP_VERSION=$ONAP_VERSION
293 TEST_TYPE=onap-healthcheck
294 ENGINE_VERSION=$ENGINE_VERSION
295 ENGINE_REFSPEC=$ENGINE_REFSPEC
296 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
297 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
298 XTESTING_REPO_URL=$XTESTING_REPO_URL
299 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
301 node-parameters: true
305 name: Promote ONAP (not activated)
308 - name: 'promote-onap-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
309 current-parameters: false
310 predefined-parameters: |
312 DEPLOY_TYPE=$DEPLOY_TYPE
313 INSTALLER_TYPE=$INSTALLER_TYPE
314 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
315 ONAP_VERSION=$ONAP_VERSION
316 ONAP_FLAVOR=$ONAP_FLAVOR
317 ENGINE_VERSION=$ENGINE_VERSION
318 ENGINE_REFSPEC=$ENGINE_REFSPEC
319 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
320 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
321 XTESTING_REPO_URL=$XTESTING_REPO_URL
322 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
324 node-parameters: true
340 !include-raw-escape: ./wait-for-pkg-manager.sh
342 !include-raw: ./delete-heat-stack.sh
345 name: '{onap-other-phases}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
355 - project-parameters:
357 branch: '{nordix-branch}'
358 - nordix-gerrit-parameters
359 - onap-parameter-macro
362 default: '{onap-version}'
363 description: 'ONAP version to deploy'
366 - credentials-binding:
368 credential-id: nordix-jenkins-openrcfile-city-frankfurt-defaultproject
369 variable: OPENRC_FILE
372 timeout: '{build-timeout}'
373 - fix-workspace-permissions
377 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
378 branch: '{nordix-branch}'
384 - description-setter:
385 description: $INSTALLER_TYPE $DEPLOY_SCENARIO
386 - '{onap-other-phases}-macro'
389 name: '{onap-healthcheck-phases}-periodic-{distro}-{installer-type}-{type}-{onap-branch}'
399 - project-parameters:
401 branch: '{nordix-branch}'
402 - nordix-gerrit-parameters
403 - onap-parameter-macro
406 default: '{onap-version}'
407 description: 'ONAP version to deploy'
410 default: '{engine-version}'
411 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
414 default: '{engine-refspec}'
415 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
417 name: DEPLOY_SCENARIO_VERSION
418 default: '{deploy-scenario-version}'
419 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
421 name: DEPLOY_SCENARIO_REFSPEC
422 default: '{deploy-scenario-refspec}'
423 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
426 - credentials-binding:
428 credential-id: nordix-jenkins-openrcfile-city-frankfurt-defaultproject
429 variable: OPENRC_FILE
432 timeout: '{build-timeout}'
433 - fix-workspace-permissions
437 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
438 branch: '{nordix-branch}'
444 - description-setter:
445 description: $INSTALLER_TYPE $DEPLOY_SCENARIO
446 - 'onap-healthcheck-macro'
448 # vim: set ts=2 sw=2 expandtab: