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-baremetal'
29 project: 'infra/engine'
36 engine-version: master
37 engine-refspec: 'refs/changes/57/4157/2'
38 deploy-scenario: 'onap-nofeature-noha'
39 deploy-scenario-version: master
40 deploy-scenario-refspec: master
46 engine-version: master
47 engine-refspec: master
48 deploy-scenario: 'onap-nofeature-noha'
49 deploy-scenario-version: master
50 deploy-scenario-refspec: master
55 slave-label: 'onap-baremetal-deploy'
56 pod-name: est-baremetal
57 provisioner-type: bifrost
58 installer-type: kubespray
62 daily-trigger: '#@midnight'
69 test-type: oom-healthcheck
73 onap-healthcheck-phases:
76 test-type: onap-healthcheck
79 test-type: onap-healthcheck
82 test-type: onap-healthcheck
85 test-type: onap-healthcheck
88 test-type: onap-healthcheck
91 - 'onap-online-{onap-flavor}-{distro}-{installer-type}-baremetal-{ci-loop}-{onap-branch}'
92 - '{onap-other-phases}-{distro}-{installer-type}-baremetal-{ci-loop}-{onap-branch}'
93 - '{onap-healthcheck-phases}-{distro}-{installer-type}-baremetal-{ci-loop}-{onap-branch}'
96 name: 'onap-online-{onap-flavor}-{distro}-{installer-type}-baremetal-{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: '{slave-label}'
113 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
117 description: 'Distribution to use for configuring target nodes (networking etc.)'
120 default: '{onap-version}'
121 description: 'ONAP version to deploy'
124 default: '{onap-flavor}'
125 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
128 default: '{engine-version}'
129 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
132 default: '{engine-refspec}'
133 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
135 name: DEPLOY_SCENARIO_VERSION
136 default: '{deploy-scenario-version}'
137 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
139 name: DEPLOY_SCENARIO_REFSPEC
140 default: '{deploy-scenario-refspec}'
141 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
144 default: '{pod-name}'
145 description: 'Development purposes only! Set to none for disabling test results DB reporting.'
150 use-build-blocker: true
152 - 'cloud-infra-verify-engine-.*'
153 - 'cloud-infra-verify-scenario-.*'
154 - 'cloud-infra-periodic-engine-.*'
169 - fix-workspace-permissions
172 - timed: '{daily-trigger}'
176 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
177 branch: '{nordix-branch}'
183 - description-setter:
184 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR | baremetal
186 name: Deploy ONAP using OOM
189 - name: 'onap-deploy-{distro}-{installer-type}-baremetal-{ci-loop}-{onap-branch}'
190 current-parameters: false
191 predefined-parameters: |
193 PROVISIONER_TYPE=$PROVISIONER_TYPE
194 INSTALLER_TYPE=$INSTALLER_TYPE
195 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
196 ONAP_VERSION=$ONAP_VERSION
197 ONAP_FLAVOR=$ONAP_FLAVOR
199 ENGINE_VERSION=$ENGINE_VERSION
200 ENGINE_REFSPEC=$ENGINE_REFSPEC
201 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
202 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
203 XTESTING_REPO_URL=$XTESTING_REPO_URL
204 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
206 node-parameters: true
210 name: K8S and OOM Healthcheck using xtesting
213 - name: 'oom-hc-{distro}-{installer-type}-baremetal-{ci-loop}-{onap-branch}'
214 current-parameters: false
215 predefined-parameters: |
217 PROVISIONER_TYPE=$PROVISIONER_TYPE
218 INSTALLER_TYPE=$INSTALLER_TYPE
219 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
220 ONAP_VERSION=$ONAP_VERSION
222 TEST_TYPE=oom-healthcheck
224 ENGINE_VERSION=$ENGINE_VERSION
225 ENGINE_REFSPEC=$ENGINE_REFSPEC
226 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
227 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
228 XTESTING_REPO_URL=$XTESTING_REPO_URL
229 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
230 node-parameters: true
234 name: ONAP Healthcheck using xtesting
235 execution-type: SEQUENTIALLY
238 - name: 'onap-hc-core-{distro}-{installer-type}-baremetal-{ci-loop}-{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 ONAP_VERSION=$ONAP_VERSION
248 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
256 node-parameters: true
259 - name: 'onap-hc-small-{distro}-{installer-type}-baremetal-{ci-loop}-{onap-branch}'
260 current-parameters: false
261 predefined-parameters: |
262 SLAVE_LABEL=$SLAVE_LABEL
264 PROVISIONER_TYPE=$PROVISIONER_TYPE
265 INSTALLER_TYPE=$INSTALLER_TYPE
266 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
267 ONAP_VERSION=$ONAP_VERSION
269 TEST_TYPE=onap-healthcheck
271 ENGINE_VERSION=$ENGINE_VERSION
272 ENGINE_REFSPEC=$ENGINE_REFSPEC
273 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
274 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
275 XTESTING_REPO_URL=$XTESTING_REPO_URL
276 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
277 node-parameters: true
280 - name: 'onap-hc-medium-{distro}-{installer-type}-baremetal-{ci-loop}-{onap-branch}'
281 current-parameters: false
282 predefined-parameters: |
283 SLAVE_LABEL=$SLAVE_LABEL
285 PROVISIONER_TYPE=$PROVISIONER_TYPE
286 INSTALLER_TYPE=$INSTALLER_TYPE
287 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
288 ONAP_VERSION=$ONAP_VERSION
290 TEST_TYPE=onap-healthcheck
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
298 node-parameters: true
301 - name: 'onap-hc-full-{distro}-{installer-type}-baremetal-{ci-loop}-{onap-branch}'
302 current-parameters: false
303 predefined-parameters: |
304 SLAVE_LABEL=$SLAVE_LABEL
306 PROVISIONER_TYPE=$PROVISIONER_TYPE
307 INSTALLER_TYPE=$INSTALLER_TYPE
308 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
309 ONAP_VERSION=$ONAP_VERSION
311 TEST_TYPE=onap-healthcheck
313 ENGINE_VERSION=$ENGINE_VERSION
314 ENGINE_REFSPEC=$ENGINE_REFSPEC
315 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
316 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
317 XTESTING_REPO_URL=$XTESTING_REPO_URL
318 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
319 node-parameters: true
322 - name: 'onap-hc-healthdist-{distro}-{installer-type}-baremetal-{ci-loop}-{onap-branch}'
323 current-parameters: false
324 predefined-parameters: |
325 SLAVE_LABEL=$SLAVE_LABEL
327 PROVISIONER_TYPE=$PROVISIONER_TYPE
328 INSTALLER_TYPE=$INSTALLER_TYPE
329 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
330 ONAP_VERSION=$ONAP_VERSION
332 TEST_TYPE=onap-healthcheck
334 ENGINE_VERSION=$ENGINE_VERSION
335 ENGINE_REFSPEC=$ENGINE_REFSPEC
336 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
337 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
338 XTESTING_REPO_URL=$XTESTING_REPO_URL
339 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
340 node-parameters: true
344 # name: Promote ONAP (not activated)
347 # - name: 'promote-onap-{distro}-{installer-type}-baremetal-{ci-loop}-{onap-branch}'
348 # current-parameters: false
349 # predefined-parameters: |
350 # SLAVE_LABEL=$SLAVE_LABEL
352 # PROVISIONER_TYPE=$PROVISIONER_TYPE
353 # INSTALLER_TYPE=$INSTALLER_TYPE
354 # DEPLOY_SCENARIO=$DEPLOY_SCENARIO
355 # ONAP_VERSION=$ONAP_VERSION
357 # TEST_TYPE=onap-healthcheck
359 # ENGINE_VERSION=$ENGINE_VERSION
360 # ENGINE_REFSPEC=$ENGINE_REFSPEC
361 # DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
362 # DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
363 # XTESTING_REPO_URL=$XTESTING_REPO_URL
364 # ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
365 # node-parameters: true
366 # kill-phase-on: NEVER
367 # abort-all-job: false
370 name: '{onap-other-phases}-{distro}-{installer-type}-baremetal-{ci-loop}-{onap-branch}'
380 - project-parameters:
382 branch: '{nordix-branch}'
383 - nordix-gerrit-parameters
384 - onap-parameter-macro
387 default: 'xerces-jumphost-onap-ubuntu1804'
388 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
390 name: OPENSTACK_CLOUD_PROVIDER
392 description: 'Name of the cloud where this job is run'
395 default: 'ubuntu1804'
396 description: 'Distribution to use for configuring target nodes (networking etc.)'
399 default: '{onap-flavor}'
400 description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
403 default: '{onap-version}'
404 description: 'ONAP version to deploy'
406 name: HEAT_ENVIRONMENT_FILENAME
407 default: "heat-environment-full.yaml"
408 description: 'Type of the deployment'
410 name: HEAT_ENVIRONMENT_FILE
411 default: "file:///opt/engine/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/$HEAT_ENVIRONMENT_FILENAME"
412 description: 'Type of the deployment'
417 timeout: '{build-timeout}'
418 - fix-workspace-permissions
419 - credentials-binding:
420 - username-password-separated:
421 credential-id: 'nordix-cicd-arm-credentials'
422 username: NORDIX_ARM_USERNAME
423 password: NORDIX_ARM_TOKEN
424 - username-password-separated:
425 credential-id: 'nordix-cicd-harbor-credentials'
426 username: NORDIX_HARBOR_USERNAME
427 password: NORDIX_HARBOR_PASSWORD
431 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
432 branch: '{nordix-branch}'
438 - description-setter:
439 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR | baremetal
440 - '{onap-other-phases}-baremetal-macro'
443 name: '{onap-healthcheck-phases}-{distro}-{installer-type}-baremetal-{ci-loop}-{onap-branch}'
453 - project-parameters:
455 branch: '{nordix-branch}'
456 - nordix-gerrit-parameters
457 - onap-parameter-macro
460 default: 'xerces-jumphost-onap-ubuntu1804'
461 description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
463 name: OPENSTACK_CLOUD_PROVIDER
465 description: 'Name of the cloud where this job is run'
468 default: 'ubuntu1804'
469 description: 'Distribution to use for configuring target nodes (networking etc.)'
472 default: '{onap-version}'
473 description: 'ONAP version to deploy'
475 name: HEAT_ENVIRONMENT_FILENAME
476 default: "heat-environment-full.yaml"
477 description: 'Type of the deployment'
479 name: HEAT_ENVIRONMENT_FILE
480 default: "file:///opt/engine/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/$HEAT_ENVIRONMENT_FILENAME"
481 description: 'Type of the deployment'
484 default: '{engine-version}'
485 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
488 default: '{engine-refspec}'
489 description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
491 name: DEPLOY_SCENARIO_VERSION
492 default: '{deploy-scenario-version}'
493 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
495 name: DEPLOY_SCENARIO_REFSPEC
496 default: '{deploy-scenario-refspec}'
497 description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
500 default: '{pod-name}'
501 description: 'Development purposes only! Set to none for disabling test results DB reporting.'
506 timeout: '{build-timeout}'
507 - fix-workspace-permissions
511 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
512 branch: '{nordix-branch}'
518 - description-setter:
519 description: $DEPLOY_SCENARIO | $ONAP_FLAVOR | baremetal
520 - 'onap-healthcheck-baremetal-macro'
522 # vim: set ts=2 sw=2 expandtab: