blob: 7606440ad0a9b739844a1c346f058b34f3caf13f [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
Andrea Campanellad02f4322021-08-26 13:02:26 +0200234- docker_release_build_boiler_plate: &docker_release_build_boiler_plate
Ray Milkeyb40e5672018-01-26 10:10:45 -0800235 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
Andrea Campanellad02f4322021-08-26 13:02:26 +0200263- docker_merge_build_boiler_plate: &docker_merge_build_boiler_plate
264 name: merge_build_boiler_plate
265
266 concurrent: true
267
268 parameters:
269 - lf-infra-parameters:
270 project: '{project}'
271 branch: '{stream}'
272 stream: '{stream}'
273 lftools-version: '{lftools-version}'
274
275 - string:
276 name: ONOS_TAG
277 default: ''
278 description: 'Tag of ONOS to build'
279
280 scm:
281 - onf-infra-gerrit-scm:
282 git-url: '{git-url}'
283 refspec: '$GERRIT_REFSPEC'
284 branch: '$GERRIT_BRANCH'
285 submodule-disable: '{submodule-disable}'
286 submodule-recursive: '{submodule-recursive}'
287 submodule-timeout: '{submodule-timeout}'
288 choosing-strategy: gerrit
289 jenkins-ssh-credential: '{jenkins-ssh-credential}'
290 basedir: "$WORKSPACE"
291
292 triggers:
293 - gerrit:
294 server-name: 'ONOS Project Gerrit'
295 trigger-on:
296 - change-merged-event
297 projects:
298 - project-compare-type: PLAIN
299 project-pattern: '{project}'
300 branches:
301 - branch-compare-type: ANT
302 branch-pattern: '**/{stream}'
303 #file-paths: '{obj:gerrit_trigger_file_paths}'
304
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700305- job-template:
306 #default name is global
307 name: '{project-name}-{stream}-verify'
308
309 # Job template for Java verify jobs
310 #
Daniele Moroce4cc702021-02-26 18:57:30 +0100311 # The purpose of this job template is to run "maven clean install" for
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700312 # projects using this template.
313 #
314 # Required Variables:
315 # branch: git branch (eg. master)
316
317 <<: *job_boiler_plate
318 # yamllint disable-line rule:key-duplicates
319 <<: *verify_boiler_plate
320
321 builders:
322 #put shell scripts in file then make sure shell check is installed on verify vms
Ray Milkey7aa43462017-10-30 16:15:23 -0700323 - shell: !include-raw-escape: onos-verify.sh
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -0700324 # JJB 1.6.2 does not support parameter expansion on filename?
325 #- shell: !include-raw-escape: {project-name}-verify.sh
326
Ray Milkey2c9ed832018-08-07 10:45:52 -0700327- job-template:
328 #default name is global
329 name: '{project-name}-{stream}-bazel-verify'
330
331 # Job template for Java verify jobs
332 #
333 # Required Variables:
334 # branch: git branch (eg. master)
335
336 <<: *job_boiler_plate
337 # yamllint disable-line rule:key-duplicates
338 <<: *verify_boiler_plate
339
340 builders:
341 #put shell scripts in file then make sure shell check is installed on verify vms
Ray Milkeyd83ef8e2018-11-09 11:57:01 -0800342 - shell: !include-raw-escape: install-bazel.sh
Ray Milkey2c9ed832018-08-07 10:45:52 -0700343 - shell: !include-raw-escape: onos-bazel-verify.sh
344 # JJB 1.6.2 does not support parameter expansion on filename?
345 #- shell: !include-raw-escape: {project-name}-verify.sh
346
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -0700347# workaround for lack of parameter expansion support in shell: (see above)
348- job-template:
349 #default name is global
350 name: 'onos-yang-tools-{stream}-verify'
351
352 # Job template for Java verify jobs
353 #
Daniele Moroce4cc702021-02-26 18:57:30 +0100354 # The purpose of this job template is to run "maven clean install" for
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -0700355 # projects using this template.
356 #
357 # Required Variables:
358 # branch: git branch (eg. master)
359
360 <<: *job_boiler_plate
361 # yamllint disable-line rule:key-duplicates
362 <<: *verify_boiler_plate
363
364 builders:
365 #put shell scripts in file then make sure shell check is installed on verify vms
366 - shell: !include-raw-escape: onos-yang-tools-verify.sh
367
Yuta HIGUCHI18948042018-05-08 14:07:51 -0700368- job-template:
369 #default name is global
370 name: 'onos-yang-tools-release-build'
371
372 # Job template for ONOS Yang tools release jobs
373 #
374
375 <<: *job_boiler_plate
376 # yamllint disable-line rule:key-duplicates
377 parameters:
378 - lf-infra-parameters:
379 project: '{project}'
380 branch: '{stream}'
381 stream: '{stream}'
382 lftools-version: '{lftools-version}'
383
384 - string:
385 name: YANGTOOLS_VERSION
Yuta HIGUCHIa36c0672018-05-11 09:45:47 -0700386 default: '2.4.4'
387 description: 'Version tag of ONOS Yang tools to build and release'
Yuta HIGUCHI18948042018-05-08 14:07:51 -0700388
389 - string:
390 name: YANGTOOLS_NEXT_VERSION
391 default: '2.5-SNAPSHOT'
392 description: 'Version of ONOS Yang tools to reset tree to afterwards'
393
394 scm:
Zack Williams00d2c622020-09-30 09:17:48 -0700395 - onf-infra-gerrit-scm:
Yuta HIGUCHI18948042018-05-08 14:07:51 -0700396 git-url: '{git-url}'
397 refspec: '$GERRIT_REFSPEC'
398 branch: '$GERRIT_BRANCH'
Zack Williams05f06082020-01-22 14:19:34 -0700399 submodule-disable: '{submodule-disable}'
Yuta HIGUCHI18948042018-05-08 14:07:51 -0700400 submodule-recursive: '{submodule-recursive}'
Zack Williams05f06082020-01-22 14:19:34 -0700401 submodule-timeout: '{submodule-timeout}'
Yuta HIGUCHI18948042018-05-08 14:07:51 -0700402 choosing-strategy: gerrit
403 jenkins-ssh-credential: '{jenkins-ssh-credential}'
Zack Williams00d2c622020-09-30 09:17:48 -0700404 basedir: "$WORKSPACE"
Yuta HIGUCHI7e982142018-05-08 15:02:05 -0700405
Yuta HIGUCHI18948042018-05-08 14:07:51 -0700406 builders:
407 - lf-provide-maven-settings:
408 settings-file: 'release-build-maven-settings'
409 global-settings-file: 'release-build-maven-settings'
410 - config-file-provider:
411 files:
412 - file-id: 'onos-build-credentials'
413 target: 'onos-build-credentials'
414 variable: 'CREDENTIALS_FILE'
415 - file-id: 'buck-config-local'
416 target: '.buckconfig.local'
417 variable: 'BUCK_CONFIG_FILE'
418 - file-id: 'gpg-key'
419 target: 'jenkins.key'
420 variable: 'GPG_KEY_FILE'
421 - file-id: 'release-build-maven-settings'
422 target: 'settings.xml'
423 variable: 'MAVEN_SETTINGS'
424 - file-id: 'api-onosproject-ssh-key'
425 target: 'id_rsa.pub'
426 variable: 'API_ONOSPROJECT_SSH_KEY'
427
428 #put shell scripts in file then make sure shell check is installed on verify vms
429 - shell: !include-raw-escape: onos-yang-tools-release-build.sh
430 # JJB 1.6.2 does not support parameter expansion on filename?
431 #- shell: !include-raw-escape: {project-name}-verify.sh
432
433
Ray Milkey83d912a2017-11-01 13:49:31 -0700434# workaround for lack of parameter expansion support in shell: (see above)
435- job-template:
436 #default name is global
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800437 name: 'onos-app-samples-{stream}-verify'
438
439 # Job template for Java verify jobs
440 #
Daniele Moroce4cc702021-02-26 18:57:30 +0100441 # The purpose of this job template is to run "maven clean install" for
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800442 # projects using this template.
443 #
444 # Required Variables:
445 # branch: git branch (eg. master)
446
447 <<: *job_boiler_plate
448 # yamllint disable-line rule:key-duplicates
449 <<: *verify_boiler_plate
450
451 builders:
452 #put shell scripts in file then make sure shell check is installed on verify vms
453 - shell: !include-raw-escape: onos-app-samples-verify.sh
454
Yuta HIGUCHI1ac83232017-11-17 16:37:57 -0800455# workaround for lack of parameter expansion support in shell: (see above)
456- job-template:
457 #default name is global
458 name: 'onos-loxi-{stream}-verify'
459
460 # Job template for Java verify jobs
461 #
Daniele Moroce4cc702021-02-26 18:57:30 +0100462 # The purpose of this job template is to run "maven clean install" for
Yuta HIGUCHI1ac83232017-11-17 16:37:57 -0800463 # projects using this template.
464 #
465 # Required Variables:
466 # branch: git branch (eg. master)
467
468 <<: *job_boiler_plate
469 # yamllint disable-line rule:key-duplicates
470 <<: *verify_boiler_plate
471
472 builders:
473 #put shell scripts in file then make sure shell check is installed on verify vms
474 - shell: !include-raw-escape: onos-loxi-verify.sh
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800475
Ray Milkey8e462202017-11-02 10:18:37 -0700476- job-template:
477 #default name is global
478 name: 'onos-{stream}-release-build-verify'
479
480 # Job template for Java release check jobs
481 #
482
483 <<: *job_boiler_plate
484 # yamllint disable-line rule:key-duplicates
Ray Milkeye2175452020-05-06 12:22:58 -0700485 <<: *weekly_boiler_plate
Ray Milkey8e462202017-11-02 10:18:37 -0700486
487 builders:
Ray Milkeyd3d7fa82018-08-14 17:20:52 -0700488 - config-file-provider:
489 files:
490 - file-id: 'gpg-key'
491 target: 'jenkins.key'
492 variable: 'GPG_KEY_FILE'
Ray Milkey8fae9a72017-11-17 10:03:54 -0800493
Ray Milkey8e462202017-11-02 10:18:37 -0700494 #put shell scripts in file then make sure shell check is installed on verify vms
Ray Milkeyf465a292018-11-12 09:14:16 -0800495 - shell: !include-raw-escape: install-bazel.sh
Ray Milkey8e462202017-11-02 10:18:37 -0700496 - shell: !include-raw-escape: onos-release-build-verify.sh
497 # JJB 1.6.2 does not support parameter expansion on filename?
498 #- shell: !include-raw-escape: {project-name}-verify.sh
499
Ray Milkeyd9f73662017-11-06 10:29:51 -0800500- job-template:
501 #default name is global
Ray Milkey2afc4a52017-11-17 11:01:38 -0800502 name: 'onos-release-build'
503
504 # Job template for Java release jobs
505 #
506
507 <<: *job_boiler_plate
508 # yamllint disable-line rule:key-duplicates
Ray Milkey4309d9b2017-11-17 13:41:46 -0800509 <<: *release_build_boiler_plate
Ray Milkey2afc4a52017-11-17 11:01:38 -0800510
511 builders:
Ray Milkey094fd002017-11-22 10:21:59 -0800512 - lf-provide-maven-settings:
513 settings-file: 'release-build-maven-settings'
514 global-settings-file: 'release-build-maven-settings'
Ray Milkey2afc4a52017-11-17 11:01:38 -0800515 - config-file-provider:
516 files:
517 - file-id: 'onos-build-credentials'
518 target: 'onos-build-credentials'
519 variable: 'CREDENTIALS_FILE'
Ray Milkeye8fd4f02017-11-17 14:54:18 -0800520 - file-id: 'buck-config-local'
521 target: '.buckconfig.local'
522 variable: 'BUCK_CONFIG_FILE'
Ray Milkeyb867be82017-11-27 13:29:19 -0800523 - file-id: 'gpg-key'
524 target: 'jenkins.key'
525 variable: 'GPG_KEY_FILE'
Ray Milkey43e7f932017-11-27 08:48:42 -0800526 - file-id: 'release-build-maven-settings'
527 target: 'settings.xml'
528 variable: 'MAVEN_SETTINGS'
Ray Milkey7d774fb2017-12-05 14:57:30 -0800529 - file-id: 'api-onosproject-ssh-key'
530 target: 'id_rsa.pub'
531 variable: 'API_ONOSPROJECT_SSH_KEY'
Ray Milkey2afc4a52017-11-17 11:01:38 -0800532
533 #put shell scripts in file then make sure shell check is installed on verify vms
534 - shell: !include-raw-escape: onos-release-build.sh
535 # JJB 1.6.2 does not support parameter expansion on filename?
536 #- shell: !include-raw-escape: {project-name}-verify.sh
537
538- job-template:
539 #default name is global
Ray Milkey7c8b3f22018-08-13 15:01:12 -0700540 name: 'onos-bazel-release-build'
541
542 # Job template for Java release jobs
543 #
544
545 <<: *job_boiler_plate
546 # yamllint disable-line rule:key-duplicates
547 <<: *release_build_boiler_plate
548
549 builders:
550 - lf-provide-maven-settings:
551 settings-file: 'release-build-maven-settings'
552 global-settings-file: 'release-build-maven-settings'
553 - config-file-provider:
554 files:
555 - file-id: 'onos-build-credentials'
556 target: 'onos-build-credentials'
557 variable: 'CREDENTIALS_FILE'
558 - file-id: 'gpg-key'
559 target: 'jenkins.key'
560 variable: 'GPG_KEY_FILE'
561 - file-id: 'release-build-maven-settings'
562 target: 'settings.xml'
563 variable: 'MAVEN_SETTINGS'
564 - file-id: 'api-onosproject-ssh-key'
565 target: 'id_rsa.pub'
566 variable: 'API_ONOSPROJECT_SSH_KEY'
567
568 #put shell scripts in file then make sure shell check is installed on verify vms
Ray Milkeyd83ef8e2018-11-09 11:57:01 -0800569 - shell: !include-raw-escape: install-bazel.sh
Ray Milkey7c8b3f22018-08-13 15:01:12 -0700570 - shell: !include-raw-escape: onos-bazel-release-build.sh
571 # JJB 1.6.2 does not support parameter expansion on filename?
572 #- shell: !include-raw-escape: {project-name}-verify.sh
573
574- job-template:
575 #default name is global
Ray Milkey0caba7f2018-01-08 12:56:18 -0800576 name: 'onos-docker-build'
577
578 # Job template for Docker jobs
579 #
580
581 <<: *job_boiler_plate
582 # yamllint disable-line rule:key-duplicates
Andrea Campanellad02f4322021-08-26 13:02:26 +0200583 <<: *docker_release_build_boiler_plate
584
585 builders:
586 - lf-provide-maven-settings:
587 settings-file: 'release-build-maven-settings'
588 global-settings-file: 'release-build-maven-settings'
589 - config-file-provider:
590 files:
591 - file-id: 'onos-build-credentials'
592 target: 'onos-build-credentials'
593 variable: 'CREDENTIALS_FILE'
594 - file-id: 'buck-config-local'
595 target: '.buckconfig.local'
596 variable: 'BUCK_CONFIG_FILE'
597 - file-id: 'gpg-key'
598 target: 'jenkins.key'
599 variable: 'GPG_KEY_FILE'
600 - file-id: 'release-build-maven-settings'
601 target: 'settings.xml'
602 variable: 'MAVEN_SETTINGS'
603 - file-id: 'api-onosproject-ssh-key'
604 target: 'id_rsa.pub'
605 variable: 'API_ONOSPROJECT_SSH_KEY'
606
607 #put shell scripts in file then make sure shell check is installed on verify vms
608 - shell: !include-raw-escape: onos-docker-build.sh
609 # JJB 1.6.2 does not support parameter expansion on filename?
610 #- shell: !include-raw-escape: {project-name}-verify.sh
611
612- job-template:
613 #default name is global
614 name: 'onos-{stream}-docker-merge-build'
615
616 # Job template for Docker jobs
617 #
618
619 <<: *job_boiler_plate
620 # yamllint disable-line rule:key-duplicates
621 <<: *docker_merge_build_boiler_plate
Ray Milkey0caba7f2018-01-08 12:56:18 -0800622
623 builders:
624 - lf-provide-maven-settings:
625 settings-file: 'release-build-maven-settings'
626 global-settings-file: 'release-build-maven-settings'
627 - config-file-provider:
628 files:
629 - file-id: 'onos-build-credentials'
630 target: 'onos-build-credentials'
631 variable: 'CREDENTIALS_FILE'
632 - file-id: 'buck-config-local'
633 target: '.buckconfig.local'
634 variable: 'BUCK_CONFIG_FILE'
635 - file-id: 'gpg-key'
636 target: 'jenkins.key'
637 variable: 'GPG_KEY_FILE'
638 - file-id: 'release-build-maven-settings'
639 target: 'settings.xml'
640 variable: 'MAVEN_SETTINGS'
641 - file-id: 'api-onosproject-ssh-key'
642 target: 'id_rsa.pub'
643 variable: 'API_ONOSPROJECT_SSH_KEY'
644
645 #put shell scripts in file then make sure shell check is installed on verify vms
646 - shell: !include-raw-escape: onos-docker-build.sh
647 # JJB 1.6.2 does not support parameter expansion on filename?
648 #- shell: !include-raw-escape: {project-name}-verify.sh
649
650- job-template:
651 #default name is global
Ray Milkeyd9f73662017-11-06 10:29:51 -0800652 name: 'onos-{stream}-maven-verify'
653
654 <<: *job_boiler_plate
655 # yamllint disable-line rule:key-duplicates
Ray Milkeye2175452020-05-06 12:22:58 -0700656 <<: *weekly_boiler_plate_with_slack
Ray Milkeyd9f73662017-11-06 10:29:51 -0800657
658 builders:
659 #put shell scripts in file then make sure shell check is installed on verify vms
660 - shell: !include-raw-escape: onos-maven-verify.sh
661 # JJB 1.6.2 does not support parameter expansion on filename?
662 #- shell: !include-raw-escape: {project-name}-verify.sh
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700663
Daniele Moroce4cc702021-02-26 18:57:30 +0100664- job-template:
665 #default name is global
666 name: 'onos-{stream}-release-build-upload-snapshot'
667
668 # Job template for post-merge snapshot artifacts build and upload
669
670 <<: *job_boiler_plate
671 # yamllint disable-line rule:key-duplicates
672 <<: *post_merge_boiler_plate
673
674 builders:
675 - config-file-provider:
676 files:
677 - file-id: 'gpg-key'
678 target: 'jenkins.key'
679 variable: 'GPG_KEY_FILE'
Daniele Moro344e9a92021-05-19 16:56:52 +0200680 - file-id: 'release-build-maven-settings'
681 target: 'settings.xml'
682 variable: 'MAVEN_SETTINGS'
Daniele Moroce4cc702021-02-26 18:57:30 +0100683
684 #put shell scripts in file then make sure shell check is installed on verify vms
685 - shell: !include-raw-escape: install-bazel.sh
686 - shell: !include-raw-escape: onos-snapshot-build.sh
687 # JJB 1.6.2 does not support parameter expansion on filename?
688 #- shell: !include-raw-escape: {project-name}-verify.sh
689
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700690- project:
691 name: onos
692 project-name: onos
693 project: onos
694
Ray Milkey43a340c2018-02-20 13:49:00 -0800695 build-timeout: '30'
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700696 build-node: 'ubuntu16.04-basebuild-8c-15g'
697
698 stream:
Ray Milkey1bc13772017-10-31 15:57:17 -0700699 - 'onos-1.10'
700 - 'onos-1.11'
Ray Milkey47d4f722017-11-21 09:36:37 -0800701 - 'onos-1.12'
Ray Milkeyfcb0db62018-04-13 16:47:46 -0700702 - 'onos-1.13'
Ray Milkey648eb912018-08-20 14:24:56 -0700703 - 'onos-1.14'
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700704
705 jobs:
706 - '{project-name}-{stream}-verify'
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -0700707
708- project:
Ray Milkey2c9ed832018-08-07 10:45:52 -0700709 name: onos-bazel
710 project-name: onos-bazel
711 project: onos
712
713 build-timeout: '30'
714 build-node: 'ubuntu16.04-basebuild-8c-15g'
715
716 stream:
717 - 'master'
Ray Milkey648eb912018-08-20 14:24:56 -0700718 - 'onos-1.14'
Ray Milkeyfef4be02018-11-08 15:34:13 -0800719 - 'onos-1.15'
Ray Milkey785e6232018-12-20 08:18:15 -0800720 - 'onos-2.0'
Ray Milkey12398252019-04-22 10:51:26 -0700721 - 'onos-2.1'
Ray Milkey70043e12019-08-23 13:18:20 -0700722 - 'onos-2.2'
Ray Milkey5a0238c2020-01-21 15:47:52 -0800723 - 'onos-2.3'
Ray Milkey805f3342020-06-04 15:41:24 -0700724 - 'onos-2.4'
Ray Milkey72970562020-12-01 12:14:37 -0800725 - 'onos-2.5'
Ray Milkey8cbff5c2021-07-13 15:48:42 -0700726 - 'onos-2.6'
Ray Milkey91bf53e2018-11-05 14:22:51 -0800727 - 'upan-connect18'
Ray Milkey219ab182018-11-26 14:19:34 -0800728 - 'upan-connect18-1.14'
Ray Milkey2c9ed832018-08-07 10:45:52 -0700729
730 jobs:
731 - '{project-name}-{stream}-bazel-verify'
732
733- project:
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -0700734 name: onos-yang-tools
735 project-name: onos-yang-tools
736 project: onos-yang-tools
737
Ray Milkey43a340c2018-02-20 13:49:00 -0800738 build-timeout: '30'
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -0700739 build-node: 'ubuntu16.04-basebuild-8c-15g'
740
741 stream:
742 - 'master'
743
744 jobs:
745 - 'onos-yang-tools-{stream}-verify'
Ray Milkey8e462202017-11-02 10:18:37 -0700746
747- project:
Yuta HIGUCHI7e982142018-05-08 15:02:05 -0700748 name: onos-yang-tools-release-build
749 project-name: onos-yang-tools-release-build
750 project: onos-yang-tools
751
752 build-timeout: '240'
753 build-node: 'ubuntu16.04-basebuild-8c-15g'
754
755 stream: 'master'
756
757 jobs:
758 - 'onos-yang-tools-release-build'
759
760
761- project:
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800762 name: onos-app-samples
763 project-name: onos-app-samples
764 project: onos-app-samples
765
Ray Milkey43a340c2018-02-20 13:49:00 -0800766 build-timeout: '30'
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800767 build-node: 'ubuntu16.04-basebuild-8c-15g'
768
769 stream:
770 - 'master'
771
772 jobs:
773 - 'onos-app-samples-{stream}-verify'
774
Yuta HIGUCHI1ac83232017-11-17 16:37:57 -0800775- project:
776 name: onos-loxi
777 project-name: onos-loxi
778 project: onos-loxi
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800779
Ray Milkey43a340c2018-02-20 13:49:00 -0800780 build-timeout: '30'
Yuta HIGUCHI1ac83232017-11-17 16:37:57 -0800781 build-node: 'ubuntu16.04-basebuild-8c-15g'
782
783 stream:
784 - 'master'
785
786 jobs:
787 - 'onos-loxi-{stream}-verify'
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800788
789- project:
Ray Milkey8e462202017-11-02 10:18:37 -0700790 name: onos-release
791 project-name: onos-release
792 project: onos
793
Ray Milkey2d55e972018-05-04 13:01:36 -0700794 build-timeout: '240'
Ray Milkey8e462202017-11-02 10:18:37 -0700795 build-node: 'ubuntu16.04-basebuild-8c-15g'
796
797 stream:
798 - 'master'
Ray Milkey8cbff5c2021-07-13 15:48:42 -0700799 - 'onos-2.6'
Daniele Moro94bdb572021-07-18 17:42:23 +0200800 - 'onos-2.5'
Ray Milkeye2175452020-05-06 12:22:58 -0700801 - 'onos-2.2'
Ray Milkey7f8a23c2019-04-05 09:43:55 -0700802 - 'onos-1.15'
Ray Milkey7f8a23c2019-04-05 09:43:55 -0700803 - 'onos-1.12'
Ray Milkey8e462202017-11-02 10:18:37 -0700804
805 jobs:
806 - 'onos-{stream}-release-build-verify'
Ray Milkeyd9f73662017-11-06 10:29:51 -0800807
808- project:
809 name: onos-maven-verify
810 project-name: onos-maven-verify
811 project: onos
812
Ray Milkey43a340c2018-02-20 13:49:00 -0800813 build-timeout: '30'
Ray Milkeyd9f73662017-11-06 10:29:51 -0800814 build-node: 'ubuntu16.04-basebuild-8c-15g'
815
816 stream:
Ray Milkeye8f39e02018-04-16 13:34:34 -0700817 - 'onos-1.12'
Ray Milkeyd9f73662017-11-06 10:29:51 -0800818
819 jobs:
820 - 'onos-{stream}-maven-verify'
Ray Milkey20d22522017-11-08 10:55:52 -0800821
822- project:
Ray Milkey2afc4a52017-11-17 11:01:38 -0800823 name: onos-release-build
824 project-name: onos-release-build
825 project: onos
826
Ray Milkey884a2b82018-05-22 08:29:45 -0700827 build-timeout: '240'
Ray Milkey2afc4a52017-11-17 11:01:38 -0800828 build-node: 'ubuntu16.04-basebuild-8c-15g'
829
Ray Milkey4309d9b2017-11-17 13:41:46 -0800830 stream: 'master'
Ray Milkey2afc4a52017-11-17 11:01:38 -0800831
832 jobs:
833 - 'onos-release-build'
Ray Milkey0caba7f2018-01-08 12:56:18 -0800834
835- project:
Ray Milkey7c8b3f22018-08-13 15:01:12 -0700836 name: onos-bazel-release-build
837 project-name: onos-bazel-release-build
838 project: onos
839
840 build-timeout: '240'
841 build-node: 'ubuntu16.04-basebuild-8c-15g'
842
843 stream: 'master'
844
845 jobs:
846 - 'onos-bazel-release-build'
847
848- project:
Ray Milkey0caba7f2018-01-08 12:56:18 -0800849 name: onos-docker-build
850 project-name: onos-docker-build
851 project: onos
852
Ray Milkey43a340c2018-02-20 13:49:00 -0800853 build-timeout: '90'
Ray Milkey0caba7f2018-01-08 12:56:18 -0800854 build-node: 'ubuntu16.04-basebuild-8c-15g'
855
856 stream: 'master'
857
858 jobs:
859 - 'onos-docker-build'
Ray Milkey3aa8af52018-03-09 09:10:08 -0800860
Daniele Moroce4cc702021-02-26 18:57:30 +0100861- project:
Andrea Campanellad02f4322021-08-26 13:02:26 +0200862 name: onos-docker-merge-master-build
863 project-name: onos-docker-merge-master-build
864 project: onos
865
866 build-timeout: '240'
867 build-node: 'ubuntu16.04-basebuild-8c-15g'
868
869 stream:
870 - 'master'
871
872 jobs:
873 - 'onos-{stream}-docker-merge-build':
Andrea Campanella3f1b64a2021-08-27 15:00:15 +0200874 ONOS_TAG: 'latest'
875 disabled: true
Andrea Campanellad02f4322021-08-26 13:02:26 +0200876
877- project:
878 name: onos-docker-merge-released-build
879 project-name: onos-docker-merge-released-build
880 project: onos
881
882 build-timeout: '240'
883 build-node: 'ubuntu16.04-basebuild-8c-15g'
884
885 stream:
886 - 'onos-2.6'
887 - 'onos-2.5'
888
889 jobs:
890 - 'onos-{stream}-docker-merge-build':
Andrea Campanella3f1b64a2021-08-27 15:00:15 +0200891 ONOS_TAG: '{stream}-latest'
892 disabled: true
Andrea Campanellad02f4322021-08-26 13:02:26 +0200893- project:
Daniele Moroce4cc702021-02-26 18:57:30 +0100894 name: onos-snapshot
895 project-name: onos-snapshot
896 project: onos
897
898 build-timeout: '240'
899 build-node: 'ubuntu16.04-basebuild-8c-15g'
900
901 stream:
902 - 'master'
Ray Milkey8cbff5c2021-07-13 15:48:42 -0700903 - 'onos-2.6'
Daniele Moro94bdb572021-07-18 17:42:23 +0200904 - 'onos-2.5'
Daniele Moroce4cc702021-02-26 18:57:30 +0100905
906 jobs:
907 - 'onos-{stream}-release-build-upload-snapshot'
908