blob: a50a08055e145ecfeda4a01c4a7b41ebaeb9601c [file] [log] [blame]
Brian O'Connor9fbe7722017-10-27 12:44:04 -07001---
2
3- job_boiler_plate: &job_boiler_plate
4 name: job-boiler-plate
5
6 project-type: freestyle
7 node: '{build-node}'
8
9 ######################
10 # Default parameters #
11 ######################
12
13 branch: master
Brian O'Connor9fbe7722017-10-27 12:44:04 -070014 git-url: '$GIT_URL/$GERRIT_PROJECT'
15
16 #####################
17 # Job Configuration #
18 #####################
19
20 properties:
21 - lf-infra-properties:
22 project: '{project}'
23 build-days-to-keep: '{build-days-to-keep}'
24 #- github:
25 # url: '{git-url}/{github-org}/{project}'
26
27 parameters:
28 - lf-infra-parameters:
29 project: '{project}'
Ray Milkeye0b54ef2017-10-31 16:17:34 -070030 branch: '{stream}'
Brian O'Connor9fbe7722017-10-27 12:44:04 -070031 stream: '{stream}'
32 lftools-version: '{lftools-version}'
33
34 wrappers:
35 - lf-infra-wrappers:
36 build-timeout: '{build-timeout}'
37 jenkins-ssh-credential: '{jenkins-ssh-credential}'
38
39
40- verify_boiler_plate: &verify_boiler_plate
41 name: verify_boiler_plate
42
43 concurrent: true
44
45 scm:
Zack Williams00d2c622020-09-30 09:17:48 -070046 - onf-infra-gerrit-scm:
Brian O'Connore78aff62017-10-30 14:08:51 -070047 git-url: '{git-url}'
Brian O'Connor9fbe7722017-10-27 12:44:04 -070048 refspec: '$GERRIT_REFSPEC'
49 branch: '$GERRIT_BRANCH'
Zack Williams05f06082020-01-22 14:19:34 -070050 submodule-disable: '{submodule-disable}'
Brian O'Connor9fbe7722017-10-27 12:44:04 -070051 submodule-recursive: '{submodule-recursive}'
Zack Williams05f06082020-01-22 14:19:34 -070052 submodule-timeout: '{submodule-timeout}'
Brian O'Connore78aff62017-10-30 14:08:51 -070053 choosing-strategy: gerrit
Brian O'Connor9fbe7722017-10-27 12:44:04 -070054 jenkins-ssh-credential: '{jenkins-ssh-credential}'
Zack Williams00d2c622020-09-30 09:17:48 -070055 basedir: "$WORKSPACE"
Brian O'Connor9fbe7722017-10-27 12:44:04 -070056
57 triggers:
58 - gerrit:
59 #server-name: '{gerrit-server-name}'
60 server-name: 'ONOS Project Gerrit'
61 #trigger-on: '{obj:gerrit_verify_triggers}'
62 trigger-on:
63 - patchset-created-event:
64 exclude-drafts: true
65 exclude-trivial-rebase: false
66 exclude-no-code-change: true
Yuta HIGUCHI19f94672018-05-04 12:33:23 -070067 - draft-published-event: true
Brian O'Connoredd87412017-10-30 19:27:08 -070068 - comment-added-contains-event:
69 comment-contains-value: '(?i)^.*recheck$'
Brian O'Connor9fbe7722017-10-27 12:44:04 -070070 projects:
71 - project-compare-type: PLAIN
Ray Milkey20beeae2017-10-31 15:26:10 -070072 project-pattern: '{project}'
Brian O'Connor9fbe7722017-10-27 12:44:04 -070073 branches:
74 - branch-compare-type: ANT
Ray Milkeye0b54ef2017-10-31 16:17:34 -070075 branch-pattern: '**/{stream}'
Ray Milkeyc0c94f52017-10-30 17:36:14 -070076 #file-paths: '{obj:gerrit_trigger_file_paths}'
Brian O'Connor9fbe7722017-10-27 12:44:04 -070077
Ray Milkeye2175452020-05-06 12:22:58 -070078- weekly_boiler_plate: &weekly_boiler_plate
79 name: weekly_boiler_plate
Ray Milkey8e462202017-11-02 10:18:37 -070080
81 concurrent: true
82
83 scm:
Zack Williams00d2c622020-09-30 09:17:48 -070084 - onf-infra-gerrit-scm:
Ray Milkey8e462202017-11-02 10:18:37 -070085 git-url: '{git-url}'
86 refspec: '$GERRIT_REFSPEC'
87 branch: '$GERRIT_BRANCH'
Zack Williams05f06082020-01-22 14:19:34 -070088 submodule-disable: '{submodule-disable}'
Ray Milkey8e462202017-11-02 10:18:37 -070089 submodule-recursive: '{submodule-recursive}'
Zack Williams05f06082020-01-22 14:19:34 -070090 submodule-timeout: '{submodule-timeout}'
Ray Milkey8e462202017-11-02 10:18:37 -070091 choosing-strategy: gerrit
92 jenkins-ssh-credential: '{jenkins-ssh-credential}'
Zack Williams00d2c622020-09-30 09:17:48 -070093 basedir: "$WORKSPACE"
Ray Milkey8e462202017-11-02 10:18:37 -070094
95 triggers:
Ray Milkeye2175452020-05-06 12:22:58 -070096 - timed: '@weekly'
Ray Milkey8e462202017-11-02 10:18:37 -070097
Daniele Moroce4cc702021-02-26 18:57:30 +010098 # FIXME - there is a Slack integration plugin in 2.0.3
Ray Milkeyc6e9a852018-01-30 13:27:06 -080099 publishers:
100 - raw:
101 xml: |
102 <jenkins.plugins.slack.SlackNotifier plugin="slack@2.3">
103 <baseUrl/>
104 <teamDomain/>
105 <authToken/>
106 <authTokenCredentialId>slack-token</authTokenCredentialId>
107 <botUser>false</botUser>
108 <room>build-status</room>
109 <startNotification>false</startNotification>
110 <notifySuccess>false</notifySuccess>
111 <notifyAborted>true</notifyAborted>
112 <notifyNotBuilt>true</notifyNotBuilt>
113 <notifyUnstable>true</notifyUnstable>
114 <notifyRegression>true</notifyRegression>
115 <notifyFailure>true</notifyFailure>
116 <notifyBackToNormal>true</notifyBackToNormal>
117 <notifyRepeatedFailure>false</notifyRepeatedFailure>
118 <includeTestSummary>false</includeTestSummary>
119 <includeFailedTests>false</includeFailedTests>
120 <commitInfoChoice>AUTHORS_AND_TITLES</commitInfoChoice>
121 <includeCustomMessage>false</includeCustomMessage>
122 <customMessage/>
123 </jenkins.plugins.slack.SlackNotifier>
124
Daniele Moroce4cc702021-02-26 18:57:30 +0100125- post_merge_boiler_plate: &post_merge_boiler_plate
126 name: post_merge_boiler_plate
Ray Milkeyc6e9a852018-01-30 13:27:06 -0800127
Daniele Moroce4cc702021-02-26 18:57:30 +0100128 scm:
129 - onf-infra-gerrit-scm:
130 git-url: '{git-url}'
131 refspec: '$GERRIT_REFSPEC'
132 branch: '$GERRIT_BRANCH'
133 submodule-disable: '{submodule-disable}'
134 submodule-recursive: '{submodule-recursive}'
135 submodule-timeout: '{submodule-timeout}'
136 choosing-strategy: gerrit
137 jenkins-ssh-credential: '{jenkins-ssh-credential}'
138 basedir: "$WORKSPACE"
139
140 triggers:
141 - gerrit:
Daniele Moroce4cc702021-02-26 18:57:30 +0100142 server-name: 'ONOS Project Gerrit'
Daniele Moroce4cc702021-02-26 18:57:30 +0100143 trigger-on:
Daniele Moro344e9a92021-05-19 16:56:52 +0200144 - change-merged-event
Daniele Moroce4cc702021-02-26 18:57:30 +0100145 projects:
146 - project-compare-type: PLAIN
147 project-pattern: '{project}'
148 branches:
149 - branch-compare-type: ANT
150 branch-pattern: '**/{stream}'
151 #file-paths: '{obj:gerrit_trigger_file_paths}'
Ray Milkeyc6e9a852018-01-30 13:27:06 -0800152
Ray Milkeye2175452020-05-06 12:22:58 -0700153- weekly_boiler_plate_with_slack: &weekly_boiler_plate_with_slack
154 name: weekly_boiler_plate_with_slack
Ray Milkeyd9f73662017-11-06 10:29:51 -0800155
156 concurrent: true
157
158 scm:
Zack Williams00d2c622020-09-30 09:17:48 -0700159 - onf-infra-gerrit-scm:
Ray Milkeyd9f73662017-11-06 10:29:51 -0800160 git-url: '{git-url}'
161 refspec: '$GERRIT_REFSPEC'
162 branch: '$GERRIT_BRANCH'
Zack Williams05f06082020-01-22 14:19:34 -0700163 submodule-disable: '{submodule-disable}'
Ray Milkeyd9f73662017-11-06 10:29:51 -0800164 submodule-recursive: '{submodule-recursive}'
Zack Williams05f06082020-01-22 14:19:34 -0700165 submodule-timeout: '{submodule-timeout}'
Ray Milkeyd9f73662017-11-06 10:29:51 -0800166 choosing-strategy: gerrit
167 jenkins-ssh-credential: '{jenkins-ssh-credential}'
Zack Williams00d2c622020-09-30 09:17:48 -0700168 basedir: "$WORKSPACE"
Ray Milkeyd9f73662017-11-06 10:29:51 -0800169
170 triggers:
Ray Milkeye2175452020-05-06 12:22:58 -0700171 - timed: '@weekly'
Ray Milkeyd9f73662017-11-06 10:29:51 -0800172
Ray Milkeyc6e9a852018-01-30 13:27:06 -0800173# FIXME - there is a Slack integration plugin in 2.0.3
174 publishers:
175 - raw:
176 xml: |
177 <jenkins.plugins.slack.SlackNotifier plugin="slack@2.3">
178 <baseUrl/>
179 <teamDomain/>
180 <authToken/>
181 <authTokenCredentialId>slack-token</authTokenCredentialId>
182 <botUser>false</botUser>
183 <room>build-status</room>
184 <startNotification>false</startNotification>
185 <notifySuccess>false</notifySuccess>
186 <notifyAborted>true</notifyAborted>
187 <notifyNotBuilt>true</notifyNotBuilt>
188 <notifyUnstable>true</notifyUnstable>
189 <notifyRegression>true</notifyRegression>
190 <notifyFailure>true</notifyFailure>
191 <notifyBackToNormal>true</notifyBackToNormal>
192 <notifyRepeatedFailure>false</notifyRepeatedFailure>
193 <includeTestSummary>false</includeTestSummary>
194 <includeFailedTests>false</includeFailedTests>
195 <commitInfoChoice>AUTHORS_AND_TITLES</commitInfoChoice>
196 <includeCustomMessage>false</includeCustomMessage>
197 <customMessage/>
198 </jenkins.plugins.slack.SlackNotifier>
199
Ray Milkey4309d9b2017-11-17 13:41:46 -0800200- release_build_boiler_plate: &release_build_boiler_plate
201 name: release_build_boiler_plate
202
203 concurrent: true
204
205 parameters:
206 - lf-infra-parameters:
207 project: '{project}'
208 branch: '{stream}'
209 stream: '{stream}'
210 lftools-version: '{lftools-version}'
211
212 - string:
213 name: ONOS_VERSION
Ray Milkeyfef4be02018-11-08 15:34:13 -0800214 default: '1.15'
Ray Milkeyb40e5672018-01-26 10:10:45 -0800215 description: 'Version tag of ONOS to build'
Ray Milkey4309d9b2017-11-17 13:41:46 -0800216
217 - string:
218 name: ONOS_NEXT_VERSION
Ray Milkeyfef4be02018-11-08 15:34:13 -0800219 default: '1.15.0-SNAPSHOT'
Ray Milkeyb40e5672018-01-26 10:10:45 -0800220 description: 'Version of ONOS to reset tree to'
221
222 scm:
Zack Williams00d2c622020-09-30 09:17:48 -0700223 - onf-infra-gerrit-scm:
Ray Milkeyb40e5672018-01-26 10:10:45 -0800224 git-url: '{git-url}'
225 refspec: '$GERRIT_REFSPEC'
226 branch: '$GERRIT_BRANCH'
Zack Williams05f06082020-01-22 14:19:34 -0700227 submodule-disable: '{submodule-disable}'
Ray Milkeyb40e5672018-01-26 10:10:45 -0800228 submodule-recursive: '{submodule-recursive}'
Zack Williams05f06082020-01-22 14:19:34 -0700229 submodule-timeout: '{submodule-timeout}'
Ray Milkeyb40e5672018-01-26 10:10:45 -0800230 choosing-strategy: gerrit
231 jenkins-ssh-credential: '{jenkins-ssh-credential}'
Zack Williams00d2c622020-09-30 09:17:48 -0700232 basedir: "$WORKSPACE"
Ray Milkeyb40e5672018-01-26 10:10:45 -0800233
234- docker_build_boiler_plate: &docker_build_boiler_plate
235 name: release_build_boiler_plate
236
237 concurrent: true
238
239 parameters:
240 - lf-infra-parameters:
241 project: '{project}'
242 branch: '{stream}'
243 stream: '{stream}'
244 lftools-version: '{lftools-version}'
245
246 - string:
247 name: ONOS_TAG
248 default: ''
249 description: 'Tag of ONOS to build'
Ray Milkey4309d9b2017-11-17 13:41:46 -0800250
251 scm:
Zack Williams00d2c622020-09-30 09:17:48 -0700252 - onf-infra-gerrit-scm:
Ray Milkey4309d9b2017-11-17 13:41:46 -0800253 git-url: '{git-url}'
254 refspec: '$GERRIT_REFSPEC'
255 branch: '$GERRIT_BRANCH'
Zack Williams05f06082020-01-22 14:19:34 -0700256 submodule-disable: '{submodule-disable}'
Ray Milkey4309d9b2017-11-17 13:41:46 -0800257 submodule-recursive: '{submodule-recursive}'
Zack Williams05f06082020-01-22 14:19:34 -0700258 submodule-timeout: '{submodule-timeout}'
Ray Milkey4309d9b2017-11-17 13:41:46 -0800259 choosing-strategy: gerrit
260 jenkins-ssh-credential: '{jenkins-ssh-credential}'
Zack Williams00d2c622020-09-30 09:17:48 -0700261 basedir: "$WORKSPACE"
Ray Milkey4309d9b2017-11-17 13:41:46 -0800262
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700263- job-template:
264 #default name is global
265 name: '{project-name}-{stream}-verify'
266
267 # Job template for Java verify jobs
268 #
Daniele Moroce4cc702021-02-26 18:57:30 +0100269 # The purpose of this job template is to run "maven clean install" for
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700270 # projects using this template.
271 #
272 # Required Variables:
273 # branch: git branch (eg. master)
274
275 <<: *job_boiler_plate
276 # yamllint disable-line rule:key-duplicates
277 <<: *verify_boiler_plate
278
279 builders:
280 #put shell scripts in file then make sure shell check is installed on verify vms
Ray Milkey7aa43462017-10-30 16:15:23 -0700281 - shell: !include-raw-escape: onos-verify.sh
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -0700282 # JJB 1.6.2 does not support parameter expansion on filename?
283 #- shell: !include-raw-escape: {project-name}-verify.sh
284
Ray Milkey2c9ed832018-08-07 10:45:52 -0700285- job-template:
286 #default name is global
287 name: '{project-name}-{stream}-bazel-verify'
288
289 # Job template for Java verify jobs
290 #
291 # Required Variables:
292 # branch: git branch (eg. master)
293
294 <<: *job_boiler_plate
295 # yamllint disable-line rule:key-duplicates
296 <<: *verify_boiler_plate
297
298 builders:
299 #put shell scripts in file then make sure shell check is installed on verify vms
Ray Milkeyd83ef8e2018-11-09 11:57:01 -0800300 - shell: !include-raw-escape: install-bazel.sh
Ray Milkey2c9ed832018-08-07 10:45:52 -0700301 - shell: !include-raw-escape: onos-bazel-verify.sh
302 # JJB 1.6.2 does not support parameter expansion on filename?
303 #- shell: !include-raw-escape: {project-name}-verify.sh
304
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -0700305# workaround for lack of parameter expansion support in shell: (see above)
306- job-template:
307 #default name is global
308 name: 'onos-yang-tools-{stream}-verify'
309
310 # Job template for Java verify jobs
311 #
Daniele Moroce4cc702021-02-26 18:57:30 +0100312 # The purpose of this job template is to run "maven clean install" for
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -0700313 # projects using this template.
314 #
315 # Required Variables:
316 # branch: git branch (eg. master)
317
318 <<: *job_boiler_plate
319 # yamllint disable-line rule:key-duplicates
320 <<: *verify_boiler_plate
321
322 builders:
323 #put shell scripts in file then make sure shell check is installed on verify vms
324 - shell: !include-raw-escape: onos-yang-tools-verify.sh
325
Yuta HIGUCHI18948042018-05-08 14:07:51 -0700326- job-template:
327 #default name is global
328 name: 'onos-yang-tools-release-build'
329
330 # Job template for ONOS Yang tools release jobs
331 #
332
333 <<: *job_boiler_plate
334 # yamllint disable-line rule:key-duplicates
335 parameters:
336 - lf-infra-parameters:
337 project: '{project}'
338 branch: '{stream}'
339 stream: '{stream}'
340 lftools-version: '{lftools-version}'
341
342 - string:
343 name: YANGTOOLS_VERSION
Yuta HIGUCHIa36c0672018-05-11 09:45:47 -0700344 default: '2.4.4'
345 description: 'Version tag of ONOS Yang tools to build and release'
Yuta HIGUCHI18948042018-05-08 14:07:51 -0700346
347 - string:
348 name: YANGTOOLS_NEXT_VERSION
349 default: '2.5-SNAPSHOT'
350 description: 'Version of ONOS Yang tools to reset tree to afterwards'
351
352 scm:
Zack Williams00d2c622020-09-30 09:17:48 -0700353 - onf-infra-gerrit-scm:
Yuta HIGUCHI18948042018-05-08 14:07:51 -0700354 git-url: '{git-url}'
355 refspec: '$GERRIT_REFSPEC'
356 branch: '$GERRIT_BRANCH'
Zack Williams05f06082020-01-22 14:19:34 -0700357 submodule-disable: '{submodule-disable}'
Yuta HIGUCHI18948042018-05-08 14:07:51 -0700358 submodule-recursive: '{submodule-recursive}'
Zack Williams05f06082020-01-22 14:19:34 -0700359 submodule-timeout: '{submodule-timeout}'
Yuta HIGUCHI18948042018-05-08 14:07:51 -0700360 choosing-strategy: gerrit
361 jenkins-ssh-credential: '{jenkins-ssh-credential}'
Zack Williams00d2c622020-09-30 09:17:48 -0700362 basedir: "$WORKSPACE"
Yuta HIGUCHI7e982142018-05-08 15:02:05 -0700363
Yuta HIGUCHI18948042018-05-08 14:07:51 -0700364 builders:
365 - lf-provide-maven-settings:
366 settings-file: 'release-build-maven-settings'
367 global-settings-file: 'release-build-maven-settings'
368 - config-file-provider:
369 files:
370 - file-id: 'onos-build-credentials'
371 target: 'onos-build-credentials'
372 variable: 'CREDENTIALS_FILE'
373 - file-id: 'buck-config-local'
374 target: '.buckconfig.local'
375 variable: 'BUCK_CONFIG_FILE'
376 - file-id: 'gpg-key'
377 target: 'jenkins.key'
378 variable: 'GPG_KEY_FILE'
379 - file-id: 'release-build-maven-settings'
380 target: 'settings.xml'
381 variable: 'MAVEN_SETTINGS'
382 - file-id: 'api-onosproject-ssh-key'
383 target: 'id_rsa.pub'
384 variable: 'API_ONOSPROJECT_SSH_KEY'
385
386 #put shell scripts in file then make sure shell check is installed on verify vms
387 - shell: !include-raw-escape: onos-yang-tools-release-build.sh
388 # JJB 1.6.2 does not support parameter expansion on filename?
389 #- shell: !include-raw-escape: {project-name}-verify.sh
390
391
Ray Milkey83d912a2017-11-01 13:49:31 -0700392# workaround for lack of parameter expansion support in shell: (see above)
393- job-template:
394 #default name is global
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800395 name: 'onos-app-samples-{stream}-verify'
396
397 # Job template for Java verify jobs
398 #
Daniele Moroce4cc702021-02-26 18:57:30 +0100399 # The purpose of this job template is to run "maven clean install" for
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800400 # projects using this template.
401 #
402 # Required Variables:
403 # branch: git branch (eg. master)
404
405 <<: *job_boiler_plate
406 # yamllint disable-line rule:key-duplicates
407 <<: *verify_boiler_plate
408
409 builders:
410 #put shell scripts in file then make sure shell check is installed on verify vms
411 - shell: !include-raw-escape: onos-app-samples-verify.sh
412
Yuta HIGUCHI1ac83232017-11-17 16:37:57 -0800413# workaround for lack of parameter expansion support in shell: (see above)
414- job-template:
415 #default name is global
416 name: 'onos-loxi-{stream}-verify'
417
418 # Job template for Java verify jobs
419 #
Daniele Moroce4cc702021-02-26 18:57:30 +0100420 # The purpose of this job template is to run "maven clean install" for
Yuta HIGUCHI1ac83232017-11-17 16:37:57 -0800421 # projects using this template.
422 #
423 # Required Variables:
424 # branch: git branch (eg. master)
425
426 <<: *job_boiler_plate
427 # yamllint disable-line rule:key-duplicates
428 <<: *verify_boiler_plate
429
430 builders:
431 #put shell scripts in file then make sure shell check is installed on verify vms
432 - shell: !include-raw-escape: onos-loxi-verify.sh
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800433
Ray Milkey8e462202017-11-02 10:18:37 -0700434- job-template:
435 #default name is global
436 name: 'onos-{stream}-release-build-verify'
437
438 # Job template for Java release check jobs
439 #
440
441 <<: *job_boiler_plate
442 # yamllint disable-line rule:key-duplicates
Ray Milkeye2175452020-05-06 12:22:58 -0700443 <<: *weekly_boiler_plate
Ray Milkey8e462202017-11-02 10:18:37 -0700444
445 builders:
Ray Milkeyd3d7fa82018-08-14 17:20:52 -0700446 - config-file-provider:
447 files:
448 - file-id: 'gpg-key'
449 target: 'jenkins.key'
450 variable: 'GPG_KEY_FILE'
Ray Milkey8fae9a72017-11-17 10:03:54 -0800451
Ray Milkey8e462202017-11-02 10:18:37 -0700452 #put shell scripts in file then make sure shell check is installed on verify vms
Ray Milkeyf465a292018-11-12 09:14:16 -0800453 - shell: !include-raw-escape: install-bazel.sh
Ray Milkey8e462202017-11-02 10:18:37 -0700454 - shell: !include-raw-escape: onos-release-build-verify.sh
455 # JJB 1.6.2 does not support parameter expansion on filename?
456 #- shell: !include-raw-escape: {project-name}-verify.sh
457
Ray Milkeyd9f73662017-11-06 10:29:51 -0800458- job-template:
459 #default name is global
Ray Milkey2afc4a52017-11-17 11:01:38 -0800460 name: 'onos-release-build'
461
462 # Job template for Java release jobs
463 #
464
465 <<: *job_boiler_plate
466 # yamllint disable-line rule:key-duplicates
Ray Milkey4309d9b2017-11-17 13:41:46 -0800467 <<: *release_build_boiler_plate
Ray Milkey2afc4a52017-11-17 11:01:38 -0800468
469 builders:
Ray Milkey094fd002017-11-22 10:21:59 -0800470 - lf-provide-maven-settings:
471 settings-file: 'release-build-maven-settings'
472 global-settings-file: 'release-build-maven-settings'
Ray Milkey2afc4a52017-11-17 11:01:38 -0800473 - config-file-provider:
474 files:
475 - file-id: 'onos-build-credentials'
476 target: 'onos-build-credentials'
477 variable: 'CREDENTIALS_FILE'
Ray Milkeye8fd4f02017-11-17 14:54:18 -0800478 - file-id: 'buck-config-local'
479 target: '.buckconfig.local'
480 variable: 'BUCK_CONFIG_FILE'
Ray Milkeyb867be82017-11-27 13:29:19 -0800481 - file-id: 'gpg-key'
482 target: 'jenkins.key'
483 variable: 'GPG_KEY_FILE'
Ray Milkey43e7f932017-11-27 08:48:42 -0800484 - file-id: 'release-build-maven-settings'
485 target: 'settings.xml'
486 variable: 'MAVEN_SETTINGS'
Ray Milkey7d774fb2017-12-05 14:57:30 -0800487 - file-id: 'api-onosproject-ssh-key'
488 target: 'id_rsa.pub'
489 variable: 'API_ONOSPROJECT_SSH_KEY'
Ray Milkey2afc4a52017-11-17 11:01:38 -0800490
491 #put shell scripts in file then make sure shell check is installed on verify vms
492 - shell: !include-raw-escape: onos-release-build.sh
493 # JJB 1.6.2 does not support parameter expansion on filename?
494 #- shell: !include-raw-escape: {project-name}-verify.sh
495
496- job-template:
497 #default name is global
Ray Milkey7c8b3f22018-08-13 15:01:12 -0700498 name: 'onos-bazel-release-build'
499
500 # Job template for Java release jobs
501 #
502
503 <<: *job_boiler_plate
504 # yamllint disable-line rule:key-duplicates
505 <<: *release_build_boiler_plate
506
507 builders:
508 - lf-provide-maven-settings:
509 settings-file: 'release-build-maven-settings'
510 global-settings-file: 'release-build-maven-settings'
511 - config-file-provider:
512 files:
513 - file-id: 'onos-build-credentials'
514 target: 'onos-build-credentials'
515 variable: 'CREDENTIALS_FILE'
516 - file-id: 'gpg-key'
517 target: 'jenkins.key'
518 variable: 'GPG_KEY_FILE'
519 - file-id: 'release-build-maven-settings'
520 target: 'settings.xml'
521 variable: 'MAVEN_SETTINGS'
522 - file-id: 'api-onosproject-ssh-key'
523 target: 'id_rsa.pub'
524 variable: 'API_ONOSPROJECT_SSH_KEY'
525
526 #put shell scripts in file then make sure shell check is installed on verify vms
Ray Milkeyd83ef8e2018-11-09 11:57:01 -0800527 - shell: !include-raw-escape: install-bazel.sh
Ray Milkey7c8b3f22018-08-13 15:01:12 -0700528 - shell: !include-raw-escape: onos-bazel-release-build.sh
529 # JJB 1.6.2 does not support parameter expansion on filename?
530 #- shell: !include-raw-escape: {project-name}-verify.sh
531
532- job-template:
533 #default name is global
Ray Milkey0caba7f2018-01-08 12:56:18 -0800534 name: 'onos-docker-build'
535
536 # Job template for Docker jobs
537 #
538
539 <<: *job_boiler_plate
540 # yamllint disable-line rule:key-duplicates
Ray Milkeyb40e5672018-01-26 10:10:45 -0800541 <<: *docker_build_boiler_plate
Ray Milkey0caba7f2018-01-08 12:56:18 -0800542
543 builders:
544 - lf-provide-maven-settings:
545 settings-file: 'release-build-maven-settings'
546 global-settings-file: 'release-build-maven-settings'
547 - config-file-provider:
548 files:
549 - file-id: 'onos-build-credentials'
550 target: 'onos-build-credentials'
551 variable: 'CREDENTIALS_FILE'
552 - file-id: 'buck-config-local'
553 target: '.buckconfig.local'
554 variable: 'BUCK_CONFIG_FILE'
555 - file-id: 'gpg-key'
556 target: 'jenkins.key'
557 variable: 'GPG_KEY_FILE'
558 - file-id: 'release-build-maven-settings'
559 target: 'settings.xml'
560 variable: 'MAVEN_SETTINGS'
561 - file-id: 'api-onosproject-ssh-key'
562 target: 'id_rsa.pub'
563 variable: 'API_ONOSPROJECT_SSH_KEY'
564
565 #put shell scripts in file then make sure shell check is installed on verify vms
566 - shell: !include-raw-escape: onos-docker-build.sh
567 # JJB 1.6.2 does not support parameter expansion on filename?
568 #- shell: !include-raw-escape: {project-name}-verify.sh
569
570- job-template:
571 #default name is global
Ray Milkeyd9f73662017-11-06 10:29:51 -0800572 name: 'onos-{stream}-maven-verify'
573
574 <<: *job_boiler_plate
575 # yamllint disable-line rule:key-duplicates
Ray Milkeye2175452020-05-06 12:22:58 -0700576 <<: *weekly_boiler_plate_with_slack
Ray Milkeyd9f73662017-11-06 10:29:51 -0800577
578 builders:
579 #put shell scripts in file then make sure shell check is installed on verify vms
580 - shell: !include-raw-escape: onos-maven-verify.sh
581 # JJB 1.6.2 does not support parameter expansion on filename?
582 #- shell: !include-raw-escape: {project-name}-verify.sh
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700583
Daniele Moroce4cc702021-02-26 18:57:30 +0100584- job-template:
585 #default name is global
586 name: 'onos-{stream}-release-build-upload-snapshot'
587
588 # Job template for post-merge snapshot artifacts build and upload
589
590 <<: *job_boiler_plate
591 # yamllint disable-line rule:key-duplicates
592 <<: *post_merge_boiler_plate
593
594 builders:
595 - config-file-provider:
596 files:
597 - file-id: 'gpg-key'
598 target: 'jenkins.key'
599 variable: 'GPG_KEY_FILE'
Daniele Moro344e9a92021-05-19 16:56:52 +0200600 - file-id: 'release-build-maven-settings'
601 target: 'settings.xml'
602 variable: 'MAVEN_SETTINGS'
Daniele Moroce4cc702021-02-26 18:57:30 +0100603
604 #put shell scripts in file then make sure shell check is installed on verify vms
605 - shell: !include-raw-escape: install-bazel.sh
606 - shell: !include-raw-escape: onos-snapshot-build.sh
607 # JJB 1.6.2 does not support parameter expansion on filename?
608 #- shell: !include-raw-escape: {project-name}-verify.sh
609
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700610- project:
611 name: onos
612 project-name: onos
613 project: onos
614
Ray Milkey43a340c2018-02-20 13:49:00 -0800615 build-timeout: '30'
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700616 build-node: 'ubuntu16.04-basebuild-8c-15g'
617
618 stream:
Ray Milkey1bc13772017-10-31 15:57:17 -0700619 - 'onos-1.10'
620 - 'onos-1.11'
Ray Milkey47d4f722017-11-21 09:36:37 -0800621 - 'onos-1.12'
Ray Milkeyfcb0db62018-04-13 16:47:46 -0700622 - 'onos-1.13'
Ray Milkey648eb912018-08-20 14:24:56 -0700623 - 'onos-1.14'
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700624
625 jobs:
626 - '{project-name}-{stream}-verify'
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -0700627
628- project:
Ray Milkey2c9ed832018-08-07 10:45:52 -0700629 name: onos-bazel
630 project-name: onos-bazel
631 project: onos
632
633 build-timeout: '30'
634 build-node: 'ubuntu16.04-basebuild-8c-15g'
635
636 stream:
637 - 'master'
Ray Milkey648eb912018-08-20 14:24:56 -0700638 - 'onos-1.14'
Ray Milkeyfef4be02018-11-08 15:34:13 -0800639 - 'onos-1.15'
Ray Milkey785e6232018-12-20 08:18:15 -0800640 - 'onos-2.0'
Ray Milkey12398252019-04-22 10:51:26 -0700641 - 'onos-2.1'
Ray Milkey70043e12019-08-23 13:18:20 -0700642 - 'onos-2.2'
Ray Milkey5a0238c2020-01-21 15:47:52 -0800643 - 'onos-2.3'
Ray Milkey805f3342020-06-04 15:41:24 -0700644 - 'onos-2.4'
Ray Milkey72970562020-12-01 12:14:37 -0800645 - 'onos-2.5'
Ray Milkey8cbff5c2021-07-13 15:48:42 -0700646 - 'onos-2.6'
Ray Milkey91bf53e2018-11-05 14:22:51 -0800647 - 'upan-connect18'
Ray Milkey219ab182018-11-26 14:19:34 -0800648 - 'upan-connect18-1.14'
Ray Milkey2c9ed832018-08-07 10:45:52 -0700649
650 jobs:
651 - '{project-name}-{stream}-bazel-verify'
652
653- project:
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -0700654 name: onos-yang-tools
655 project-name: onos-yang-tools
656 project: onos-yang-tools
657
Ray Milkey43a340c2018-02-20 13:49:00 -0800658 build-timeout: '30'
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -0700659 build-node: 'ubuntu16.04-basebuild-8c-15g'
660
661 stream:
662 - 'master'
663
664 jobs:
665 - 'onos-yang-tools-{stream}-verify'
Ray Milkey8e462202017-11-02 10:18:37 -0700666
667- project:
Yuta HIGUCHI7e982142018-05-08 15:02:05 -0700668 name: onos-yang-tools-release-build
669 project-name: onos-yang-tools-release-build
670 project: onos-yang-tools
671
672 build-timeout: '240'
673 build-node: 'ubuntu16.04-basebuild-8c-15g'
674
675 stream: 'master'
676
677 jobs:
678 - 'onos-yang-tools-release-build'
679
680
681- project:
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800682 name: onos-app-samples
683 project-name: onos-app-samples
684 project: onos-app-samples
685
Ray Milkey43a340c2018-02-20 13:49:00 -0800686 build-timeout: '30'
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800687 build-node: 'ubuntu16.04-basebuild-8c-15g'
688
689 stream:
690 - 'master'
691
692 jobs:
693 - 'onos-app-samples-{stream}-verify'
694
Yuta HIGUCHI1ac83232017-11-17 16:37:57 -0800695- project:
696 name: onos-loxi
697 project-name: onos-loxi
698 project: onos-loxi
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800699
Ray Milkey43a340c2018-02-20 13:49:00 -0800700 build-timeout: '30'
Yuta HIGUCHI1ac83232017-11-17 16:37:57 -0800701 build-node: 'ubuntu16.04-basebuild-8c-15g'
702
703 stream:
704 - 'master'
705
706 jobs:
707 - 'onos-loxi-{stream}-verify'
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800708
709- project:
Ray Milkey8e462202017-11-02 10:18:37 -0700710 name: onos-release
711 project-name: onos-release
712 project: onos
713
Ray Milkey2d55e972018-05-04 13:01:36 -0700714 build-timeout: '240'
Ray Milkey8e462202017-11-02 10:18:37 -0700715 build-node: 'ubuntu16.04-basebuild-8c-15g'
716
717 stream:
718 - 'master'
Ray Milkey8cbff5c2021-07-13 15:48:42 -0700719 - 'onos-2.6'
Daniele Moro94bdb572021-07-18 17:42:23 +0200720 - 'onos-2.5'
Ray Milkeye2175452020-05-06 12:22:58 -0700721 - 'onos-2.2'
Ray Milkey7f8a23c2019-04-05 09:43:55 -0700722 - 'onos-1.15'
Ray Milkey7f8a23c2019-04-05 09:43:55 -0700723 - 'onos-1.12'
Ray Milkey8e462202017-11-02 10:18:37 -0700724
725 jobs:
726 - 'onos-{stream}-release-build-verify'
Ray Milkeyd9f73662017-11-06 10:29:51 -0800727
728- project:
729 name: onos-maven-verify
730 project-name: onos-maven-verify
731 project: onos
732
Ray Milkey43a340c2018-02-20 13:49:00 -0800733 build-timeout: '30'
Ray Milkeyd9f73662017-11-06 10:29:51 -0800734 build-node: 'ubuntu16.04-basebuild-8c-15g'
735
736 stream:
Ray Milkeye8f39e02018-04-16 13:34:34 -0700737 - 'onos-1.12'
Ray Milkeyd9f73662017-11-06 10:29:51 -0800738
739 jobs:
740 - 'onos-{stream}-maven-verify'
Ray Milkey20d22522017-11-08 10:55:52 -0800741
742- project:
Ray Milkey2afc4a52017-11-17 11:01:38 -0800743 name: onos-release-build
744 project-name: onos-release-build
745 project: onos
746
Ray Milkey884a2b82018-05-22 08:29:45 -0700747 build-timeout: '240'
Ray Milkey2afc4a52017-11-17 11:01:38 -0800748 build-node: 'ubuntu16.04-basebuild-8c-15g'
749
Ray Milkey4309d9b2017-11-17 13:41:46 -0800750 stream: 'master'
Ray Milkey2afc4a52017-11-17 11:01:38 -0800751
752 jobs:
753 - 'onos-release-build'
Ray Milkey0caba7f2018-01-08 12:56:18 -0800754
755- project:
Ray Milkey7c8b3f22018-08-13 15:01:12 -0700756 name: onos-bazel-release-build
757 project-name: onos-bazel-release-build
758 project: onos
759
760 build-timeout: '240'
761 build-node: 'ubuntu16.04-basebuild-8c-15g'
762
763 stream: 'master'
764
765 jobs:
766 - 'onos-bazel-release-build'
767
768- project:
Ray Milkey0caba7f2018-01-08 12:56:18 -0800769 name: onos-docker-build
770 project-name: onos-docker-build
771 project: onos
772
Ray Milkey43a340c2018-02-20 13:49:00 -0800773 build-timeout: '90'
Ray Milkey0caba7f2018-01-08 12:56:18 -0800774 build-node: 'ubuntu16.04-basebuild-8c-15g'
775
776 stream: 'master'
777
778 jobs:
779 - 'onos-docker-build'
Ray Milkey3aa8af52018-03-09 09:10:08 -0800780
Daniele Moroce4cc702021-02-26 18:57:30 +0100781- project:
782 name: onos-snapshot
783 project-name: onos-snapshot
784 project: onos
785
786 build-timeout: '240'
787 build-node: 'ubuntu16.04-basebuild-8c-15g'
788
789 stream:
790 - 'master'
Ray Milkey8cbff5c2021-07-13 15:48:42 -0700791 - 'onos-2.6'
Daniele Moro94bdb572021-07-18 17:42:23 +0200792 - 'onos-2.5'
Daniele Moroce4cc702021-02-26 18:57:30 +0100793
794 jobs:
795 - 'onos-{stream}-release-build-upload-snapshot'
796