blob: 3ecba2e9552c6059c308418986856638ee00533d [file] [log] [blame]
Kailash Khalasi417d13f2018-04-17 12:38:48 -07001---
2# POD Nightly Build Pipeline Jobs
3
4- test-pipe-job-boiler-plate: &test-pipe-job-boiler-plate
5 name: test-pipe-job-boiler-plate
6
7 project-type: pipeline
8
9 sandbox: true
10
11 properties:
12 - cord-infra-properties:
13 build-days-to-keep: '{build-days-to-keep}'
14 artifact-num-to-keep: '{artifact-num-to-keep}'
15
Kailash Khalasi417d13f2018-04-17 12:38:48 -070016
17- job-template:
Kailash Khalasi9559f362018-09-14 13:53:28 -070018 name: 'build_{profile}_{config-pod}_{branch}'
Suchitra Vemuri2c8ec0b2018-05-07 13:35:54 -070019 id: build_pod_manual
20 description: |
21 <!-- Managed by Jenkins Job Builder -->
Kailash Khalasi2eacfc52018-08-29 09:03:21 -070022 Manual Build on POD {config-pod} using {Jenkinsfile} <br /><br />
Suchitra Vemuri2c8ec0b2018-05-07 13:35:54 -070023 Created from job-template {id} from ci-management/jjb/cord-test/cord-test-pipeline.yaml <br />
24 Created by QA (Suchitra Vemuri - suchitra@opennetworking.org ) <br />
25 Copyright (c) 2018 Open Networking Foundation (ONF)
26
27 <<: *test-pipe-job-boiler-plate
28
29 parameters:
30 - string:
Kailash Khalasi7637aeb2018-08-23 10:30:09 -070031 name: TestNodeName
Kailash Khalasi2eacfc52018-08-29 09:03:21 -070032 default: '{testvm}'
33 description: 'Jenkins node name of TestVM Node'
Suchitra Vemuri2c8ec0b2018-05-07 13:35:54 -070034
35 - string:
Kailash Khalasi2eacfc52018-08-29 09:03:21 -070036 name: cordRepoUrl
37 default: '{gerrit-server-url}'
38 description: 'The URL of the CORD Project repository'
Suchitra Vemuri2c8ec0b2018-05-07 13:35:54 -070039
40 - string:
Kailash Khalasi2eacfc52018-08-29 09:03:21 -070041 name: configBaseDir
42 default: 'pod-configs'
Suchitra Vemuri2c8ec0b2018-05-07 13:35:54 -070043 description: 'The directory inside the POD configs repository'
44
45 - string:
Kailash Khalasi2eacfc52018-08-29 09:03:21 -070046 name: configDeploymentDir
47 default: 'deployment-configs'
48 description: 'The deployment configs folder'
49
50 - string:
51 name: configKubernetesDir
52 default: 'kubernetes-configs'
53 description: 'The kubernetes config folder'
54
55 - string:
Kailash Khalasi619e6882018-09-13 13:15:37 -070056 name: configToscaDir
57 default: 'tosca-configs'
58 description: 'The tosca config folder'
59
60 - string:
Kailash Khalasi2eacfc52018-08-29 09:03:21 -070061 name: configFileName
62 default: '{config-pod}'
63 description: 'The config file'
64
65 - string:
66 name: oltDebVersion
67 default: '{oltDebVersion}'
68 description: 'OLT Software version to install'
Suchitra Vemuri2c8ec0b2018-05-07 13:35:54 -070069
70 - string:
71 name: branch
72 default: '{branch}'
73
Kailash Khalasi9559f362018-09-14 13:53:28 -070074 - string:
75 name: profile
76 default: '{profile}'
77 description: 'Profile in which this job installs'
78
Kailash Khalasice9eaec2018-09-14 12:01:56 -070079 - bool:
80 name: configurePod
81 default: true
82 description: "Configure POD via TOSCA post build"
83
Kailash Khalasi9559f362018-09-14 13:53:28 -070084 - bool:
85 name: oltsPresent
86 default: false
87 description: "Set to true if OLTs present in this POD or if you do NOT want OLT software to be re-installed"
88
Suchitra Vemuri2c8ec0b2018-05-07 13:35:54 -070089 - string:
90 name: notificationEmail
91 default: 'kailash@opennetworking.org, you@opennetworking.org, suchitra@opennetworking.org'
92 description: ''
93
94 concurrent: true
95
96 pipeline-scm:
97 script-path: '{Jenkinsfile}'
98 scm:
99 - git:
Kailash Khalasi7637aeb2018-08-23 10:30:09 -0700100 url: '{gerrit-server-url}/cord-tester'
Suchitra Vemuri2c8ec0b2018-05-07 13:35:54 -0700101 branches:
102 - '{branch}'
103
104- job-template:
Kailash Khalasi9559f362018-09-14 13:53:28 -0700105 name: 'build_{profile}_{config-pod}_{branch}'
Kailash Khalasi2eacfc52018-08-29 09:03:21 -0700106 id: build_pod_timer
Suchitra Vemuri2c8ec0b2018-05-07 13:35:54 -0700107 description: |
108 <!-- Managed by Jenkins Job Builder -->
Kailash Khalasi2eacfc52018-08-29 09:03:21 -0700109 Nightly Kubernetes tests on {config-pod} <br /><br />
Suchitra Vemuricbb295e2018-06-01 18:48:30 -0700110 Created from job-template {id} from ci-management/jjb/cord-test/cord-test-pipeline.yaml <br />
111 Created by Suchitra Vemuri, suchitra@opennetworking.org <br />
112 Copyright (c) 2017 Open Networking Foundation (ONF)
113
114 <<: *test-pipe-job-boiler-plate
115
116 parameters:
117 - string:
118 name: TestNodeName
119 default: '{testvm}'
120 description: 'Jenkins node name of TestVM Node'
121
122 - string:
Kailash Khalasi2eacfc52018-08-29 09:03:21 -0700123 name: cordRepoUrl
124 default: '{gerrit-server-url}'
125 description: 'The URL of the CORD Project repository'
Suchitra Vemuricbb295e2018-06-01 18:48:30 -0700126
127 - string:
Kailash Khalasi2eacfc52018-08-29 09:03:21 -0700128 name: configBaseDir
129 default: 'pod-configs'
Suchitra Vemuricbb295e2018-06-01 18:48:30 -0700130 description: 'The directory inside the POD configs repository'
131
132 - string:
Kailash Khalasi2eacfc52018-08-29 09:03:21 -0700133 name: configDeploymentDir
134 default: 'deployment-configs'
135 description: 'The deployment configs folder'
136
137 - string:
138 name: configKubernetesDir
139 default: 'kubernetes-configs'
140 description: 'The kubernetes config folder'
141
142 - string:
Kailash Khalasi619e6882018-09-13 13:15:37 -0700143 name: configToscaDir
144 default: 'tosca-configs'
145 description: 'The tosca config folder'
146
147 - string:
Kailash Khalasi2eacfc52018-08-29 09:03:21 -0700148 name: configFileName
149 default: '{config-pod}'
150 description: 'The config file'
Suchitra Vemuricbb295e2018-06-01 18:48:30 -0700151
152 - string:
Kailash Khalasid9e6aff2018-08-27 15:10:16 -0700153 name: oltDebVersion
Kailash Khalasibd659412018-08-28 10:37:05 -0700154 default: '{oltDebVersion}'
Kailash Khalasid9e6aff2018-08-27 15:10:16 -0700155 description: 'OLT Software version to install'
156
157 - string:
Suchitra Vemuricbb295e2018-06-01 18:48:30 -0700158 name: branch
159 default: '{branch}'
160
161 - string:
Kailash Khalasi9559f362018-09-14 13:53:28 -0700162 name: profile
163 default: '{profile}'
164 description: 'Profile in which this job installs'
Suchitra Vemuricbb295e2018-06-01 18:48:30 -0700165
Kailash Khalasice9eaec2018-09-14 12:01:56 -0700166 - bool:
167 name: configurePod
168 default: true
169 description: "Configure POD via TOSCA post build"
170
Kailash Khalasi9559f362018-09-14 13:53:28 -0700171 - bool:
172 name: oltsPresent
173 default: false
174 description: "Set to true if OLTs present in this POD or if you do NOT want OLT software to be re-installed"
175
176 - string:
177 name: notificationEmail
178 default: 'kailash@opennetworking.org, you@opennetworking.org, suchitra@opennetworking.org'
179 description: ''
180
Suchitra Vemuricbb295e2018-06-01 18:48:30 -0700181 concurrent: true
182
183 pipeline-scm:
184 script-path: '{Jenkinsfile}'
185 scm:
186 - git:
187 url: '{gerrit-server-url}/cord-tester'
188 branches:
189 - '{branch}'
190
191 triggers:
192 - timed: |
193 TZ=America/Los_Angeles
Suchitra Vemuri6f81c812018-08-06 12:46:36 -0700194 H {time} {day} * *
Kailash Khalasi9559f362018-09-14 13:53:28 -0700195
196- job-template:
197 name: 'build_{profile}_{config-pod}_{branch}_test'
198 id: build_pod_test
199 description: |
200 <!-- Managed by Jenkins Job Builder -->
201 Post Tests on {config-pod} triggered by build_{config-pod}_{branch} <br /><br />
202 Created from job-template {id} from ci-management/jjb/cord-test/cord-test-pipeline.yaml <br />
203 Created by Kailash Khalasi - kailash@opennetworking.org <br />
204 Copyright (c) 2017 Open Networking Foundation (ONF)
205
206 <<: *test-pipe-job-boiler-plate
207
208 parameters:
209 - string:
210 name: TestNodeName
211 default: '{testvm}'
212 description: 'Jenkins node name of TestVM Node'
213
214 - string:
215 name: cordRepoUrl
216 default: '{gerrit-server-url}'
217 description: 'The URL of the CORD Project repository'
218
219 - string:
220 name: configBaseDir
221 default: 'pod-configs'
222 description: 'The directory inside the POD configs repository'
223
224 - string:
225 name: configDeploymentDir
226 default: 'deployment-configs'
227 description: 'The deployment configs folder'
228
229 - string:
230 name: configKubernetesDir
231 default: 'kubernetes-configs'
232 description: 'The kubernetes config folder'
233
234 - string:
235 name: configToscaDir
236 default: 'tosca-configs'
237 description: 'The tosca config folder'
238
239 - string:
240 name: configFileName
241 default: '{config-pod}'
242 description: 'The config file'
243
244 - string:
245 name: branch
246 default: '{branch}'
247
248 - string:
249 name: notificationEmail
250 default: 'kailash@opennetworking.org, you@opennetworking.org, suchitra@opennetworking.org'
251 description: ''
252
253 concurrent: true
254
255 pipeline-scm:
256 script-path: '{Jenkinsfile}'
257 scm:
258 - git:
259 url: '{gerrit-server-url}/cord-tester'
260 branches:
261 - '{branch}'
262
263 triggers:
264 - reverse:
265 jobs: 'build_{profile}_{config-pod}_{branch}'
266 result: 'success'