b967fc2d2f61e928790655dc42925b0ced3e974f
[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: 'engine-jumphost-online-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: true
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: true
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-legacy
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               git-revision: true
251               node-parameters: true
252               kill-phase-on: NEVER
253               abort-all-job: false
254       - multijob:
255           name: K8S and OOM Healthcheck using xtesting
256           condition: ALWAYS
257           projects:
258             - name: 'oom-hc-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
259               current-parameters: false
260               predefined-parameters: |
261                 DISTRO=$DISTRO
262                 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
263                 DEPLOY_TYPE=$DEPLOY_TYPE
264                 PROVISIONER_TYPE=$PROVISIONER_TYPE
265                 INSTALLER_TYPE=$INSTALLER_TYPE
266                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
267                 ONAP_VERSION=$ONAP_VERSION
268                 ONAP_FLAVOR=full
269                 TEST_TYPE=oom-healthcheck
270                 POD_NAME=$POD_NAME
271                 STACK_NAME=$STACK_NAME
272                 KEYPAIR_NAME=$KEYPAIR_NAME
273                 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
274                 ENGINE_VERSION=$ENGINE_VERSION
275                 ENGINE_REFSPEC=$ENGINE_REFSPEC
276                 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
277                 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
278                 XTESTING_REPO_URL=$XTESTING_REPO_URL
279                 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
280               node-parameters: true
281               kill-phase-on: NEVER
282               abort-all-job: false
283       - multijob:
284           name: ONAP Healthcheck using xtesting
285           execution-type: SEQUENTIALLY
286           condition: ALWAYS
287           projects:
288             - name: 'onap-hc-core-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
289               current-parameters: false
290               predefined-parameters: |
291                 SLAVE_LABEL=$SLAVE_LABEL
292                 DISTRO=$DISTRO
293                 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
294                 PROVISIONER_TYPE=$PROVISIONER_TYPE
295                 INSTALLER_TYPE=$INSTALLER_TYPE
296                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
297                 DEPLOY_TYPE=$DEPLOY_TYPE
298                 ONAP_VERSION=$ONAP_VERSION
299                 ONAP_FLAVOR=core
300                 TEST_TYPE=onap-healthcheck
301                 POD_NAME=$POD_NAME
302                 STACK_NAME=$STACK_NAME
303                 KEYPAIR_NAME=$KEYPAIR_NAME
304                 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
305                 ENGINE_VERSION=$ENGINE_VERSION
306                 ENGINE_REFSPEC=$ENGINE_REFSPEC
307                 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
308                 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
309                 XTESTING_REPO_URL=$XTESTING_REPO_URL
310                 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
311               node-parameters: true
312               kill-phase-on: NEVER
313               abort-all-job: false
314             - name: 'onap-hc-small-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
315               current-parameters: false
316               predefined-parameters: |
317                 SLAVE_LABEL=$SLAVE_LABEL
318                 DISTRO=$DISTRO
319                 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
320                 PROVISIONER_TYPE=$PROVISIONER_TYPE
321                 INSTALLER_TYPE=$INSTALLER_TYPE
322                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
323                 DEPLOY_TYPE=$DEPLOY_TYPE
324                 ONAP_VERSION=$ONAP_VERSION
325                 ONAP_FLAVOR=small
326                 TEST_TYPE=onap-healthcheck
327                 POD_NAME=$POD_NAME
328                 STACK_NAME=$STACK_NAME
329                 KEYPAIR_NAME=$KEYPAIR_NAME
330                 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
331                 ENGINE_VERSION=$ENGINE_VERSION
332                 ENGINE_REFSPEC=$ENGINE_REFSPEC
333                 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
334                 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
335                 XTESTING_REPO_URL=$XTESTING_REPO_URL
336                 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
337               node-parameters: true
338               kill-phase-on: NEVER
339               abort-all-job: false
340             - name: 'onap-hc-medium-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
341               current-parameters: false
342               predefined-parameters: |
343                 SLAVE_LABEL=$SLAVE_LABEL
344                 DISTRO=$DISTRO
345                 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
346                 PROVISIONER_TYPE=$PROVISIONER_TYPE
347                 INSTALLER_TYPE=$INSTALLER_TYPE
348                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
349                 DEPLOY_TYPE=$DEPLOY_TYPE
350                 ONAP_VERSION=$ONAP_VERSION
351                 ONAP_FLAVOR=medium
352                 TEST_TYPE=onap-healthcheck
353                 POD_NAME=$POD_NAME
354                 STACK_NAME=$STACK_NAME
355                 KEYPAIR_NAME=$KEYPAIR_NAME
356                 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
357                 ENGINE_VERSION=$ENGINE_VERSION
358                 ENGINE_REFSPEC=$ENGINE_REFSPEC
359                 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
360                 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
361                 XTESTING_REPO_URL=$XTESTING_REPO_URL
362                 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
363               node-parameters: true
364               kill-phase-on: NEVER
365               abort-all-job: false
366             - name: 'onap-hc-full-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
367               current-parameters: false
368               predefined-parameters: |
369                 SLAVE_LABEL=$SLAVE_LABEL
370                 DISTRO=$DISTRO
371                 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
372                 PROVISIONER_TYPE=$PROVISIONER_TYPE
373                 INSTALLER_TYPE=$INSTALLER_TYPE
374                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
375                 DEPLOY_TYPE=$DEPLOY_TYPE
376                 ONAP_VERSION=$ONAP_VERSION
377                 ONAP_FLAVOR=full
378                 TEST_TYPE=onap-healthcheck
379                 POD_NAME=$POD_NAME
380                 STACK_NAME=$STACK_NAME
381                 KEYPAIR_NAME=$KEYPAIR_NAME
382                 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
383                 ENGINE_VERSION=$ENGINE_VERSION
384                 ENGINE_REFSPEC=$ENGINE_REFSPEC
385                 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
386                 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
387                 XTESTING_REPO_URL=$XTESTING_REPO_URL
388                 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
389               node-parameters: true
390               kill-phase-on: NEVER
391               abort-all-job: false
392             - name: 'onap-hc-healthdist-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
393               current-parameters: false
394               predefined-parameters: |
395                 SLAVE_LABEL=$SLAVE_LABEL
396                 DISTRO=$DISTRO
397                 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
398                 PROVISIONER_TYPE=$PROVISIONER_TYPE
399                 INSTALLER_TYPE=$INSTALLER_TYPE
400                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
401                 DEPLOY_TYPE=$DEPLOY_TYPE
402                 ONAP_VERSION=$ONAP_VERSION
403                 ONAP_FLAVOR=healthdist
404                 TEST_TYPE=onap-healthcheck
405                 POD_NAME=$POD_NAME
406                 STACK_NAME=$STACK_NAME
407                 KEYPAIR_NAME=$KEYPAIR_NAME
408                 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
409                 ENGINE_VERSION=$ENGINE_VERSION
410                 ENGINE_REFSPEC=$ENGINE_REFSPEC
411                 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
412                 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
413                 XTESTING_REPO_URL=$XTESTING_REPO_URL
414                 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
415               node-parameters: true
416               kill-phase-on: NEVER
417               abort-all-job: false
418       - multijob:
419           name: Promote ONAP (not activated)
420           condition: ALWAYS
421           projects:
422             - name: 'promote-onap-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
423               current-parameters: false
424               predefined-parameters: |
425                 SLAVE_LABEL=$SLAVE_LABEL
426                 DISTRO=$DISTRO
427                 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
428                 DEPLOY_TYPE=$DEPLOY_TYPE
429                 INSTALLER_TYPE=$INSTALLER_TYPE
430                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
431                 ONAP_VERSION=$ONAP_VERSION
432                 ONAP_FLAVOR=$ONAP_FLAVOR
433                 ENGINE_VERSION=$ENGINE_VERSION
434                 ENGINE_REFSPEC=$ENGINE_REFSPEC
435                 POD_NAME=$POD_NAME
436                 STACK_NAME=$STACK_NAME
437                 KEYPAIR_NAME=$KEYPAIR_NAME
438                 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
439                 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
440                 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
441                 XTESTING_REPO_URL=$XTESTING_REPO_URL
442                 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
443               node-parameters: true
444               kill-phase-on: NEVER
445               abort-all-job: false
446
447     publishers:
448       - postbuildscript:
449           builders:
450             - role: SLAVE
451               build-on:
452                 - SUCCESS
453                 - FAILURE
454                 - ABORTED
455                 - NOT_BUILT
456                 - UNSTABLE
457               build-steps:
458                 - shell:
459                     !include-raw-escape: ./wait-for-pkg-manager.sh
460                 - shell:
461                     !include-raw: ./delete-heat-stack.sh
462
463 - job-template:
464     name: '{onap-other-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
465
466     disabled: false
467
468     concurrent: true
469
470     properties:
471       - logrotate
472
473     parameters:
474       - project-parameters:
475           project: '{project}'
476           branch: '{nordix-branch}'
477       - nordix-gerrit-parameters
478       - onap-parameter-macro-legacy
479       - label:
480           name: SLAVE_LABEL
481           default: 'xerces-jumphost-onap-ubuntu1804'
482           description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
483       - string:
484           name: OPENSTACK_CLOUD_PROVIDER
485           default: 'city'
486           description: 'Name of the cloud where this job is run'
487       - string:
488           name: DISTRO
489           default: 'ubuntu1804'
490           description: 'Distribution to use for configuring target nodes (networking etc.)'
491       - string:
492           name: ONAP_FLAVOR
493           default: '{onap-flavor}'
494           description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
495       - string:
496           name: ONAP_VERSION
497           default: '{onap-version}'
498           description: 'ONAP version to deploy'
499       - string:
500           name: HEAT_ENVIRONMENT_FILENAME
501           default: "heat-environment-full.yaml"
502           description: 'Type of the deployment'
503       - string:
504           name: HEAT_ENVIRONMENT_FILE
505           default: "file:///opt/engine/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/$HEAT_ENVIRONMENT_FILENAME"
506           description: 'Type of the deployment'
507
508     wrappers:
509       - mask-passwords
510       - build-timeout:
511           timeout: '{build-timeout}'
512       - fix-workspace-permissions
513       - credentials-binding:
514           - username-password-separated:
515               credential-id: 'nordix-cicd-arm-credentials'
516               username: NORDIX_ARM_USERNAME
517               password: NORDIX_ARM_TOKEN
518           - username-password-separated:
519               credential-id: 'nordix-cicd-harbor-credentials'
520               username: NORDIX_HARBOR_USERNAME
521               password: NORDIX_HARBOR_PASSWORD
522
523     scm:
524       - git-scm:
525           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
526           branch: '{nordix-branch}'
527           refspec: ''
528           wipe_workspace: true
529           clean_before: false
530
531     builders:
532       - description-setter:
533           description: $DEPLOY_SCENARIO | $ONAP_FLAVOR | $OPENSTACK_CLOUD_PROVIDER
534       - '{onap-other-phases}-macro-legacy'
535
536 - job-template:
537     name: '{onap-healthcheck-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
538
539     disabled: false
540
541     concurrent: true
542
543     properties:
544       - logrotate
545
546     parameters:
547       - project-parameters:
548           project: '{project}'
549           branch: '{nordix-branch}'
550       - nordix-gerrit-parameters
551       - onap-parameter-macro-legacy
552       - label:
553           name: SLAVE_LABEL
554           default: 'xerces-jumphost-onap-ubuntu1804'
555           description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
556       - string:
557           name: OPENSTACK_CLOUD_PROVIDER
558           default: 'city'
559           description: 'Name of the cloud where this job is run'
560       - string:
561           name: DISTRO
562           default: 'ubuntu1804'
563           description: 'Distribution to use for configuring target nodes (networking etc.)'
564       - string:
565           name: ONAP_VERSION
566           default: '{onap-version}'
567           description: 'ONAP version to deploy'
568       - string:
569           name: HEAT_ENVIRONMENT_FILENAME
570           default: "heat-environment-full.yaml"
571           description: 'Type of the deployment'
572       - string:
573           name: HEAT_ENVIRONMENT_FILE
574           default: "file:///opt/engine/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/$HEAT_ENVIRONMENT_FILENAME"
575           description: 'Type of the deployment'
576       - string:
577           name: ENGINE_VERSION
578           default: '{engine-version}'
579           description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
580       - string:
581           name: ENGINE_REFSPEC
582           default: '{engine-refspec}'
583           description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
584       - string:
585           name: DEPLOY_SCENARIO_VERSION
586           default: '{deploy-scenario-version}'
587           description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
588       - string:
589           name: DEPLOY_SCENARIO_REFSPEC
590           default: '{deploy-scenario-refspec}'
591           description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
592       - string:
593           name: POD_NAME
594           default: '{pod-name}'
595           description: 'Development purposes only! Set to none for disabling test results DB reporting.'
596
597     wrappers:
598       - mask-passwords
599       - build-timeout:
600           timeout: '{build-timeout}'
601       - fix-workspace-permissions
602
603     scm:
604       - git-scm:
605           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
606           branch: '{nordix-branch}'
607           refspec: ''
608           wipe_workspace: true
609           clean_before: false
610
611     builders:
612       - description-setter:
613           description: $DEPLOY_SCENARIO | $ONAP_FLAVOR | $OPENSTACK_CLOUD_PROVIDER
614       - 'onap-healthcheck-macro-legacy'
615
616 # vim: set ts=2 sw=2 expandtab: