5 project: '{project-name}'
9 view-regex: '^{project-name}-(tox|type1|type2)-(verify|fuel|compass)-.*'
10 # -------------------------------
12 # -------------------------------
19 # -------------------------------
20 # INSTALLER DEFINITIONS
21 # -------------------------------
26 # -------------------------------
27 # OPERATING SYSTEM DEFINITIONS
28 # -------------------------------
33 #--------------------------------
34 # IEC TYPE DEFINITINONS
35 # type1 Mcbin embeded board
37 # -------------------------------
41 # -------------------------------
42 # DEPLOY TYPE DEFINITIONS
43 # -------------------------------
46 slave-label: 'aarch64_dev'
47 scenario: 'k8-calico-iec-noha'
49 slave-label: 'aarch64_dev'
50 scenario: 'k8-calico-iec-noha'
53 # Compass does not run against baremetal PODs yet
55 deploy_type: baremetal
63 # -------------------------------
65 # -------------------------------
68 slave-label: 'aarch64_dev'
69 scenario: 'k8-calico-iec-noha'
72 - 'iec-{iecType}-{installer}-{deploy_type}-{os}-daily-{stream}'
73 - 'iec-{iecType}-deploy-{installer}-{deploy_type}-{os}-daily-{stream}'
74 - 'iec-{iecType}-destroy-{installer}-{deploy_type}-{os}-daily-{stream}'
75 - 'iec-{iecType}-install-{usecase}-{installer}-{deploy_type}-{os}-daily-{stream}'
77 sonar-project-file: ""
78 build-node: centos7-builder-2c-1g
83 sonar.organization=akraino-edge-stack
87 sonar.exclusions=**/*_test.go,**/vendor/**
93 sonar.build.sourceEncoding=UTF-8
96 sonar.inclusions=**/**.go
100 sonar.test.inclusions=**/*_test.go
101 sonar.test.exclusions=**/vendor/**
104 sonar.go.coverage.reportPaths=iec-coverage.xml
105 sonar.go.tests.reportPaths=iec-tests.xml
107 # Importing External Issues
108 sonar.go.govet.reportPaths=iec-govet.xml
109 sonar.go.golint.reportPaths=iec-golint.xml
110 sonar.go.gometalinter.reportPaths=iec-gometalinter.xml
111 sonar.go.golangci-lint.reportPaths=iec-golangci-lint.xml
122 description: 'IP of the installer'
125 default: '/var/lib/opnfv/mcp.rsa'
126 description: 'Path to private SSH key to access environment nodes'
128 name: EXTERNAL_NETWORK
129 default: 'floating_net'
130 description: 'external network for test'
134 description: 'Show debug output information'
136 name: ARCHIVE_ARTIFACTS
138 description: Artifacts to archive to the logs server.
139 # Usecase params are both installer and OS specific
140 - parameter: &k8s_fuel_ubuntu1604_parameter
141 name: 'fuel-ubuntu1604-defaults'
143 - string: &k8s_master_ip
145 default: '172.16.10.36'
146 description: 'IP address to connect to the K8s master'
147 - string: &k8s_ssh_user
150 description: 'SSH username to connect to the K8s master '
151 - string: &k8s_ssh_password
152 name: K8S_SSH_PASSWORD
154 description: 'SSH password to connect to the K8s master'
155 - string: &k8s_ssh_key
157 default: '/var/lib/opnfv/mcp.rsa'
158 description: 'SSH key to connect to the K8s master'
160 <<: *k8s_fuel_ubuntu1604_parameter
161 name: 'fuel-ubuntu1804-defaults'
163 name: 'fuel-centos7-defaults'
171 <<: *k8s_ssh_password
175 name: 'compass-ubuntu1604-defaults'
184 <<: *k8s_ssh_password
189 ########################
191 ########################
193 name: 'iec-{iecType}-{installer}-{deploy_type}-{os}-daily-{stream}'
194 disabled: '{obj:disabled}'
196 node: '{slave-label}'
204 use-build-blocker: true
206 - '.*-fuel-{deploy_type}-.*'
207 - '.*-compass-{deploy_type}-.*'
208 blocking-level: 'NODE'
212 name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO $IEC_TYPE'
215 - 'iec-{iecType}-{installer}-{deploy_type}-{os}-daily-{stream}-trigger'
218 - lf-infra-parameters:
222 - '{project}-defaults'
223 - '{installer}-{os}-defaults'
225 name: DEPLOY_SCENARIO
226 default: '{scenario}'
233 - project: 'iec-{iecType}-deploy-{installer}-{deploy_type}-{os}-daily-{stream}'
234 current-parameters: true
235 predefined-parameters:
236 DEPLOY_SCENARIO={scenario}
239 - project: 'validation-enea-daily-{stream}'
241 current-parameters: true
242 predefined-parameters: |
243 BLUEPRINT={project-name}
250 {%- for uc in usecase -%}
251 iec-{{ iecType }}-install-{{ uc | first }}-{{ installer }}-{{ deploy_type }}-{{ os }}-daily-{{ stream }}
252 {%- if not loop.last -%},{%- endif -%}
254 current-parameters: true
258 build-step-failure-threshold: 'never'
259 failure-threshold: 'never'
260 unstable-threshold: 'FAILURE'
261 - project: 'iec-{iecType}-destroy-{installer}-{deploy_type}-{os}-daily-{stream}'
262 current-parameters: false
263 predefined-parameters: |
264 DEPLOY_SCENARIO={scenario}
270 name: 'iec-{iecType}-deploy-{installer}-{deploy_type}-{os}-daily-{stream}'
272 node: '{slave-label}'
273 properties: &properties
280 use-build-blocker: true
282 - '.*-{iecType}-deploy-{installer}-{deploy_type}-.*'
283 - '.*-{iecType}-destroy-{installer}-{deploy_type}-.*'
284 - '.*-{iecType}-install-.*-{installer}-{deploy_type}-.*'
285 blocking-level: 'NODE'
288 - lf-infra-parameters:
292 - '{project}-defaults'
293 - '{installer}-{os}-defaults'
295 name: DEPLOY_SCENARIO
296 default: '{scenario}'
306 name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO $IEC_TYPE'
310 credentials-id: '{jenkins-ssh-credential}'
311 url: '{git-url}/{project}.git'
314 - 'refs/heads/{branch}'
320 timeout: '{submodule-timeout}'
321 choosing-strategy: default
324 - description-setter:
325 description: "POD: $NODE_NAME"
327 condition-kind: regex-match
332 !include-raw-escape: ./iec-compass-build.sh
334 !include-raw-escape: ./iec-compass-deploy.sh
336 !include-raw-escape: ./iec-fdn-install.sh
338 condition-kind: regex-match
343 !include-raw-escape: ./iec-fuel-deploy.sh
345 publishers: &publishers
347 recipients: armband@enea.com
351 name: 'iec-{iecType}-destroy-{installer}-{deploy_type}-{os}-daily-{stream}'
353 node: '{slave-label}'
354 properties: *properties
356 - lf-infra-parameters:
360 - '{project}-defaults'
361 - '{installer}-{os}-defaults'
363 name: DEPLOY_SCENARIO
364 default: '{scenario}'
370 default: '-EEE -o {os}'
376 - description-setter:
377 description: "POD: $NODE_NAME"
379 !include-raw-escape: ./iec-{installer}-destroy.sh
381 publishers: *publishers
384 name: 'iec-{iecType}-install-{usecase}-{installer}-{deploy_type}-{os}-daily-{stream}'
386 node: '{slave-label}'
387 properties: *properties
390 - lf-infra-parameters:
394 - '{project}-defaults'
395 - '{installer}-{os}-defaults'
399 name: '$BUILD_NUMBER - Usecase: ${usecase} DeployType: ${installer}-${deploy_type}'
405 !include-raw-escape: ./iec-{usecase}.sh
407 publishers: *publishers
410 ########################
412 ########################
414 # ----------------------------------------------------------------
415 # Akraino IEC CI Baremetal Triggers running against master branch
416 # ----------------------------------------------------------------
418 name: 'iec-type2-fuel-virtual-ubuntu1604-daily-master-trigger'
420 - timed: '0 1 * * 1,3,5'
422 name: 'iec-type2-fuel-baremetal-ubuntu1604-daily-master-trigger'
426 name: 'iec-type2-compass-virtual-ubuntu1604-daily-master-trigger'
428 - timed: '0 13 * * *'
430 name: 'iec-type2-fuel-virtual-ubuntu1804-daily-master-trigger'
432 - timed: '0 1 * * 2,6'
434 name: 'iec-type2-fuel-baremetal-ubuntu1804-daily-master-trigger'
438 name: 'iec-type2-fuel-virtual-centos7-daily-master-trigger'
440 - timed: '0 1 * * 4,7'
442 name: 'iec-type2-fuel-baremetal-centos7-daily-master-trigger'
446 name: 'iec-type1-compass-virtual-ubuntu1604-daily-master-trigger'
448 - timed: '0 19 * * *'