blob: cd8b9f6d723ee88a45c6fa74ab09fafc868a08f4 [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'
16 oltDebVersion: 'openolt_asfvolt16-2.3.0-bc6e0853e0e8bf6bd7e4223d4a7ee0dd35ce634d.deb'
17 profile: 'Default'
18 withPatchset: true
19
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
25
26 description: |
27 <!-- Managed by Jenkins Job Builder -->
28 Created by {id} job-template from ci-management/jjb/device-management.yaml <br /><br />
29 Validation for device-management using mock redfish servers
30
31 properties:
32 - cord-infra-properties:
33 build-days-to-keep: '{build-days-to-keep}'
34 artifact-num-to-keep: '{artifact-num-to-keep}'
35
36 wrappers:
37 - lf-infra-wrappers:
38 build-timeout: '{build-timeout}'
39 jenkins-ssh-credential: '{jenkins-ssh-credential}'
40
41 parameters:
42 - string:
43 name: buildNode
44 default: 'ubuntu16.04-basebuild-4c-8g'
45 description: 'Name of the Jenkins node to run the job on'
46
47 - string:
48 name: manifestUrl
49 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
50 description: 'URL to the repo manifest'
51
52 - string:
53 name: manifestBranch
54 default: 'master'
55 description: 'Name of the repo branch to use'
56
57 - string:
58 name: gerritProject
59 default: '$GERRIT_PROJECT'
60 description: 'Name of the Gerrit project'
61
62 - string:
63 name: gerritChangeNumber
64 default: '$GERRIT_CHANGE_NUMBER'
65 description: 'Changeset number in Gerrit'
66
67 - string:
68 name: gerritPatchsetNumber
69 default: '$GERRIT_PATCHSET_NUMBER'
70 description: 'PatchSet number in Gerrit'
71
72 - string:
73 name: extraHelmFlags
74 default: '{extra-helm-flags}'
75 description: 'Helm flags to pass to ./voltha up'
76
77 project-type: pipeline
78 concurrent: true
79
80 dsl: !include-raw-escape: pipeline/{pipeline-script}
81
82 triggers:
83 - gerrit:
84 server-name: '{gerrit-server-name}'
85 dependency-jobs: '{dependency-jobs}'
86 silent-start: true
87 trigger-on:
88 - patchset-created-event:
89 exclude-drafts: true
90 exclude-trivial-rebase: false
91 exclude-no-code-change: true
92 - draft-published-event
93 - comment-added-contains-event:
94 comment-contains-value: '(?i)^.*recheck$'
95 projects:
96 - project-compare-type: REG_EXP
97 project-pattern: '^device-management$'
98 branches:
99 - branch-compare-type: REG_EXP
100 branch-pattern: '{branch-regexp}'
101 file-paths:
102 - compare-type: REG_EXP
103 pattern: '{all-files-regexp}'
104 skip-vote:
105 successful: '{skip-vote}'
106 failed: '{skip-vote}'
107 unstable: '{skip-vote}'
108 notbuilt: '{skip-vote}'
109
110# POD Per Patchset Pipeline Jobs
111
112- job-template:
113 name: '{name}'
114 id: verify_physical_device-management_patchset_manual
115 description: |
116 <!-- Managed by Jenkins Job Builder -->
117 Automated build on POD {config-pod} using {pipeline-script} <br /><br />
118 Created from job-template {id} from ci-management/jjb/device-management.yaml <br />
119 Created by Andy Bavier, andy@opennetworking.org <br />
120 Copyright (c) 2019 Open Networking Foundation (ONF)
121 sandbox: true
122 pipeline-script: 'device-management-physical-build-and-tests.groovy'
123
124 properties:
125 - cord-infra-properties:
126 build-days-to-keep: '{build-days-to-keep}'
127 artifact-num-to-keep: '{artifact-num-to-keep}'
128
129 parameters:
130 - string:
131 name: buildNode
132 default: '{testvm}'
133 description: 'Pod management node'
134
135 - string:
136 name: manifestUrl
137 default: '{gerrit-server-url}/{voltha-test-manifest-repo}'
138 description: 'URL to the repo manifest'
139
140 - string:
141 name: manifestBranch
142 default: master
143 description: 'Name of the repo branch to use'
144
145 - string:
146 name: gerritProject
147 default: '$GERRIT_PROJECT'
148 description: 'Name of the Gerrit project'
149
150 - string:
151 name: gerritChangeNumber
152 default: '$GERRIT_CHANGE_NUMBER'
153 description: 'Changeset number in Gerrit'
154
155 - string:
156 name: gerritPatchsetNumber
157 default: '$GERRIT_PATCHSET_NUMBER'
158 description: 'PatchSet number in Gerrit'
159
160 - string:
161 name: cordRepoUrl
162 default: '{gerrit-server-url}'
163 description: 'The URL of the CORD Project repository'
164
165 - string:
166 name: podName
167 default: '{config-pod}'
168
169 - string:
170 name: deploymentConfigFile
171 default: 'pod-configs/deployment-configs/{config-pod}.yaml'
172 description: 'Path of deployment config file'
173
174 - string:
175 name: kindVolthaValuesFile
176 default: 'pod-configs/kubernetes-configs/voltha/{config-pod}.yml'
177 description: 'Path of kind-voltha values override file'
178
179 - string:
180 name: sadisConfigFile
181 default: 'voltha/voltha-system-tests/tests/data/{config-pod}-sadis.json'
182 description: 'Path of SADIS config to load'
183
184 - string:
185 name: localConfigDir
186 default: null
187 description: 'If specified, config file paths are relative to this dir; otherwise $WORKSPACE'
188
189 - string:
190 name: configRepo
191 default: 'pod-configs'
192 description: 'A repository containing the config files, will be checked out if specified'
193
194 - string:
195 name: oltDebVersion
196 default: '{oltDebVersion}'
197 description: 'OLT Software version to install'
198
199 - string:
200 name: branch
201 default: '{branch}'
202
203 - string:
204 name: profile
205 default: '{profile}'
206 description: 'Technology Profile pushed to the ETCD'
207
208 - string:
209 name: notificationEmail
210 default: 'andy@opennetworking.org'
211 description: ''
212
213 - bool:
214 name: reinstallOlt
215 default: true
216 description: "Re-install OLT software"
217
218 - bool:
219 name: withPatchset
220 default: true
221 description: "Build with Gerrit patchset"
222
223 - string:
224 name: extraRobotArgs
225 default: '-i sanity'
226 description: 'Arguments to pass to robot'
227
228 project-type: pipeline
229 concurrent: true
230
231 dsl: !include-raw-escape: pipeline/{pipeline-script}
232
233 triggers:
234 - gerrit:
235 server-name: '{gerrit-server-name}'
236 dependency-jobs: '{dependency-jobs}'
237 silent-start: false
238 successful-message: "PASSED hardware test"
239 failure-message: "FAILED hardware test"
240 unstable-message: "UNSTABLE hardware test"
241 trigger-on:
242 - comment-added-contains-event:
243 comment-contains-value: '^hardware test$'
244 - comment-added-contains-event:
245 comment-contains-value: '^hardware test with delay$'
246 projects:
247 - project-compare-type: REG_EXP
248 project-pattern: '^device-management$'
249 branches:
250 - branch-compare-type: PLAIN
251 branch-pattern: 'master'
252