blob: dcbf82b0395aa124f4944e198b2924a078c52e0e [file] [log] [blame]
Scott Bakerff887712020-04-29 13:39:41 -07001---
2# device-management tests
3
4- project:
5 name: device-management-e2e
6
7 project-name: '{name}'
8
9 jobs:
10 # Per-patchset Pod builds on Tucson pod
11 - 'verify_physical_device-management_patchset_manual':
12 name: 'verify_physical_device-management_patchset_manual'
13 testvm: 'tucson-pod'
14 config-pod: 'tucson-pod'
15 branch: 'master'
Girish Gowdrab6015cf2021-03-18 12:55:20 -070016 oltDebVersion: 'openolt_asfvolt16-3.3.3-1a5d68b50d8bcc5ba6cb1630d3294c30c37cd2f5-40G-NNI.deb'
Scott Bakerff887712020-04-29 13:39:41 -070017 profile: 'Default'
Scott Bakerf21f8b82020-05-05 17:33:13 -070018 time-trigger: "@daily"
Scott Bakerff887712020-04-29 13:39:41 -070019
20- job-template:
21 id: 'device-management-patch-test'
22 name: 'verify_{project}_sanity-test{name-extension}'
23 extra-helm-flags: ''
24 skip-vote: false
Matteo Scandolo37f168b2021-04-15 16:20:46 -070025 volthaSystemTestsChange: ''
26 volthaHelmChartsChange: ''
Scott Bakerff887712020-04-29 13:39:41 -070027
28 description: |
29 <!-- Managed by Jenkins Job Builder -->
30 Created by {id} job-template from ci-management/jjb/device-management.yaml <br /><br />
31 Validation for device-management using mock redfish servers
32
33 properties:
34 - cord-infra-properties:
35 build-days-to-keep: '{build-days-to-keep}'
36 artifact-num-to-keep: '{artifact-num-to-keep}'
37
38 wrappers:
39 - lf-infra-wrappers:
40 build-timeout: '{build-timeout}'
41 jenkins-ssh-credential: '{jenkins-ssh-credential}'
42
43 parameters:
44 - string:
45 name: buildNode
46 default: 'ubuntu16.04-basebuild-4c-8g'
47 description: 'Name of the Jenkins node to run the job on'
48
49 - string:
Matteo Scandolo37f168b2021-04-15 16:20:46 -070050 name: branch
Scott Bakerff887712020-04-29 13:39:41 -070051 default: 'master'
52 description: 'Name of the repo branch to use'
53
54 - string:
55 name: gerritProject
56 default: '$GERRIT_PROJECT'
57 description: 'Name of the Gerrit project'
58
59 - string:
Matteo Scandolo37f168b2021-04-15 16:20:46 -070060 name: gerritRefspec
61 default: '$GERRIT_REFSPEC'
62 description: 'PatchSet REFSPEC in Gerrit, example value: "refs/changes/79/18779/13"'
Scott Bakerff887712020-04-29 13:39:41 -070063
64 - string:
65 name: extraHelmFlags
66 default: '{extra-helm-flags}'
67 description: 'Helm flags to pass to ./voltha up'
68
Matteo Scandolo37f168b2021-04-15 16:20:46 -070069 - string:
70 name: volthaSystemTestsChange
71 default: '{volthaSystemTestsChange}'
72 description: 'Download a change for gerrit in the voltha-system-tests repo, example value: "refs/changes/79/18779/13"'
73
74 - string:
75 name: volthaHelmChartsChange
76 default: '{volthaHelmChartsChange}'
77 description: 'Download a change for gerrit in the voltha-helm-charts repo, example value: "refs/changes/79/18779/13"'
78
Scott Bakerff887712020-04-29 13:39:41 -070079 project-type: pipeline
80 concurrent: true
81
82 dsl: !include-raw-escape: pipeline/{pipeline-script}
83
84 triggers:
85 - gerrit:
86 server-name: '{gerrit-server-name}'
87 dependency-jobs: '{dependency-jobs}'
88 silent-start: true
89 trigger-on:
90 - patchset-created-event:
91 exclude-drafts: true
92 exclude-trivial-rebase: false
93 exclude-no-code-change: true
94 - draft-published-event
95 - comment-added-contains-event:
96 comment-contains-value: '(?i)^.*recheck$'
97 projects:
98 - project-compare-type: REG_EXP
99 project-pattern: '^device-management$'
100 branches:
101 - branch-compare-type: REG_EXP
102 branch-pattern: '{branch-regexp}'
103 file-paths:
104 - compare-type: REG_EXP
105 pattern: '{all-files-regexp}'
106 skip-vote:
107 successful: '{skip-vote}'
108 failed: '{skip-vote}'
109 unstable: '{skip-vote}'
110 notbuilt: '{skip-vote}'
111
112# POD Per Patchset Pipeline Jobs
113
114- job-template:
115 name: '{name}'
116 id: verify_physical_device-management_patchset_manual
117 description: |
118 <!-- Managed by Jenkins Job Builder -->
119 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
120 Created from job-template {id} from ci-management/jjb/device-management.yaml <br />
121 Created by Andy Bavier, andy@opennetworking.org <br />
122 Copyright (c) 2019 Open Networking Foundation (ONF)
123 sandbox: true
124 pipeline-script: 'device-management-physical-build-and-tests.groovy'
125
126 properties:
127 - cord-infra-properties:
128 build-days-to-keep: '{build-days-to-keep}'
129 artifact-num-to-keep: '{artifact-num-to-keep}'
130
131 parameters:
132 - string:
133 name: buildNode
134 default: '{testvm}'
135 description: 'Pod management node'
136
137 - string:
138 name: manifestUrl
139 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
140 description: 'URL to the repo manifest'
141
142 - string:
143 name: manifestBranch
144 default: master
145 description: 'Name of the repo branch to use'
146
147 - string:
148 name: gerritProject
Scott Bakerf21f8b82020-05-05 17:33:13 -0700149 default: 'device-management'
Scott Bakerff887712020-04-29 13:39:41 -0700150 description: 'Name of the Gerrit project'
151
152 - string:
Scott Bakerf21f8b82020-05-05 17:33:13 -0700153 name: gerritRefSpec
154 default: '$GERRIT_REFSPEC'
155 description: 'Refspec for the Gerrit patchset'
Scott Bakerff887712020-04-29 13:39:41 -0700156
157 - string:
Scott Bakerf21f8b82020-05-05 17:33:13 -0700158 name: gerritEventCommentText
159 default: '$GERRIT_EVENT_COMMENT_TEXT'
160 description: 'Comment text from gerrit commit'
Scott Bakerff887712020-04-29 13:39:41 -0700161
162 - string:
163 name: cordRepoUrl
164 default: '{gerrit-server-url}'
165 description: 'The URL of the CORD Project repository'
166
167 - string:
168 name: podName
169 default: '{config-pod}'
170
171 - string:
172 name: deploymentConfigFile
173 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
174 description: 'Path of deployment config file'
175
176 - string:
177 name: kindVolthaValuesFile
178 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
179 description: 'Path of kind-voltha values override file'
180
181 - string:
182 name: sadisConfigFile
183 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
184 description: 'Path of SADIS config to load'
185
186 - string:
187 name: localConfigDir
188 default: null
189 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
190
191 - string:
192 name: configRepo
193 default: 'pod-configs'
194 description: 'A repository containing the config files, will be checked out if specified'
195
196 - string:
197 name: oltDebVersion
198 default: '{oltDebVersion}'
199 description: 'OLT Software version to install'
200
201 - string:
202 name: branch
203 default: '{branch}'
204
205 - string:
206 name: profile
207 default: '{profile}'
208 description: 'Technology Profile pushed to the ETCD'
209
210 - string:
211 name: notificationEmail
212 default: 'andy@opennetworking.org'
213 description: ''
214
215 - bool:
216 name: reinstallOlt
217 default: true
218 description: "Re-install OLT software"
219
Scott Bakerff887712020-04-29 13:39:41 -0700220 - string:
221 name: extraRobotArgs
222 default: '-i sanity'
223 description: 'Arguments to pass to robot'
224
225 project-type: pipeline
226 concurrent: true
227
228 dsl: !include-raw-escape: pipeline/{pipeline-script}
229
230 triggers:
231 - gerrit:
232 server-name: '{gerrit-server-name}'
233 dependency-jobs: '{dependency-jobs}'
234 silent-start: false
235 successful-message: "PASSED hardware test"
236 failure-message: "FAILED hardware test"
237 unstable-message: "UNSTABLE hardware test"
238 trigger-on:
239 - comment-added-contains-event:
240 comment-contains-value: '^hardware test$'
241 - comment-added-contains-event:
242 comment-contains-value: '^hardware test with delay$'
243 projects:
244 - project-compare-type: REG_EXP
245 project-pattern: '^device-management$'
246 branches:
247 - branch-compare-type: PLAIN
248 branch-pattern: 'master'
Scott Baker9866dd62020-05-14 11:27:53 -0700249 - timed: |
250 TZ=America/Los_Angeles
251 {time-trigger}