7a50292a0a9747f05bee50da5b286d1f7687bbf0
[infra/cicd.git] / jjb / cloud-infra / cloud-infra-periodic-onap-baremetal.yaml
1 ---
2 #
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
9 #
10 #      http://www.apache.org/licenses/LICENSE-2.0
11 #
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.
17 #
18 # SPDX-License-Identifier: Apache-2.0
19 # ============LICENSE_END=========================================================
20
21 #--------------------------------------------------------------------------------------
22 # The jobs declared in this JJB configuration file are used for deploying and testing
23 # ONAP scenario onap-nofeature-noha.
24 #--------------------------------------------------------------------------------------
25
26 - project:
27     name: 'cloud-infra-periodic-onap-baremetal'
28
29     project: 'infra/engine'
30
31     onap-branch:
32       - 'elalto':
33           nordix-branch: master
34           onap-version: elalto
35           onap-flavor: full
36           engine-version: master
37           engine-refspec: 'refs/changes/57/4157/12'
38           deploy-scenario: 'onap-nofeature-noha'
39           deploy-scenario-version: master
40           deploy-scenario-refspec: master
41           disabled: false
42       - 'master':
43           nordix-branch: master
44           onap-version: master
45           onap-flavor: full
46           engine-version: master
47           engine-refspec: 'refs/changes/57/4157/12'
48           deploy-scenario: 'onap-nofeature-noha'
49           deploy-scenario-version: master
50           deploy-scenario-refspec: master
51           disabled: false
52
53     distro:
54       - ubuntu1804:
55           slave-label: 'onap-baremetal-deploy'
56           pod-name: est-baremetal
57           provisioner-type: bifrost
58           installer-type: kubespray
59
60     ci-loop:
61       - daily:
62           daily-trigger: '#@midnight'
63
64     onap-other-phases:
65       - onap-deploy:
66           build-timeout: 420
67       - oom-hc:
68           build-timeout: 30
69           test-type: oom-healthcheck
70 #      - promote-onap:
71 #          build-timeout: 240
72
73     onap-healthcheck-phases:
74       - onap-hc-core:
75           build-timeout: 30
76           test-type: onap-healthcheck
77       - onap-hc-small:
78           build-timeout: 30
79           test-type: onap-healthcheck
80       - onap-hc-medium:
81           build-timeout: 30
82           test-type: onap-healthcheck
83       - onap-hc-full:
84           build-timeout: 30
85           test-type: onap-healthcheck
86       - onap-hc-healthdist:
87           build-timeout: 30
88           test-type: onap-healthcheck
89
90     jobs:
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}'
94
95 - job-template:
96     name: 'onap-online-{onap-flavor}-{distro}-{installer-type}-baremetal-{ci-loop}-{onap-branch}'
97
98     project-type: multijob
99
100     disabled: '{obj:disabled}'
101
102     concurrent: false
103
104     parameters:
105       - project-parameters:
106           project: '{project}'
107           branch: '{nordix-branch}'
108       - nordix-gerrit-parameters
109       - onap-baremetal-parameter-macro-legacy
110       - label:
111           name: SLAVE_LABEL
112           default: '{slave-label}'
113           description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
114       - string:
115           name: DISTRO
116           default: '{distro}'
117           description: 'Distribution to use for configuring target nodes (networking etc.)'
118       - string:
119           name: ONAP_VERSION
120           default: '{onap-version}'
121           description: 'ONAP version to deploy'
122       - string:
123           name: ONAP_FLAVOR
124           default: '{onap-flavor}'
125           description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
126       - string:
127           name: ENGINE_VERSION
128           default: '{engine-version}'
129           description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
130       - string:
131           name: ENGINE_REFSPEC
132           default: '{engine-refspec}'
133           description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
134       - string:
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.'
138       - string:
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.'
142       - string:
143           name: POD_NAME
144           default: '{pod-name}'
145           description: 'Development purposes only! Set to none for disabling test results DB reporting.'
146
147     properties:
148       - logrotate
149       - build-blocker:
150           use-build-blocker: true
151           blocking-jobs:
152             - 'cloud-infra-verify-engine-.*'
153             - 'cloud-infra-verify-scenario-.*'
154             - 'cloud-infra-periodic-engine-.*'
155             - 'onap-.*'
156             - 'k8-.*'
157             - 'os-.*'
158             - 'nolabs-.*'
159           block-level: 'NODE'
160       - throttle:
161           max-per-node: 1
162           max-total: 1
163           option: project
164
165     wrappers:
166       - mask-passwords
167       - build-timeout:
168           timeout: 630
169       - fix-workspace-permissions
170
171     triggers:
172       - timed: '{daily-trigger}'
173
174     scm:
175       - git-scm:
176           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
177           branch: '{nordix-branch}'
178           refspec: ''
179           wipe_workspace: true
180           clean_before: false
181
182     builders:
183       - description-setter:
184           description: $DEPLOY_SCENARIO | $ONAP_FLAVOR | baremetal
185       - multijob:
186           name: Deploy ONAP using OOM
187           condition: ALWAYS
188           projects:
189             - name: 'onap-deploy-{distro}-{installer-type}-baremetal-{ci-loop}-{onap-branch}'
190               current-parameters: false
191               predefined-parameters: |
192                 DISTRO=$DISTRO
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
198                 POD_NAME=$POD_NAME
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
205               git-revision: true
206               node-parameters: true
207               kill-phase-on: NEVER
208               abort-all-job: false
209       - multijob:
210           name: K8S and OOM Healthcheck using xtesting
211           condition: ALWAYS
212           projects:
213             - name: 'oom-hc-{distro}-{installer-type}-baremetal-{ci-loop}-{onap-branch}'
214               current-parameters: false
215               predefined-parameters: |
216                 DISTRO=$DISTRO
217                 PROVISIONER_TYPE=$PROVISIONER_TYPE
218                 INSTALLER_TYPE=$INSTALLER_TYPE
219                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
220                 ONAP_VERSION=$ONAP_VERSION
221                 ONAP_FLAVOR=full
222                 TEST_TYPE=oom-healthcheck
223                 POD_NAME=$POD_NAME
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
231               kill-phase-on: NEVER
232               abort-all-job: false
233       - multijob:
234           name: ONAP Healthcheck using xtesting
235           execution-type: SEQUENTIALLY
236           condition: ALWAYS
237           projects:
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
242                 DISTRO=$DISTRO
243                 PROVISIONER_TYPE=$PROVISIONER_TYPE
244                 INSTALLER_TYPE=$INSTALLER_TYPE
245                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
246                 ONAP_VERSION=$ONAP_VERSION
247                 ONAP_FLAVOR=core
248                 TEST_TYPE=onap-healthcheck
249                 POD_NAME=$POD_NAME
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
257               kill-phase-on: NEVER
258               abort-all-job: false
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
263                 DISTRO=$DISTRO
264                 PROVISIONER_TYPE=$PROVISIONER_TYPE
265                 INSTALLER_TYPE=$INSTALLER_TYPE
266                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
267                 ONAP_VERSION=$ONAP_VERSION
268                 ONAP_FLAVOR=small
269                 TEST_TYPE=onap-healthcheck
270                 POD_NAME=$POD_NAME
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
278               kill-phase-on: NEVER
279               abort-all-job: false
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
284                 DISTRO=$DISTRO
285                 PROVISIONER_TYPE=$PROVISIONER_TYPE
286                 INSTALLER_TYPE=$INSTALLER_TYPE
287                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
288                 ONAP_VERSION=$ONAP_VERSION
289                 ONAP_FLAVOR=medium
290                 TEST_TYPE=onap-healthcheck
291                 POD_NAME=$POD_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
298               node-parameters: true
299               kill-phase-on: NEVER
300               abort-all-job: false
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
305                 DISTRO=$DISTRO
306                 PROVISIONER_TYPE=$PROVISIONER_TYPE
307                 INSTALLER_TYPE=$INSTALLER_TYPE
308                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
309                 ONAP_VERSION=$ONAP_VERSION
310                 ONAP_FLAVOR=full
311                 TEST_TYPE=onap-healthcheck
312                 POD_NAME=$POD_NAME
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
320               kill-phase-on: NEVER
321               abort-all-job: false
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
326                 DISTRO=$DISTRO
327                 PROVISIONER_TYPE=$PROVISIONER_TYPE
328                 INSTALLER_TYPE=$INSTALLER_TYPE
329                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
330                 ONAP_VERSION=$ONAP_VERSION
331                 ONAP_FLAVOR=healthdist
332                 TEST_TYPE=onap-healthcheck
333                 POD_NAME=$POD_NAME
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
341               kill-phase-on: NEVER
342               abort-all-job: false
343 #      - multijob:
344 #          name: Promote ONAP (not activated)
345 #          condition: ALWAYS
346 #          projects:
347 #            - name: 'promote-onap-{distro}-{installer-type}-baremetal-{ci-loop}-{onap-branch}'
348 #              current-parameters: false
349 #              predefined-parameters: |
350 #                SLAVE_LABEL=$SLAVE_LABEL
351 #                DISTRO=$DISTRO
352 #                PROVISIONER_TYPE=$PROVISIONER_TYPE
353 #                INSTALLER_TYPE=$INSTALLER_TYPE
354 #                DEPLOY_SCENARIO=$DEPLOY_SCENARIO
355 #                ONAP_VERSION=$ONAP_VERSION
356 #                ONAP_FLAVOR=core
357 #                TEST_TYPE=onap-healthcheck
358 #                POD_NAME=$POD_NAME
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
368
369 - job-template:
370     name: '{onap-other-phases}-{distro}-{installer-type}-baremetal-{ci-loop}-{onap-branch}'
371
372     disabled: false
373
374     concurrent: true
375
376     properties:
377       - logrotate
378
379     parameters:
380       - project-parameters:
381           project: '{project}'
382           branch: '{nordix-branch}'
383       - nordix-gerrit-parameters
384       - onap-baremetal-parameter-macro-legacy
385       - label:
386           name: SLAVE_LABEL
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'
389       - string:
390           name: DISTRO
391           default: 'ubuntu1804'
392           description: 'Distribution to use for configuring target nodes (networking etc.)'
393       - string:
394           name: ONAP_FLAVOR
395           default: '{onap-flavor}'
396           description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
397       - string:
398           name: ONAP_VERSION
399           default: '{onap-version}'
400           description: 'ONAP version to deploy'
401
402     wrappers:
403       - mask-passwords
404       - build-timeout:
405           timeout: '{build-timeout}'
406       - fix-workspace-permissions
407       - credentials-binding:
408           - username-password-separated:
409               credential-id: 'nordix-cicd-arm-credentials'
410               username: NORDIX_ARM_USERNAME
411               password: NORDIX_ARM_TOKEN
412           - username-password-separated:
413               credential-id: 'nordix-cicd-harbor-credentials'
414               username: NORDIX_HARBOR_USERNAME
415               password: NORDIX_HARBOR_PASSWORD
416
417     scm:
418       - git-scm:
419           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
420           branch: '{nordix-branch}'
421           refspec: ''
422           wipe_workspace: true
423           clean_before: false
424
425     builders:
426       - description-setter:
427           description: $DEPLOY_SCENARIO | $ONAP_FLAVOR | baremetal
428       - '{onap-other-phases}-baremetal-macro-legacy'
429
430 - job-template:
431     name: '{onap-healthcheck-phases}-{distro}-{installer-type}-baremetal-{ci-loop}-{onap-branch}'
432
433     disabled: false
434
435     concurrent: true
436
437     properties:
438       - logrotate
439
440     parameters:
441       - project-parameters:
442           project: '{project}'
443           branch: '{nordix-branch}'
444       - nordix-gerrit-parameters
445       - onap-baremetal-parameter-macro-legacy
446       - label:
447           name: SLAVE_LABEL
448           default: 'xerces-jumphost-onap-ubuntu1804'
449           description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
450       - string:
451           name: DISTRO
452           default: 'ubuntu1804'
453           description: 'Distribution to use for configuring target nodes (networking etc.)'
454       - string:
455           name: ONAP_VERSION
456           default: '{onap-version}'
457           description: 'ONAP version to deploy'
458       - string:
459           name: ENGINE_VERSION
460           default: '{engine-version}'
461           description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
462       - string:
463           name: ENGINE_REFSPEC
464           default: '{engine-refspec}'
465           description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
466       - string:
467           name: DEPLOY_SCENARIO_VERSION
468           default: '{deploy-scenario-version}'
469           description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
470       - string:
471           name: DEPLOY_SCENARIO_REFSPEC
472           default: '{deploy-scenario-refspec}'
473           description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
474       - string:
475           name: POD_NAME
476           default: '{pod-name}'
477           description: 'Development purposes only! Set to none for disabling test results DB reporting.'
478
479     wrappers:
480       - mask-passwords
481       - build-timeout:
482           timeout: '{build-timeout}'
483       - fix-workspace-permissions
484
485     scm:
486       - git-scm:
487           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
488           branch: '{nordix-branch}'
489           refspec: ''
490           wipe_workspace: true
491           clean_before: false
492
493     builders:
494       - description-setter:
495           description: $DEPLOY_SCENARIO | $ONAP_FLAVOR | baremetal
496       - 'onap-healthcheck-baremetal-macro-legacy'
497
498 # vim: set ts=2 sw=2 expandtab: