blob: ea1b9fcb9dfb5f81bac1efcfd516486a1debefb1 [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'
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
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
Scott Bakerf21f8b82020-05-05 17:33:13 -0700147 default: 'device-management'
Scott Bakerff887712020-04-29 13:39:41 -0700148 description: 'Name of the Gerrit project'
149
150 - string:
Scott Bakerf21f8b82020-05-05 17:33:13 -0700151 name: gerritRefSpec
152 default: '$GERRIT_REFSPEC'
153 description: 'Refspec for the Gerrit patchset'
Scott Bakerff887712020-04-29 13:39:41 -0700154
155 - string:
Scott Bakerf21f8b82020-05-05 17:33:13 -0700156 name: gerritEventCommentText
157 default: '$GERRIT_EVENT_COMMENT_TEXT'
158 description: 'Comment text from gerrit commit'
Scott Bakerff887712020-04-29 13:39:41 -0700159
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
Scott Bakerff887712020-04-29 13:39:41 -0700218 - string:
219 name: extraRobotArgs
220 default: '-i sanity'
221 description: 'Arguments to pass to robot'
222
223 project-type: pipeline
224 concurrent: true
225
226 dsl: !include-raw-escape: pipeline/{pipeline-script}
227
228 triggers:
229 - gerrit:
230 server-name: '{gerrit-server-name}'
231 dependency-jobs: '{dependency-jobs}'
232 silent-start: false
233 successful-message: "PASSED hardware test"
234 failure-message: "FAILED hardware test"
235 unstable-message: "UNSTABLE hardware test"
236 trigger-on:
237 - comment-added-contains-event:
238 comment-contains-value: '^hardware test$'
239 - comment-added-contains-event:
240 comment-contains-value: '^hardware test with delay$'
241 projects:
242 - project-compare-type: REG_EXP
243 project-pattern: '^device-management$'
244 branches:
245 - branch-compare-type: PLAIN
246 branch-pattern: 'master'
247