onap-jjb: Enable daily pipelines for master
[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-periodic-engine-.*'
184             - 'onap-.*'
185             - 'k8-.*'
186           block-level: 'NODE'
187       - throttle:
188           max-per-node: 1
189           max-total: 1
190           option: project
191
192     wrappers:
193       - credentials-binding:
194           - file:
195               credential-id: '{openrc-credentials-file}'
196               variable: OPENRC_FILE
197       - mask-passwords
198       - build-timeout:
199           timeout: 630
200       - fix-workspace-permissions
201       - openstack:
202           single-use: True
203
204     triggers:
205       - timed: '{daily-trigger}'
206
207     scm:
208       - git-scm:
209           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
210           branch: '{nordix-branch}'
211           refspec: ''
212           wipe_workspace: true
213           clean_before: false
214
215     builders:
216       - description-setter:
217           description: $DEPLOY_SCENARIO | $ONAP_FLAVOR
218       - shell: |
219           #!/bin/bash
220           /bin/rm -rf /tmp/openrc && /bin/cp -f $OPENRC_FILE /tmp/openrc
221       - multijob:
222           name: Deploy ONAP using OOM
223           condition: ALWAYS
224           projects:
225             - name: 'onap-deploy-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
226               current-parameters: false
227               predefined-parameters: |
228                 DISTRO=$DISTRO
229                 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
230                 DEPLOY_TYPE=$DEPLOY_TYPE
231                 PROVISIONER_TYPE=$PROVISIONER_TYPE
232                 INSTALLER_TYPE=$INSTALLER_TYPE
233                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
234                 ONAP_VERSION=$ONAP_VERSION
235                 ONAP_FLAVOR=$ONAP_FLAVOR
236                 POD_NAME=$POD_NAME
237                 STACK_NAME=$STACK_NAME
238                 KEYPAIR_NAME=$KEYPAIR_NAME
239                 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
240                 ENGINE_VERSION=$ENGINE_VERSION
241                 ENGINE_REFSPEC=$ENGINE_REFSPEC
242                 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
243                 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
244                 XTESTING_REPO_URL=$XTESTING_REPO_URL
245                 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
246                 CLEANUP=$CLEANUP
247               git-revision: true
248               node-parameters: true
249               kill-phase-on: NEVER
250               abort-all-job: false
251       - multijob:
252           name: K8S and OOM Healthcheck using xtesting
253           condition: ALWAYS
254           projects:
255             - name: 'oom-hc-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
256               current-parameters: false
257               predefined-parameters: |
258                 DISTRO=$DISTRO
259                 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
260                 DEPLOY_TYPE=$DEPLOY_TYPE
261                 PROVISIONER_TYPE=$PROVISIONER_TYPE
262                 INSTALLER_TYPE=$INSTALLER_TYPE
263                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
264                 ONAP_VERSION=$ONAP_VERSION
265                 ONAP_FLAVOR=full
266                 TEST_TYPE=oom-healthcheck
267                 POD_NAME=$POD_NAME
268                 STACK_NAME=$STACK_NAME
269                 KEYPAIR_NAME=$KEYPAIR_NAME
270                 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
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                 CLEANUP=$CLEANUP
278               node-parameters: true
279               kill-phase-on: NEVER
280               abort-all-job: false
281       - multijob:
282           name: ONAP Healthcheck using xtesting
283           execution-type: SEQUENTIALLY
284           condition: ALWAYS
285           projects:
286             - name: 'onap-hc-core-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
287               current-parameters: false
288               predefined-parameters: |
289                 SLAVE_LABEL=$SLAVE_LABEL
290                 DISTRO=$DISTRO
291                 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
292                 PROVISIONER_TYPE=$PROVISIONER_TYPE
293                 INSTALLER_TYPE=$INSTALLER_TYPE
294                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
295                 DEPLOY_TYPE=$DEPLOY_TYPE
296                 ONAP_VERSION=$ONAP_VERSION
297                 ONAP_FLAVOR=core
298                 TEST_TYPE=onap-healthcheck
299                 POD_NAME=$POD_NAME
300                 STACK_NAME=$STACK_NAME
301                 KEYPAIR_NAME=$KEYPAIR_NAME
302                 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
303                 ENGINE_VERSION=$ENGINE_VERSION
304                 ENGINE_REFSPEC=$ENGINE_REFSPEC
305                 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
306                 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
307                 XTESTING_REPO_URL=$XTESTING_REPO_URL
308                 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
309                 CLEANUP=$CLEANUP
310               node-parameters: true
311               kill-phase-on: NEVER
312               abort-all-job: false
313             - name: 'onap-hc-small-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
314               current-parameters: false
315               predefined-parameters: |
316                 SLAVE_LABEL=$SLAVE_LABEL
317                 DISTRO=$DISTRO
318                 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
319                 PROVISIONER_TYPE=$PROVISIONER_TYPE
320                 INSTALLER_TYPE=$INSTALLER_TYPE
321                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
322                 DEPLOY_TYPE=$DEPLOY_TYPE
323                 ONAP_VERSION=$ONAP_VERSION
324                 ONAP_FLAVOR=small
325                 TEST_TYPE=onap-healthcheck
326                 POD_NAME=$POD_NAME
327                 STACK_NAME=$STACK_NAME
328                 KEYPAIR_NAME=$KEYPAIR_NAME
329                 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
330                 ENGINE_VERSION=$ENGINE_VERSION
331                 ENGINE_REFSPEC=$ENGINE_REFSPEC
332                 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
333                 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
334                 XTESTING_REPO_URL=$XTESTING_REPO_URL
335                 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
336                 CLEANUP=$CLEANUP
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                 CLEANUP=$CLEANUP
364               node-parameters: true
365               kill-phase-on: NEVER
366               abort-all-job: false
367             - name: 'onap-hc-full-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
368               current-parameters: false
369               predefined-parameters: |
370                 SLAVE_LABEL=$SLAVE_LABEL
371                 DISTRO=$DISTRO
372                 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
373                 PROVISIONER_TYPE=$PROVISIONER_TYPE
374                 INSTALLER_TYPE=$INSTALLER_TYPE
375                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
376                 DEPLOY_TYPE=$DEPLOY_TYPE
377                 ONAP_VERSION=$ONAP_VERSION
378                 ONAP_FLAVOR=full
379                 TEST_TYPE=onap-healthcheck
380                 POD_NAME=$POD_NAME
381                 STACK_NAME=$STACK_NAME
382                 KEYPAIR_NAME=$KEYPAIR_NAME
383                 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
384                 ENGINE_VERSION=$ENGINE_VERSION
385                 ENGINE_REFSPEC=$ENGINE_REFSPEC
386                 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
387                 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
388                 XTESTING_REPO_URL=$XTESTING_REPO_URL
389                 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
390                 CLEANUP=$CLEANUP
391               node-parameters: true
392               kill-phase-on: NEVER
393               abort-all-job: false
394             - name: 'onap-hc-healthdist-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
395               current-parameters: false
396               predefined-parameters: |
397                 SLAVE_LABEL=$SLAVE_LABEL
398                 DISTRO=$DISTRO
399                 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
400                 PROVISIONER_TYPE=$PROVISIONER_TYPE
401                 INSTALLER_TYPE=$INSTALLER_TYPE
402                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
403                 DEPLOY_TYPE=$DEPLOY_TYPE
404                 ONAP_VERSION=$ONAP_VERSION
405                 ONAP_FLAVOR=healthdist
406                 TEST_TYPE=onap-healthcheck
407                 POD_NAME=$POD_NAME
408                 STACK_NAME=$STACK_NAME
409                 KEYPAIR_NAME=$KEYPAIR_NAME
410                 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
411                 ENGINE_VERSION=$ENGINE_VERSION
412                 ENGINE_REFSPEC=$ENGINE_REFSPEC
413                 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
414                 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
415                 XTESTING_REPO_URL=$XTESTING_REPO_URL
416                 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
417                 CLEANUP=$CLEANUP
418               node-parameters: true
419               kill-phase-on: NEVER
420               abort-all-job: false
421       - multijob:
422           name: Promote ONAP (not activated)
423           condition: ALWAYS
424           projects:
425             - name: 'promote-onap-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
426               current-parameters: false
427               predefined-parameters: |
428                 SLAVE_LABEL=$SLAVE_LABEL
429                 DISTRO=$DISTRO
430                 OPENSTACK_CLOUD_PROVIDER=$OPENSTACK_CLOUD_PROVIDER
431                 DEPLOY_TYPE=$DEPLOY_TYPE
432                 INSTALLER_TYPE=$INSTALLER_TYPE
433                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
434                 ONAP_VERSION=$ONAP_VERSION
435                 ONAP_FLAVOR=$ONAP_FLAVOR
436                 ENGINE_VERSION=$ENGINE_VERSION
437                 ENGINE_REFSPEC=$ENGINE_REFSPEC
438                 POD_NAME=$POD_NAME
439                 STACK_NAME=$STACK_NAME
440                 KEYPAIR_NAME=$KEYPAIR_NAME
441                 HEAT_ENVIRONMENT_FILENAME=$HEAT_ENVIRONMENT_FILENAME
442                 DEPLOY_SCENARIO_VERSION=$DEPLOY_SCENARIO_VERSION
443                 DEPLOY_SCENARIO_REFSPEC=$DEPLOY_SCENARIO_REFSPEC
444                 XTESTING_REPO_URL=$XTESTING_REPO_URL
445                 ENGINE_ANSIBLE_PARAMS=$ENGINE_ANSIBLE_PARAMS
446                 CLEANUP=$CLEANUP
447               node-parameters: true
448               kill-phase-on: NEVER
449               abort-all-job: false
450
451     publishers:
452       - postbuildscript:
453           builders:
454             - role: SLAVE
455               build-on:
456                 - SUCCESS
457                 - FAILURE
458                 - ABORTED
459                 - NOT_BUILT
460                 - UNSTABLE
461               build-steps:
462                 - shell:
463                     !include-raw-escape: ./wait-for-pkg-manager.sh
464                 - shell:
465                     !include-raw: ./delete-heat-stack.sh
466
467 - job-template:
468     name: '{onap-other-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
469
470     disabled: false
471
472     concurrent: true
473
474     properties:
475       - logrotate
476
477     parameters:
478       - project-parameters:
479           project: '{project}'
480           branch: '{nordix-branch}'
481       - nordix-gerrit-parameters
482       - onap-parameter-macro
483       - label:
484           name: SLAVE_LABEL
485           default: 'xerces-jumphost-onap-ubuntu1804'
486           description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
487       - string:
488           name: OPENSTACK_CLOUD_PROVIDER
489           default: 'city'
490           description: 'Name of the cloud where this job is run'
491       - string:
492           name: DISTRO
493           default: 'ubuntu1804'
494           description: 'Distribution to use for configuring target nodes (networking etc.)'
495       - string:
496           name: ONAP_FLAVOR
497           default: '{onap-flavor}'
498           description: 'ONAP flavor to deploy - could be core, small, medium, full. Also used for xtesting as run_type.'
499       - string:
500           name: ONAP_VERSION
501           default: '{onap-version}'
502           description: 'ONAP version to deploy'
503       - string:
504           name: HEAT_ENVIRONMENT_FILENAME
505           default: "heat-environment-full.yaml"
506           description: 'Type of the deployment'
507       - string:
508           name: HEAT_ENVIRONMENT_FILE
509           default: "file:///opt/engine/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/$HEAT_ENVIRONMENT_FILENAME"
510           description: 'Type of the deployment'
511
512     wrappers:
513       - mask-passwords
514       - build-timeout:
515           timeout: '{build-timeout}'
516       - fix-workspace-permissions
517       - credentials-binding:
518           - username-password-separated:
519               credential-id: 'nordix-cicd-arm-credentials'
520               username: NORDIX_ARM_USERNAME
521               password: NORDIX_ARM_TOKEN
522           - username-password-separated:
523               credential-id: 'nordix-cicd-harbor-credentials'
524               username: NORDIX_HARBOR_USERNAME
525               password: NORDIX_HARBOR_PASSWORD
526
527     scm:
528       - git-scm:
529           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
530           branch: '{nordix-branch}'
531           refspec: ''
532           wipe_workspace: true
533           clean_before: false
534
535     builders:
536       - description-setter:
537           description: $DEPLOY_SCENARIO | $ONAP_FLAVOR | $OPENSTACK_CLOUD_PROVIDER
538       - '{onap-other-phases}-macro'
539
540 - job-template:
541     name: '{onap-healthcheck-phases}-{distro}-{installer-type}-{type}-{ci-loop}-{onap-branch}'
542
543     disabled: false
544
545     concurrent: true
546
547     properties:
548       - logrotate
549
550     parameters:
551       - project-parameters:
552           project: '{project}'
553           branch: '{nordix-branch}'
554       - nordix-gerrit-parameters
555       - onap-parameter-macro
556       - label:
557           name: SLAVE_LABEL
558           default: 'xerces-jumphost-onap-ubuntu1804'
559           description: 'Slave label to schedule this job on. All slaves have Ubuntu1604 no matter what distro target nodes use'
560       - string:
561           name: OPENSTACK_CLOUD_PROVIDER
562           default: 'city'
563           description: 'Name of the cloud where this job is run'
564       - string:
565           name: DISTRO
566           default: 'ubuntu1804'
567           description: 'Distribution to use for configuring target nodes (networking etc.)'
568       - string:
569           name: ONAP_VERSION
570           default: '{onap-version}'
571           description: 'ONAP version to deploy'
572       - string:
573           name: HEAT_ENVIRONMENT_FILENAME
574           default: "heat-environment-full.yaml"
575           description: 'Type of the deployment'
576       - string:
577           name: HEAT_ENVIRONMENT_FILE
578           default: "file://$WORKSPACE/.cache/repos/swconfig/scenarios/$DEPLOY_SCENARIO/$INSTALLER_TYPE/role/$DEPLOY_SCENARIO/files/$HEAT_ENVIRONMENT_FILENAME"
579           description: 'Type of the deployment'
580       - string:
581           name: ENGINE_VERSION
582           default: '{engine-version}'
583           description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Could be sha, branch'
584       - string:
585           name: ENGINE_REFSPEC
586           default: '{engine-refspec}'
587           description: 'Development purposes only! Nordix Cloud Infra Engine version to use for deploying ONAP. Must be refspec.'
588       - string:
589           name: DEPLOY_SCENARIO_VERSION
590           default: '{deploy-scenario-version}'
591           description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_REFSPEC and could be sha, branch.'
592       - string:
593           name: DEPLOY_SCENARIO_REFSPEC
594           default: '{deploy-scenario-refspec}'
595           description: 'Development purposes only! Nordix Cloud Infra Scenario version to use for deploying ONAP. Depends on DEPLOY_SCENARIO_VERSION and must be refspec.'
596       - string:
597           name: POD_NAME
598           default: '{pod-name}'
599           description: 'Development purposes only! Set to none for disabling test results DB reporting.'
600
601     wrappers:
602       - mask-passwords
603       - build-timeout:
604           timeout: '{build-timeout}'
605       - fix-workspace-permissions
606
607     scm:
608       - git-scm:
609           ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
610           branch: '{nordix-branch}'
611           refspec: ''
612           wipe_workspace: true
613           clean_before: false
614
615     builders:
616       - description-setter:
617           description: $DEPLOY_SCENARIO | $ONAP_FLAVOR | $OPENSTACK_CLOUD_PROVIDER
618       - 'onap-healthcheck-macro'
619
620 # vim: set ts=2 sw=2 expandtab: