Merge "Airship remove tests for nordix repos and change defaults"
[infra/cicd.git] / jjb / cloud-infra / cloud-infra-periodic-onap.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'
28
29     project: 'infra/engine'
30
31     cloud:
32       - city:
33           slave-label: 'city-jumphost-ubuntu1804'
34           openrc-credentials-file: 'est-jenkins-openrcfile-city-frankfurt-onap'
35           daily-trigger: '@midnight'
36       - xerces:
37           slave-label: 'xerces-jumphost-ubuntu1804'
38           openrc-credentials-file: 'est-estinfra-openrcfile-xerces-lund-onap'
39           daily-trigger: '#@midnight'
40
41     onap-branch:
42       - 'elalto':
43           nordix-branch: master
44           onap-version: elalto
45           onap-flavor: full
46           engine-version: master
47           engine-refspec: master
48           deploy-scenario: 'onap-nofeature-noha'
49           deploy-scenario-version: master
50           deploy-scenario-refspec: master
51           disabled: false
52           delete-stack: 'yes'
53       - 'master':
54           nordix-branch: master
55           onap-version: master
56           onap-flavor: full
57           engine-version: master
58           engine-refspec: master
59           deploy-scenario: 'onap-nofeature-noha'
60           deploy-scenario-version: master
61           deploy-scenario-refspec: master
62           disabled: false
63           delete-stack: 'yes'
64
65     distro:
66       - ubuntu1804
67
68     ci-loop:
69       - daily
70
71     type:
72       - cloud:
73           pod-name: est-cloud
74           provisioner-type: heat
75           installer-type: kubespray
76
77     onap-other-phases:
78       - onap-deploy:
79           build-timeout: 210
80       - oom-hc:
81           build-timeout: 30
82           test-type: oom-healthcheck
83       - promote-onap:
84           build-timeout: 240
85
86     onap-healthcheck-phases:
87       - onap-hc-core:
88           build-timeout: 30
89           test-type: onap-healthcheck
90       - onap-hc-small:
91           build-timeout: 30
92           test-type: onap-healthcheck
93       - onap-hc-medium:
94           build-timeout: 30
95           test-type: onap-healthcheck
96       - onap-hc-full:
97           build-timeout: 30
98           test-type: onap-healthcheck
99       - onap-hc-healthdist:
100           build-timeout: 30
101           test-type: onap-healthcheck
102
103     jobs:
104       - 'onap-online-{onap-flavor}-{distro}-{installer-type}-{cloud}-{type}-{ci-loop}-{onap-branch}'
105       - '{onap-other-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
106       - '{onap-healthcheck-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
107
108 - job-template:
109     name: 'onap-online-{onap-flavor}-{distro}-{installer-type}-{cloud}-{type}-{ci-loop}-{onap-branch}'
110
111     project-type: multijob
112
113     disabled: '{obj:disabled}'
114
115     concurrent: false
116
117     parameters:
118       - project-parameters:
119           project: '{project}'
120           branch: '{nordix-branch}'
121       - nordix-gerrit-parameters
122       - onap-parameter-macro
123       - label:
124           name: SLAVE_LABEL
125           default: '{slave-label}'
126           description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
127       - string:
128           name: DISTRO
129           default: '{distro}'
130           description: 'Distribution to use for configuring target nodes (networking etc.)'
131       - string:
132           name: OPENSTACK_CLOUD_PROVIDER
133           default: '{cloud}'
134           description: 'Name of the cloud where this job is run'
135       - string:
136           name: ONAP_VERSION
137           default: '{onap-version}'
138           description: 'ONAP version to deploy'
139       - string:
140           name: ONAP_FLAVOR
141           default: '{onap-flavor}'
142           description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
143       - string:
144           name: STACK_NAME
145           default: 'nordix-cicd-{deploy-scenario}-{onap-branch}-{onap-flavor}'
146       - string:
147           name: KEYPAIR_NAME
148           default: 'keypair-nordix-cicd-{deploy-scenario}-{onap-branch}-{onap-flavor}'
149       - string:
150           name: HEAT_ENVIRONMENT_FILENAME
151           default: "heat-environment-{cloud}-{distro}-full.yaml"
152           description: 'Type of the deployment'
153       - string:
154           name: ENGINE_VERSION
155           default: '{engine-version}'
156           description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
157       - string:
158           name: ENGINE_REFSPEC
159           default: '{engine-refspec}'
160           description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
161       - string:
162           name: DEPLOY_SCENARIO_VERSION
163           default: '{deploy-scenario-version}'
164           description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
165       - string:
166           name: DEPLOY_SCENARIO_REFSPEC
167           default: '{deploy-scenario-refspec}'
168           description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
169       - string:
170           name: POD_NAME
171           default: '{pod-name}'
172           description: 'Development purposes only! Set to none for disabling test results DB reporting.'
173       - string:
174           name: DELETE_STACK
175           default: '{delete-stack}'
176           description: 'Development purposes only! Whether delete the stack or not. It must either be yes or no. Setting this to no will increase the cost!'
177
178     properties:
179       - logrotate
180       - build-blocker:
181           use-build-blocker: true
182           blocking-jobs:
183             - 'cloud-infra-verify-engine-.*'
184             - 'cloud-infra-verify-scenario-.*'
185             - 'cloud-infra-periodic-engine-.*'
186             - 'onap-.*'
187             - 'k8-.*'
188             - 'os-.*'
189             - 'nolabs-.*'
190           block-level: 'NODE'
191       - throttle:
192           max-per-node: 1
193           max-total: 1
194           option: project
195
196     wrappers:
197       - credentials-binding:
198           - file:
199               credential-id: '{openrc-credentials-file}'
200               variable: OPENRC_FILE
201       - mask-passwords
202       - build-timeout:
203           timeout: 630
204       - fix-workspace-permissions
205       - openstack:
206           single-use: True
207
208     triggers:
209       - timed: '{daily-trigger}'
210
211     scm:
212       - git-scm:
213           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
214           branch: '{nordix-branch}'
215           refspec: ''
216           wipe_workspace: true
217           clean_before: false
218
219     builders:
220       - description-setter:
221           description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
222       - shell: |
223           #!/bin/bash
224           /bin/rm -rf /tmp/openrc && /bin/cp -f $OPENRC_FILE /tmp/openrc
225       - multijob:
226           name: Deploy ONAP using OOM
227           condition: ALWAYS
228           projects:
229             - name: 'onap-deploy-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
230               current-parameters: false
231               predefined-parameters: |
232                 DISTRO=$DISTRO
233                 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
234                 DEPLOY_TYPE=$DEPLOY_TYPE
235                 PROVISIONER_TYPE=$PROVISIONER_TYPE
236                 INSTALLER_TYPE=$INSTALLER_TYPE
237                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
238                 ONAP_VERSION=$ONAP_VERSION
239                 ONAP_FLAVOR=$ONAP_FLAVOR
240                 POD_NAME=$POD_NAME
241                 STACK_NAME=$STACK_NAME
242                 KEYPAIR_NAME=$KEYPAIR_NAME
243                 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
244                 ENGINE_VERSION=$ENGINE_VERSION
245                 ENGINE_REFSPEC=$ENGINE_REFSPEC
246                 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
247                 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
248                 XTESTING_REPO_URL=$XTESTING_REPO_URL
249                 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
250                 CLEANUP=$CLEANUP
251               git-revision: true
252               node-parameters: true
253               kill-phase-on: NEVER
254               abort-all-job: false
255       - multijob:
256           name: K8S and OOM Healthcheck using xtesting
257           condition: ALWAYS
258           projects:
259             - name: 'oom-hc-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
260               current-parameters: false
261               predefined-parameters: |
262                 DISTRO=$DISTRO
263                 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
264                 DEPLOY_TYPE=$DEPLOY_TYPE
265                 PROVISIONER_TYPE=$PROVISIONER_TYPE
266                 INSTALLER_TYPE=$INSTALLER_TYPE
267                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
268                 ONAP_VERSION=$ONAP_VERSION
269                 ONAP_FLAVOR=full
270                 TEST_TYPE=oom-healthcheck
271                 POD_NAME=$POD_NAME
272                 STACK_NAME=$STACK_NAME
273                 KEYPAIR_NAME=$KEYPAIR_NAME
274                 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
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
281                 CLEANUP=$CLEANUP
282               node-parameters: true
283               kill-phase-on: NEVER
284               abort-all-job: false
285       - multijob:
286           name: ONAP Healthcheck using xtesting
287           execution-type: SEQUENTIALLY
288           condition: ALWAYS
289           projects:
290             - name: 'onap-hc-core-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
291               current-parameters: false
292               predefined-parameters: |
293                 SLAVE_LABEL=$SLAVE_LABEL
294                 DISTRO=$DISTRO
295                 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
296                 PROVISIONER_TYPE=$PROVISIONER_TYPE
297                 INSTALLER_TYPE=$INSTALLER_TYPE
298                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
299                 DEPLOY_TYPE=$DEPLOY_TYPE
300                 ONAP_VERSION=$ONAP_VERSION
301                 ONAP_FLAVOR=core
302                 TEST_TYPE=onap-healthcheck
303                 POD_NAME=$POD_NAME
304                 STACK_NAME=$STACK_NAME
305                 KEYPAIR_NAME=$KEYPAIR_NAME
306                 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
307                 ENGINE_VERSION=$ENGINE_VERSION
308                 ENGINE_REFSPEC=$ENGINE_REFSPEC
309                 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
310                 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
311                 XTESTING_REPO_URL=$XTESTING_REPO_URL
312                 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
313                 CLEANUP=$CLEANUP
314               node-parameters: true
315               kill-phase-on: NEVER
316               abort-all-job: false
317             - name: 'onap-hc-small-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
318               current-parameters: false
319               predefined-parameters: |
320                 SLAVE_LABEL=$SLAVE_LABEL
321                 DISTRO=$DISTRO
322                 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
323                 PROVISIONER_TYPE=$PROVISIONER_TYPE
324                 INSTALLER_TYPE=$INSTALLER_TYPE
325                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
326                 DEPLOY_TYPE=$DEPLOY_TYPE
327                 ONAP_VERSION=$ONAP_VERSION
328                 ONAP_FLAVOR=small
329                 TEST_TYPE=onap-healthcheck
330                 POD_NAME=$POD_NAME
331                 STACK_NAME=$STACK_NAME
332                 KEYPAIR_NAME=$KEYPAIR_NAME
333                 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
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                 CLEANUP=$CLEANUP
341               node-parameters: true
342               kill-phase-on: NEVER
343               abort-all-job: false
344             - name: 'onap-hc-medium-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
345               current-parameters: false
346               predefined-parameters: |
347                 SLAVE_LABEL=$SLAVE_LABEL
348                 DISTRO=$DISTRO
349                 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
350                 PROVISIONER_TYPE=$PROVISIONER_TYPE
351                 INSTALLER_TYPE=$INSTALLER_TYPE
352                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
353                 DEPLOY_TYPE=$DEPLOY_TYPE
354                 ONAP_VERSION=$ONAP_VERSION
355                 ONAP_FLAVOR=medium
356                 TEST_TYPE=onap-healthcheck
357                 POD_NAME=$POD_NAME
358                 STACK_NAME=$STACK_NAME
359                 KEYPAIR_NAME=$KEYPAIR_NAME
360                 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
361                 ENGINE_VERSION=$ENGINE_VERSION
362                 ENGINE_REFSPEC=$ENGINE_REFSPEC
363                 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
364                 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
365                 XTESTING_REPO_URL=$XTESTING_REPO_URL
366                 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
367                 CLEANUP=$CLEANUP
368               node-parameters: true
369               kill-phase-on: NEVER
370               abort-all-job: false
371             - name: 'onap-hc-full-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
372               current-parameters: false
373               predefined-parameters: |
374                 SLAVE_LABEL=$SLAVE_LABEL
375                 DISTRO=$DISTRO
376                 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
377                 PROVISIONER_TYPE=$PROVISIONER_TYPE
378                 INSTALLER_TYPE=$INSTALLER_TYPE
379                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
380                 DEPLOY_TYPE=$DEPLOY_TYPE
381                 ONAP_VERSION=$ONAP_VERSION
382                 ONAP_FLAVOR=full
383                 TEST_TYPE=onap-healthcheck
384                 POD_NAME=$POD_NAME
385                 STACK_NAME=$STACK_NAME
386                 KEYPAIR_NAME=$KEYPAIR_NAME
387                 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
388                 ENGINE_VERSION=$ENGINE_VERSION
389                 ENGINE_REFSPEC=$ENGINE_REFSPEC
390                 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
391                 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
392                 XTESTING_REPO_URL=$XTESTING_REPO_URL
393                 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
394                 CLEANUP=$CLEANUP
395               node-parameters: true
396               kill-phase-on: NEVER
397               abort-all-job: false
398             - name: 'onap-hc-healthdist-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
399               current-parameters: false
400               predefined-parameters: |
401                 SLAVE_LABEL=$SLAVE_LABEL
402                 DISTRO=$DISTRO
403                 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
404                 PROVISIONER_TYPE=$PROVISIONER_TYPE
405                 INSTALLER_TYPE=$INSTALLER_TYPE
406                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
407                 DEPLOY_TYPE=$DEPLOY_TYPE
408                 ONAP_VERSION=$ONAP_VERSION
409                 ONAP_FLAVOR=healthdist
410                 TEST_TYPE=onap-healthcheck
411                 POD_NAME=$POD_NAME
412                 STACK_NAME=$STACK_NAME
413                 KEYPAIR_NAME=$KEYPAIR_NAME
414                 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
415                 ENGINE_VERSION=$ENGINE_VERSION
416                 ENGINE_REFSPEC=$ENGINE_REFSPEC
417                 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
418                 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
419                 XTESTING_REPO_URL=$XTESTING_REPO_URL
420                 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
421                 CLEANUP=$CLEANUP
422               node-parameters: true
423               kill-phase-on: NEVER
424               abort-all-job: false
425       - multijob:
426           name: Promote ONAP (not activated)
427           condition: ALWAYS
428           projects:
429             - name: 'promote-onap-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
430               current-parameters: false
431               predefined-parameters: |
432                 SLAVE_LABEL=$SLAVE_LABEL
433                 DISTRO=$DISTRO
434                 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
435                 DEPLOY_TYPE=$DEPLOY_TYPE
436                 INSTALLER_TYPE=$INSTALLER_TYPE
437                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
438                 ONAP_VERSION=$ONAP_VERSION
439                 ONAP_FLAVOR=$ONAP_FLAVOR
440                 ENGINE_VERSION=$ENGINE_VERSION
441                 ENGINE_REFSPEC=$ENGINE_REFSPEC
442                 POD_NAME=$POD_NAME
443                 STACK_NAME=$STACK_NAME
444                 KEYPAIR_NAME=$KEYPAIR_NAME
445                 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
446                 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
447                 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
448                 XTESTING_REPO_URL=$XTESTING_REPO_URL
449                 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
450                 CLEANUP=$CLEANUP
451               node-parameters: true
452               kill-phase-on: NEVER
453               abort-all-job: false
454
455     publishers:
456       - postbuildscript:
457           builders:
458             - role: SLAVE
459               build-on:
460                 - SUCCESS
461                 - FAILURE
462                 - ABORTED
463                 - NOT_BUILT
464                 - UNSTABLE
465               build-steps:
466                 - shell:
467                     !include-raw-escape: ./wait-for-pkg-manager.sh
468                 - shell:
469                     !include-raw: ./delete-heat-stack.sh
470
471 - job-template:
472     name: '{onap-other-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
473
474     disabled: false
475
476     concurrent: true
477
478     properties:
479       - logrotate
480
481     parameters:
482       - project-parameters:
483           project: '{project}'
484           branch: '{nordix-branch}'
485       - nordix-gerrit-parameters
486       - onap-parameter-macro
487       - label:
488           name: SLAVE_LABEL
489           default: 'xerces-jumphost-onap-ubuntu1804'
490           description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
491       - string:
492           name: OPENSTACK_CLOUD_PROVIDER
493           default: 'city'
494           description: 'Name of the cloud where this job is run'
495       - string:
496           name: DISTRO
497           default: 'ubuntu1804'
498           description: 'Distribution to use for configuring target nodes (networking etc.)'
499       - string:
500           name: ONAP_FLAVOR
501           default: '{onap-flavor}'
502           description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
503       - string:
504           name: ONAP_VERSION
505           default: '{onap-version}'
506           description: 'ONAP version to deploy'
507       - string:
508           name: HEAT_ENVIRONMENT_FILENAME
509           default: "heat-environment-full.yaml"
510           description: 'Type of the deployment'
511       - string:
512           name: HEAT_ENVIRONMENT_FILE
513           default: "file:///opt/engine/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/$HEAT_ENVIRONMENT_FILENAME"
514           description: 'Type of the deployment'
515
516     wrappers:
517       - mask-passwords
518       - build-timeout:
519           timeout: '{build-timeout}'
520       - fix-workspace-permissions
521       - credentials-binding:
522           - username-password-separated:
523               credential-id: 'nordix-cicd-arm-credentials'
524               username: NORDIX_ARM_USERNAME
525               password: NORDIX_ARM_TOKEN
526           - username-password-separated:
527               credential-id: 'nordix-cicd-harbor-credentials'
528               username: NORDIX_HARBOR_USERNAME
529               password: NORDIX_HARBOR_PASSWORD
530
531     scm:
532       - git-scm:
533           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
534           branch: '{nordix-branch}'
535           refspec: ''
536           wipe_workspace: true
537           clean_before: false
538
539     builders:
540       - description-setter:
541           description: $DEPLOY_SCENARIO | $ONAP_FLAVOR | $OPENSTACK_CLOUD_PROVIDER
542       - '{onap-other-phases}-macro'
543
544 - job-template:
545     name: '{onap-healthcheck-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
546
547     disabled: false
548
549     concurrent: true
550
551     properties:
552       - logrotate
553
554     parameters:
555       - project-parameters:
556           project: '{project}'
557           branch: '{nordix-branch}'
558       - nordix-gerrit-parameters
559       - onap-parameter-macro
560       - label:
561           name: SLAVE_LABEL
562           default: 'xerces-jumphost-onap-ubuntu1804'
563           description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
564       - string:
565           name: OPENSTACK_CLOUD_PROVIDER
566           default: 'city'
567           description: 'Name of the cloud where this job is run'
568       - string:
569           name: DISTRO
570           default: 'ubuntu1804'
571           description: 'Distribution to use for configuring target nodes (networking etc.)'
572       - string:
573           name: ONAP_VERSION
574           default: '{onap-version}'
575           description: 'ONAP version to deploy'
576       - string:
577           name: HEAT_ENVIRONMENT_FILENAME
578           default: "heat-environment-full.yaml"
579           description: 'Type of the deployment'
580       - string:
581           name: HEAT_ENVIRONMENT_FILE
582           default: "file:///opt/engine/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/$HEAT_ENVIRONMENT_FILENAME"
583           description: 'Type of the deployment'
584       - string:
585           name: ENGINE_VERSION
586           default: '{engine-version}'
587           description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
588       - string:
589           name: ENGINE_REFSPEC
590           default: '{engine-refspec}'
591           description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
592       - string:
593           name: DEPLOY_SCENARIO_VERSION
594           default: '{deploy-scenario-version}'
595           description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
596       - string:
597           name: DEPLOY_SCENARIO_REFSPEC
598           default: '{deploy-scenario-refspec}'
599           description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
600       - string:
601           name: POD_NAME
602           default: '{pod-name}'
603           description: 'Development purposes only! Set to none for disabling test results DB reporting.'
604
605     wrappers:
606       - mask-passwords
607       - build-timeout:
608           timeout: '{build-timeout}'
609       - fix-workspace-permissions
610
611     scm:
612       - git-scm:
613           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
614           branch: '{nordix-branch}'
615           refspec: ''
616           wipe_workspace: true
617           clean_before: false
618
619     builders:
620       - description-setter:
621           description: $DEPLOY_SCENARIO | $ONAP_FLAVOR | $OPENSTACK_CLOUD_PROVIDER
622       - 'onap-healthcheck-macro'
623
624 # vim: set ts=2 sw=2 expandtab: