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
62 provisioner-type: heat
63 installer-type: kubespray
64 slave-label: 'jumphost-onap-ubuntu1804'
71 test-type: oom-healthcheck
75 onap-healthcheck-phases:
76 - onap-healthcheck-core:
78 test-type: onap-healthcheck
79 - onap-healthcheck-small:
81 test-type: onap-healthcheck
82 - onap-healthcheck-medium:
84 test-type: onap-healthcheck
85 - onap-healthcheck-full:
87 test-type: onap-healthcheck
90 - '{deploy-scenario}-{onap-flavor}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
91 - '{onap-other-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
92 - '{onap-healthcheck-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
95 name: '{deploy-scenario}-{onap-flavor}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
97 project-type: multijob
99 disabled: '{obj:disabled}'
104 - project-parameters:
106 branch: '{nordix-branch}'
107 - nordix-gerrit-parameters
108 - onap-parameter-macro
111 default: '{onap-version}'
112 description: 'ONAP version to deploy'
115 default: '{onap-flavor}'
116 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
119 default: 'nordix-cicd-onap-{onap-branch}-{onap-flavor}'
122 default: '{engine-version}'
123 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
126 default: '{engine-refspec}'
127 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
129 name: DEPLOY_SCENARIO_VERSION
130 default: '{deploy-scenario-version}'
131 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
133 name: DEPLOY_SCENARIO_REFSPEC
134 default: '{deploy-scenario-refspec}'
135 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
140 use-build-blocker: true
142 - 'cloud-infra-periodic-engine-.*'
152 - credentials-binding:
154 credential-id: nordix-jenkins-openrcfile-city-frankfurt-defaultproject
155 variable: OPENRC_FILE
159 - fix-workspace-permissions
165 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
166 branch: '{nordix-branch}'
172 - description-setter:
173 description: $INSTALLER_TYPE | $DEPLOY_SCENARIO
176 cp $OPENRC_FILE /tmp/openrc
178 name: Deploy ONAP using OOM
181 - name: 'onap-deploy-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
182 current-parameters: false
183 predefined-parameters: |
185 DEPLOY_TYPE=$DEPLOY_TYPE
186 PROVISIONER_TYPE=$PROVISIONER_TYPE
187 INSTALLER_TYPE=$INSTALLER_TYPE
188 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
189 ONAP_VERSION=$ONAP_VERSION
190 ONAP_FLAVOR=$ONAP_FLAVOR
191 STACK_NAME=$STACK_NAME
192 ENGINE_VERSION=$ENGINE_VERSION
193 ENGINE_REFSPEC=$ENGINE_REFSPEC
194 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
195 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
196 XTESTING_REPO_URL=$XTESTING_REPO_URL
197 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
200 node-parameters: true
204 name: K8S and OOM Healthcheck using xtesting
207 - name: 'oom-healthcheck-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
208 current-parameters: false
209 predefined-parameters: |
211 DEPLOY_TYPE=$DEPLOY_TYPE
212 PROVISIONER_TYPE=$PROVISIONER_TYPE
213 INSTALLER_TYPE=$INSTALLER_TYPE
214 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
215 ONAP_VERSION=$ONAP_VERSION
217 TEST_TYPE=oom-healthcheck
218 STACK_NAME=$STACK_NAME
219 ENGINE_VERSION=$ENGINE_VERSION
220 ENGINE_REFSPEC=$ENGINE_REFSPEC
221 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
222 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
223 XTESTING_REPO_URL=$XTESTING_REPO_URL
224 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
226 node-parameters: true
230 name: ONAP Healthcheck using xtesting
233 - name: 'onap-healthcheck-core-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
234 current-parameters: false
235 predefined-parameters: |
236 SLAVE_LABEL=$SLAVE_LABEL
238 PROVISIONER_TYPE=$PROVISIONER_TYPE
239 INSTALLER_TYPE=$INSTALLER_TYPE
240 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
241 DEPLOY_TYPE=$DEPLOY_TYPE
242 ONAP_VERSION=$ONAP_VERSION
244 TEST_TYPE=onap-healthcheck
245 STACK_NAME=$STACK_NAME
246 ENGINE_VERSION=$ENGINE_VERSION
247 ENGINE_REFSPEC=$ENGINE_REFSPEC
248 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
249 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
250 XTESTING_REPO_URL=$XTESTING_REPO_URL
251 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
253 node-parameters: true
256 - name: 'onap-healthcheck-small-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
257 current-parameters: false
258 predefined-parameters: |
259 SLAVE_LABEL=$SLAVE_LABEL
261 PROVISIONER_TYPE=$PROVISIONER_TYPE
262 INSTALLER_TYPE=$INSTALLER_TYPE
263 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
264 DEPLOY_TYPE=$DEPLOY_TYPE
265 ONAP_VERSION=$ONAP_VERSION
267 TEST_TYPE=onap-healthcheck
268 STACK_NAME=$STACK_NAME
269 ENGINE_VERSION=$ENGINE_VERSION
270 ENGINE_REFSPEC=$ENGINE_REFSPEC
271 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
272 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
273 XTESTING_REPO_URL=$XTESTING_REPO_URL
274 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
276 node-parameters: true
279 - name: 'onap-healthcheck-medium-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
280 current-parameters: false
281 predefined-parameters: |
282 SLAVE_LABEL=$SLAVE_LABEL
284 PROVISIONER_TYPE=$PROVISIONER_TYPE
285 INSTALLER_TYPE=$INSTALLER_TYPE
286 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
287 DEPLOY_TYPE=$DEPLOY_TYPE
288 ONAP_VERSION=$ONAP_VERSION
290 TEST_TYPE=onap-healthcheck
291 STACK_NAME=$STACK_NAME
292 ENGINE_VERSION=$ENGINE_VERSION
293 ENGINE_REFSPEC=$ENGINE_REFSPEC
294 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
295 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
296 XTESTING_REPO_URL=$XTESTING_REPO_URL
297 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
299 node-parameters: true
302 - name: 'onap-healthcheck-full-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
303 current-parameters: false
304 predefined-parameters: |
305 SLAVE_LABEL=$SLAVE_LABEL
307 PROVISIONER_TYPE=$PROVISIONER_TYPE
308 INSTALLER_TYPE=$INSTALLER_TYPE
309 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
310 DEPLOY_TYPE=$DEPLOY_TYPE
311 ONAP_VERSION=$ONAP_VERSION
313 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
326 name: Promote ONAP (not activated)
329 - name: 'promote-onap-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
330 current-parameters: false
331 predefined-parameters: |
333 DEPLOY_TYPE=$DEPLOY_TYPE
334 INSTALLER_TYPE=$INSTALLER_TYPE
335 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
336 ONAP_VERSION=$ONAP_VERSION
337 ONAP_FLAVOR=$ONAP_FLAVOR
338 ENGINE_VERSION=$ENGINE_VERSION
339 ENGINE_REFSPEC=$ENGINE_REFSPEC
340 STACK_NAME=$STACK_NAME
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
362 !include-raw-escape: ./wait-for-pkg-manager.sh
364 !include-raw: ./delete-heat-stack.sh
367 name: '{onap-other-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
377 - project-parameters:
379 branch: '{nordix-branch}'
380 - nordix-gerrit-parameters
381 - onap-parameter-macro
384 default: '{onap-flavor}'
385 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
388 default: '{onap-version}'
389 description: 'ONAP version to deploy'
392 - credentials-binding:
394 credential-id: nordix-jenkins-openrcfile-city-frankfurt-defaultproject
395 variable: OPENRC_FILE
398 timeout: '{build-timeout}'
399 - fix-workspace-permissions
403 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
404 branch: '{nordix-branch}'
410 - description-setter:
411 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
412 - '{onap-other-phases}-macro'
415 name: '{onap-healthcheck-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
425 - project-parameters:
427 branch: '{nordix-branch}'
428 - nordix-gerrit-parameters
429 - onap-parameter-macro
432 default: '{onap-version}'
433 description: 'ONAP version to deploy'
436 default: '{engine-version}'
437 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
440 default: '{engine-refspec}'
441 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
443 name: DEPLOY_SCENARIO_VERSION
444 default: '{deploy-scenario-version}'
445 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
447 name: DEPLOY_SCENARIO_REFSPEC
448 default: '{deploy-scenario-refspec}'
449 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
452 - credentials-binding:
454 credential-id: nordix-jenkins-openrcfile-city-frankfurt-defaultproject
455 variable: OPENRC_FILE
458 timeout: '{build-timeout}'
459 - fix-workspace-permissions
463 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
464 branch: '{nordix-branch}'
470 - description-setter:
471 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
472 - 'onap-healthcheck-macro'
474 # vim: set ts=2 sw=2 expandtab: