blob: 949c741368542c01e3404ce3fb29b07083c9e8cf [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
Suchitra Vemuri2c8ec0b2018-05-07 13:35:54 -070084 - string:
85 name: notificationEmail
86 default: 'kailash@opennetworking.org, you@opennetworking.org, suchitra@opennetworking.org'
87 description: ''
88
89 concurrent: true
90
91 pipeline-scm:
92 script-path: '{Jenkinsfile}'
93 scm:
94 - git:
Kailash Khalasi7637aeb2018-08-23 10:30:09 -070095 url: '{gerrit-server-url}/cord-tester'
Suchitra Vemuri2c8ec0b2018-05-07 13:35:54 -070096 branches:
97 - '{branch}'
98
99- job-template:
Kailash Khalasi9559f362018-09-14 13:53:28 -0700100 name: 'build_{profile}_{config-pod}_{branch}'
Kailash Khalasi2eacfc52018-08-29 09:03:21 -0700101 id: build_pod_timer
Suchitra Vemuri2c8ec0b2018-05-07 13:35:54 -0700102 description: |
103 <!-- Managed by Jenkins Job Builder -->
Kailash Khalasi2eacfc52018-08-29 09:03:21 -0700104 Nightly Kubernetes tests on {config-pod} <br /><br />
Suchitra Vemuricbb295e2018-06-01 18:48:30 -0700105 Created from job-template {id} from ci-management/jjb/cord-test/cord-test-pipeline.yaml <br />
106 Created by Suchitra Vemuri, suchitra@opennetworking.org <br />
107 Copyright (c) 2017 Open Networking Foundation (ONF)
108
109 <<: *test-pipe-job-boiler-plate
110
111 parameters:
112 - string:
113 name: TestNodeName
114 default: '{testvm}'
115 description: 'Jenkins node name of TestVM Node'
116
117 - string:
Kailash Khalasi2eacfc52018-08-29 09:03:21 -0700118 name: cordRepoUrl
119 default: '{gerrit-server-url}'
120 description: 'The URL of the CORD Project repository'
Suchitra Vemuricbb295e2018-06-01 18:48:30 -0700121
122 - string:
Kailash Khalasi2eacfc52018-08-29 09:03:21 -0700123 name: configBaseDir
124 default: 'pod-configs'
Suchitra Vemuricbb295e2018-06-01 18:48:30 -0700125 description: 'The directory inside the POD configs repository'
126
127 - string:
Kailash Khalasi2eacfc52018-08-29 09:03:21 -0700128 name: configDeploymentDir
129 default: 'deployment-configs'
130 description: 'The deployment configs folder'
131
132 - string:
133 name: configKubernetesDir
134 default: 'kubernetes-configs'
135 description: 'The kubernetes config folder'
136
137 - string:
Kailash Khalasi619e6882018-09-13 13:15:37 -0700138 name: configToscaDir
139 default: 'tosca-configs'
140 description: 'The tosca config folder'
141
142 - string:
Kailash Khalasi2eacfc52018-08-29 09:03:21 -0700143 name: configFileName
144 default: '{config-pod}'
145 description: 'The config file'
Suchitra Vemuricbb295e2018-06-01 18:48:30 -0700146
147 - string:
Kailash Khalasid9e6aff2018-08-27 15:10:16 -0700148 name: oltDebVersion
Kailash Khalasibd659412018-08-28 10:37:05 -0700149 default: '{oltDebVersion}'
Kailash Khalasid9e6aff2018-08-27 15:10:16 -0700150 description: 'OLT Software version to install'
151
152 - string:
Suchitra Vemuricbb295e2018-06-01 18:48:30 -0700153 name: branch
154 default: '{branch}'
155
156 - string:
Kailash Khalasi9559f362018-09-14 13:53:28 -0700157 name: profile
158 default: '{profile}'
159 description: 'Profile in which this job installs'
Suchitra Vemuricbb295e2018-06-01 18:48:30 -0700160
Kailash Khalasice9eaec2018-09-14 12:01:56 -0700161 - bool:
162 name: configurePod
163 default: true
164 description: "Configure POD via TOSCA post build"
165
Kailash Khalasi9559f362018-09-14 13:53:28 -0700166 - string:
167 name: notificationEmail
168 default: 'kailash@opennetworking.org, you@opennetworking.org, suchitra@opennetworking.org'
169 description: ''
170
Suchitra Vemuricbb295e2018-06-01 18:48:30 -0700171 concurrent: true
172
173 pipeline-scm:
174 script-path: '{Jenkinsfile}'
175 scm:
176 - git:
177 url: '{gerrit-server-url}/cord-tester'
178 branches:
179 - '{branch}'
180
181 triggers:
182 - timed: |
183 TZ=America/Los_Angeles
Suchitra Vemuri6f81c812018-08-06 12:46:36 -0700184 H {time} {day} * *
Kailash Khalasi9559f362018-09-14 13:53:28 -0700185
186- job-template:
187 name: 'build_{profile}_{config-pod}_{branch}_test'
188 id: build_pod_test
189 description: |
190 <!-- Managed by Jenkins Job Builder -->
191 Post Tests on {config-pod} triggered by build_{config-pod}_{branch} <br /><br />
192 Created from job-template {id} from ci-management/jjb/cord-test/cord-test-pipeline.yaml <br />
193 Created by Kailash Khalasi - kailash@opennetworking.org <br />
194 Copyright (c) 2017 Open Networking Foundation (ONF)
195
196 <<: *test-pipe-job-boiler-plate
197
198 parameters:
199 - string:
200 name: TestNodeName
201 default: '{testvm}'
202 description: 'Jenkins node name of TestVM Node'
203
204 - string:
205 name: cordRepoUrl
206 default: '{gerrit-server-url}'
207 description: 'The URL of the CORD Project repository'
208
209 - string:
210 name: configBaseDir
211 default: 'pod-configs'
212 description: 'The directory inside the POD configs repository'
213
214 - string:
215 name: configDeploymentDir
216 default: 'deployment-configs'
217 description: 'The deployment configs folder'
218
219 - string:
220 name: configKubernetesDir
221 default: 'kubernetes-configs'
222 description: 'The kubernetes config folder'
223
224 - string:
225 name: configToscaDir
226 default: 'tosca-configs'
227 description: 'The tosca config folder'
228
229 - string:
230 name: configFileName
231 default: '{config-pod}'
232 description: 'The config file'
233
234 - string:
235 name: branch
236 default: '{branch}'
237
238 - string:
239 name: notificationEmail
240 default: 'kailash@opennetworking.org, you@opennetworking.org, suchitra@opennetworking.org'
241 description: ''
242
243 concurrent: true
244
245 pipeline-scm:
246 script-path: '{Jenkinsfile}'
247 scm:
248 - git:
249 url: '{gerrit-server-url}/cord-tester'
250 branches:
251 - '{branch}'
252
253 triggers:
254 - reverse:
255 jobs: 'build_{profile}_{config-pod}_{branch}'
256 result: 'success'