blob: 56615a671e5cd6fa05b4841cd921abbad1a55cb3 [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:
Zack Williamse3683182022-07-29 11:34:26 -070035 - onf-infra-rsync-wrappers:
Brian O'Connor9fbe7722017-10-27 12:44:04 -070036 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
Andrea Campanellabd4b1fc2021-08-27 17:10:10 +0200268 onos-tag: 'latest'
269
Andrea Campanellad02f4322021-08-26 13:02:26 +0200270 parameters:
271 - lf-infra-parameters:
272 project: '{project}'
273 branch: '{stream}'
274 stream: '{stream}'
275 lftools-version: '{lftools-version}'
276
277 - string:
278 name: ONOS_TAG
Andrea Campanellabd4b1fc2021-08-27 17:10:10 +0200279 default: '{onos-tag}'
Andrea Campanellad02f4322021-08-26 13:02:26 +0200280 description: 'Tag of ONOS to build'
281
282 scm:
283 - onf-infra-gerrit-scm:
284 git-url: '{git-url}'
285 refspec: '$GERRIT_REFSPEC'
286 branch: '$GERRIT_BRANCH'
287 submodule-disable: '{submodule-disable}'
288 submodule-recursive: '{submodule-recursive}'
289 submodule-timeout: '{submodule-timeout}'
290 choosing-strategy: gerrit
291 jenkins-ssh-credential: '{jenkins-ssh-credential}'
292 basedir: "$WORKSPACE"
293
294 triggers:
295 - gerrit:
296 server-name: 'ONOS Project Gerrit'
297 trigger-on:
298 - change-merged-event
299 projects:
300 - project-compare-type: PLAIN
301 project-pattern: '{project}'
302 branches:
303 - branch-compare-type: ANT
304 branch-pattern: '**/{stream}'
305 #file-paths: '{obj:gerrit_trigger_file_paths}'
306
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700307- job-template:
308 #default name is global
309 name: '{project-name}-{stream}-verify'
310
311 # Job template for Java verify jobs
312 #
Daniele Moroce4cc702021-02-26 18:57:30 +0100313 # The purpose of this job template is to run "maven clean install" for
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700314 # projects using this template.
315 #
316 # Required Variables:
317 # branch: git branch (eg. master)
318
319 <<: *job_boiler_plate
320 # yamllint disable-line rule:key-duplicates
321 <<: *verify_boiler_plate
322
323 builders:
324 #put shell scripts in file then make sure shell check is installed on verify vms
Ray Milkey7aa43462017-10-30 16:15:23 -0700325 - shell: !include-raw-escape: onos-verify.sh
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -0700326 # JJB 1.6.2 does not support parameter expansion on filename?
327 #- shell: !include-raw-escape: {project-name}-verify.sh
328
Ray Milkey2c9ed832018-08-07 10:45:52 -0700329- job-template:
330 #default name is global
331 name: '{project-name}-{stream}-bazel-verify'
332
333 # Job template for Java verify jobs
334 #
335 # Required Variables:
336 # branch: git branch (eg. master)
337
338 <<: *job_boiler_plate
339 # yamllint disable-line rule:key-duplicates
340 <<: *verify_boiler_plate
341
342 builders:
343 #put shell scripts in file then make sure shell check is installed on verify vms
Ray Milkeyd83ef8e2018-11-09 11:57:01 -0800344 - shell: !include-raw-escape: install-bazel.sh
Ray Milkey2c9ed832018-08-07 10:45:52 -0700345 - shell: !include-raw-escape: onos-bazel-verify.sh
346 # JJB 1.6.2 does not support parameter expansion on filename?
347 #- shell: !include-raw-escape: {project-name}-verify.sh
348
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -0700349# workaround for lack of parameter expansion support in shell: (see above)
350- job-template:
351 #default name is global
352 name: 'onos-yang-tools-{stream}-verify'
353
354 # Job template for Java verify jobs
355 #
Daniele Moroce4cc702021-02-26 18:57:30 +0100356 # The purpose of this job template is to run "maven clean install" for
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -0700357 # projects using this template.
358 #
359 # Required Variables:
360 # branch: git branch (eg. master)
361
362 <<: *job_boiler_plate
363 # yamllint disable-line rule:key-duplicates
364 <<: *verify_boiler_plate
365
366 builders:
367 #put shell scripts in file then make sure shell check is installed on verify vms
368 - shell: !include-raw-escape: onos-yang-tools-verify.sh
369
Yuta HIGUCHI18948042018-05-08 14:07:51 -0700370- job-template:
371 #default name is global
372 name: 'onos-yang-tools-release-build'
373
374 # Job template for ONOS Yang tools release jobs
375 #
376
377 <<: *job_boiler_plate
378 # yamllint disable-line rule:key-duplicates
379 parameters:
380 - lf-infra-parameters:
381 project: '{project}'
382 branch: '{stream}'
383 stream: '{stream}'
384 lftools-version: '{lftools-version}'
385
386 - string:
387 name: YANGTOOLS_VERSION
Yuta HIGUCHIa36c0672018-05-11 09:45:47 -0700388 default: '2.4.4'
389 description: 'Version tag of ONOS Yang tools to build and release'
Yuta HIGUCHI18948042018-05-08 14:07:51 -0700390
391 - string:
392 name: YANGTOOLS_NEXT_VERSION
393 default: '2.5-SNAPSHOT'
394 description: 'Version of ONOS Yang tools to reset tree to afterwards'
395
396 scm:
Zack Williams00d2c622020-09-30 09:17:48 -0700397 - onf-infra-gerrit-scm:
Yuta HIGUCHI18948042018-05-08 14:07:51 -0700398 git-url: '{git-url}'
399 refspec: '$GERRIT_REFSPEC'
400 branch: '$GERRIT_BRANCH'
Zack Williams05f06082020-01-22 14:19:34 -0700401 submodule-disable: '{submodule-disable}'
Yuta HIGUCHI18948042018-05-08 14:07:51 -0700402 submodule-recursive: '{submodule-recursive}'
Zack Williams05f06082020-01-22 14:19:34 -0700403 submodule-timeout: '{submodule-timeout}'
Yuta HIGUCHI18948042018-05-08 14:07:51 -0700404 choosing-strategy: gerrit
405 jenkins-ssh-credential: '{jenkins-ssh-credential}'
Zack Williams00d2c622020-09-30 09:17:48 -0700406 basedir: "$WORKSPACE"
Yuta HIGUCHI7e982142018-05-08 15:02:05 -0700407
Yuta HIGUCHI18948042018-05-08 14:07:51 -0700408 builders:
409 - lf-provide-maven-settings:
410 settings-file: 'release-build-maven-settings'
411 global-settings-file: 'release-build-maven-settings'
412 - config-file-provider:
413 files:
414 - file-id: 'onos-build-credentials'
415 target: 'onos-build-credentials'
416 variable: 'CREDENTIALS_FILE'
417 - file-id: 'buck-config-local'
418 target: '.buckconfig.local'
419 variable: 'BUCK_CONFIG_FILE'
420 - file-id: 'gpg-key'
421 target: 'jenkins.key'
422 variable: 'GPG_KEY_FILE'
423 - file-id: 'release-build-maven-settings'
424 target: 'settings.xml'
425 variable: 'MAVEN_SETTINGS'
Yuta HIGUCHI18948042018-05-08 14:07:51 -0700426
427 #put shell scripts in file then make sure shell check is installed on verify vms
428 - shell: !include-raw-escape: onos-yang-tools-release-build.sh
429 # JJB 1.6.2 does not support parameter expansion on filename?
430 #- shell: !include-raw-escape: {project-name}-verify.sh
431
432
Ray Milkey83d912a2017-11-01 13:49:31 -0700433# workaround for lack of parameter expansion support in shell: (see above)
434- job-template:
435 #default name is global
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800436 name: 'onos-app-samples-{stream}-verify'
437
438 # Job template for Java verify jobs
439 #
Daniele Moroce4cc702021-02-26 18:57:30 +0100440 # The purpose of this job template is to run "maven clean install" for
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800441 # projects using this template.
442 #
443 # Required Variables:
444 # branch: git branch (eg. master)
445
446 <<: *job_boiler_plate
447 # yamllint disable-line rule:key-duplicates
448 <<: *verify_boiler_plate
449
450 builders:
451 #put shell scripts in file then make sure shell check is installed on verify vms
452 - shell: !include-raw-escape: onos-app-samples-verify.sh
453
Yuta HIGUCHI1ac83232017-11-17 16:37:57 -0800454# workaround for lack of parameter expansion support in shell: (see above)
455- job-template:
456 #default name is global
457 name: 'onos-loxi-{stream}-verify'
458
459 # Job template for Java verify jobs
460 #
Daniele Moroce4cc702021-02-26 18:57:30 +0100461 # The purpose of this job template is to run "maven clean install" for
Yuta HIGUCHI1ac83232017-11-17 16:37:57 -0800462 # projects using this template.
463 #
464 # Required Variables:
465 # branch: git branch (eg. master)
466
467 <<: *job_boiler_plate
468 # yamllint disable-line rule:key-duplicates
469 <<: *verify_boiler_plate
470
471 builders:
472 #put shell scripts in file then make sure shell check is installed on verify vms
473 - shell: !include-raw-escape: onos-loxi-verify.sh
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800474
Ray Milkey8e462202017-11-02 10:18:37 -0700475- job-template:
476 #default name is global
477 name: 'onos-{stream}-release-build-verify'
478
479 # Job template for Java release check jobs
480 #
481
482 <<: *job_boiler_plate
483 # yamllint disable-line rule:key-duplicates
Ray Milkeye2175452020-05-06 12:22:58 -0700484 <<: *weekly_boiler_plate
Ray Milkey8e462202017-11-02 10:18:37 -0700485
486 builders:
Ray Milkeyd3d7fa82018-08-14 17:20:52 -0700487 - config-file-provider:
488 files:
489 - file-id: 'gpg-key'
490 target: 'jenkins.key'
491 variable: 'GPG_KEY_FILE'
Ray Milkey8fae9a72017-11-17 10:03:54 -0800492
Ray Milkey8e462202017-11-02 10:18:37 -0700493 #put shell scripts in file then make sure shell check is installed on verify vms
Ray Milkeyf465a292018-11-12 09:14:16 -0800494 - shell: !include-raw-escape: install-bazel.sh
Ray Milkey8e462202017-11-02 10:18:37 -0700495 - shell: !include-raw-escape: onos-release-build-verify.sh
496 # JJB 1.6.2 does not support parameter expansion on filename?
497 #- shell: !include-raw-escape: {project-name}-verify.sh
498
Ray Milkeyd9f73662017-11-06 10:29:51 -0800499- job-template:
500 #default name is global
Ray Milkey2afc4a52017-11-17 11:01:38 -0800501 name: 'onos-release-build'
502
503 # Job template for Java release jobs
504 #
505
506 <<: *job_boiler_plate
507 # yamllint disable-line rule:key-duplicates
Ray Milkey4309d9b2017-11-17 13:41:46 -0800508 <<: *release_build_boiler_plate
Ray Milkey2afc4a52017-11-17 11:01:38 -0800509
510 builders:
Ray Milkey094fd002017-11-22 10:21:59 -0800511 - lf-provide-maven-settings:
512 settings-file: 'release-build-maven-settings'
513 global-settings-file: 'release-build-maven-settings'
Ray Milkey2afc4a52017-11-17 11:01:38 -0800514 - config-file-provider:
515 files:
516 - file-id: 'onos-build-credentials'
517 target: 'onos-build-credentials'
518 variable: 'CREDENTIALS_FILE'
Ray Milkeye8fd4f02017-11-17 14:54:18 -0800519 - file-id: 'buck-config-local'
520 target: '.buckconfig.local'
521 variable: 'BUCK_CONFIG_FILE'
Ray Milkeyb867be82017-11-27 13:29:19 -0800522 - file-id: 'gpg-key'
523 target: 'jenkins.key'
524 variable: 'GPG_KEY_FILE'
Ray Milkey43e7f932017-11-27 08:48:42 -0800525 - file-id: 'release-build-maven-settings'
526 target: 'settings.xml'
527 variable: 'MAVEN_SETTINGS'
Ray Milkey2afc4a52017-11-17 11:01:38 -0800528
529 #put shell scripts in file then make sure shell check is installed on verify vms
530 - shell: !include-raw-escape: onos-release-build.sh
531 # JJB 1.6.2 does not support parameter expansion on filename?
532 #- shell: !include-raw-escape: {project-name}-verify.sh
533
534- job-template:
535 #default name is global
Ray Milkey7c8b3f22018-08-13 15:01:12 -0700536 name: 'onos-bazel-release-build'
537
538 # Job template for Java release jobs
539 #
540
541 <<: *job_boiler_plate
542 # yamllint disable-line rule:key-duplicates
543 <<: *release_build_boiler_plate
544
545 builders:
546 - lf-provide-maven-settings:
547 settings-file: 'release-build-maven-settings'
548 global-settings-file: 'release-build-maven-settings'
549 - config-file-provider:
550 files:
551 - file-id: 'onos-build-credentials'
552 target: 'onos-build-credentials'
553 variable: 'CREDENTIALS_FILE'
554 - file-id: 'gpg-key'
555 target: 'jenkins.key'
556 variable: 'GPG_KEY_FILE'
557 - file-id: 'release-build-maven-settings'
558 target: 'settings.xml'
559 variable: 'MAVEN_SETTINGS'
560 - file-id: 'api-onosproject-ssh-key'
561 target: 'id_rsa.pub'
562 variable: 'API_ONOSPROJECT_SSH_KEY'
563
564 #put shell scripts in file then make sure shell check is installed on verify vms
Ray Milkeyd83ef8e2018-11-09 11:57:01 -0800565 - shell: !include-raw-escape: install-bazel.sh
Ray Milkey7c8b3f22018-08-13 15:01:12 -0700566 - shell: !include-raw-escape: onos-bazel-release-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 Milkey0caba7f2018-01-08 12:56:18 -0800572 name: 'onos-docker-build'
573
574 # Job template for Docker jobs
575 #
576
577 <<: *job_boiler_plate
578 # yamllint disable-line rule:key-duplicates
Andrea Campanellad02f4322021-08-26 13:02:26 +0200579 <<: *docker_release_build_boiler_plate
580
581 builders:
582 - lf-provide-maven-settings:
583 settings-file: 'release-build-maven-settings'
584 global-settings-file: 'release-build-maven-settings'
585 - config-file-provider:
586 files:
587 - file-id: 'onos-build-credentials'
588 target: 'onos-build-credentials'
589 variable: 'CREDENTIALS_FILE'
590 - file-id: 'buck-config-local'
591 target: '.buckconfig.local'
592 variable: 'BUCK_CONFIG_FILE'
593 - file-id: 'gpg-key'
594 target: 'jenkins.key'
595 variable: 'GPG_KEY_FILE'
596 - file-id: 'release-build-maven-settings'
597 target: 'settings.xml'
598 variable: 'MAVEN_SETTINGS'
599 - file-id: 'api-onosproject-ssh-key'
600 target: 'id_rsa.pub'
601 variable: 'API_ONOSPROJECT_SSH_KEY'
602
603 #put shell scripts in file then make sure shell check is installed on verify vms
604 - shell: !include-raw-escape: onos-docker-build.sh
605 # JJB 1.6.2 does not support parameter expansion on filename?
606 #- shell: !include-raw-escape: {project-name}-verify.sh
607
608- job-template:
609 #default name is global
610 name: 'onos-{stream}-docker-merge-build'
611
612 # Job template for Docker jobs
613 #
614
615 <<: *job_boiler_plate
616 # yamllint disable-line rule:key-duplicates
617 <<: *docker_merge_build_boiler_plate
Ray Milkey0caba7f2018-01-08 12:56:18 -0800618
619 builders:
620 - lf-provide-maven-settings:
621 settings-file: 'release-build-maven-settings'
622 global-settings-file: 'release-build-maven-settings'
623 - config-file-provider:
624 files:
625 - file-id: 'onos-build-credentials'
626 target: 'onos-build-credentials'
627 variable: 'CREDENTIALS_FILE'
628 - file-id: 'buck-config-local'
629 target: '.buckconfig.local'
630 variable: 'BUCK_CONFIG_FILE'
631 - file-id: 'gpg-key'
632 target: 'jenkins.key'
633 variable: 'GPG_KEY_FILE'
634 - file-id: 'release-build-maven-settings'
635 target: 'settings.xml'
636 variable: 'MAVEN_SETTINGS'
637 - file-id: 'api-onosproject-ssh-key'
638 target: 'id_rsa.pub'
639 variable: 'API_ONOSPROJECT_SSH_KEY'
640
641 #put shell scripts in file then make sure shell check is installed on verify vms
642 - shell: !include-raw-escape: onos-docker-build.sh
643 # JJB 1.6.2 does not support parameter expansion on filename?
644 #- shell: !include-raw-escape: {project-name}-verify.sh
645
646- job-template:
647 #default name is global
Ray Milkeyd9f73662017-11-06 10:29:51 -0800648 name: 'onos-{stream}-maven-verify'
649
650 <<: *job_boiler_plate
651 # yamllint disable-line rule:key-duplicates
Ray Milkeye2175452020-05-06 12:22:58 -0700652 <<: *weekly_boiler_plate_with_slack
Ray Milkeyd9f73662017-11-06 10:29:51 -0800653
654 builders:
655 #put shell scripts in file then make sure shell check is installed on verify vms
656 - shell: !include-raw-escape: onos-maven-verify.sh
657 # JJB 1.6.2 does not support parameter expansion on filename?
658 #- shell: !include-raw-escape: {project-name}-verify.sh
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700659
Daniele Moroce4cc702021-02-26 18:57:30 +0100660- job-template:
661 #default name is global
662 name: 'onos-{stream}-release-build-upload-snapshot'
663
664 # Job template for post-merge snapshot artifacts build and upload
665
666 <<: *job_boiler_plate
667 # yamllint disable-line rule:key-duplicates
668 <<: *post_merge_boiler_plate
669
670 builders:
671 - config-file-provider:
672 files:
673 - file-id: 'gpg-key'
674 target: 'jenkins.key'
675 variable: 'GPG_KEY_FILE'
Daniele Moro344e9a92021-05-19 16:56:52 +0200676 - file-id: 'release-build-maven-settings'
677 target: 'settings.xml'
678 variable: 'MAVEN_SETTINGS'
Daniele Moroce4cc702021-02-26 18:57:30 +0100679
680 #put shell scripts in file then make sure shell check is installed on verify vms
681 - shell: !include-raw-escape: install-bazel.sh
682 - shell: !include-raw-escape: onos-snapshot-build.sh
683 # JJB 1.6.2 does not support parameter expansion on filename?
684 #- shell: !include-raw-escape: {project-name}-verify.sh
685
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700686- project:
687 name: onos
688 project-name: onos
689 project: onos
690
Ray Milkey43a340c2018-02-20 13:49:00 -0800691 build-timeout: '30'
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700692 build-node: 'ubuntu16.04-basebuild-8c-15g'
693
694 stream:
Ray Milkey1bc13772017-10-31 15:57:17 -0700695 - 'onos-1.10'
696 - 'onos-1.11'
Ray Milkey47d4f722017-11-21 09:36:37 -0800697 - 'onos-1.12'
Ray Milkeyfcb0db62018-04-13 16:47:46 -0700698 - 'onos-1.13'
Ray Milkey648eb912018-08-20 14:24:56 -0700699 - 'onos-1.14'
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700700
701 jobs:
702 - '{project-name}-{stream}-verify'
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -0700703
704- project:
Ray Milkey2c9ed832018-08-07 10:45:52 -0700705 name: onos-bazel
706 project-name: onos-bazel
707 project: onos
708
709 build-timeout: '30'
pierventre43acfd42022-07-27 23:28:22 +0200710 build-node: 'ubuntu20.04-basebuild-8c-15g'
Ray Milkey2c9ed832018-08-07 10:45:52 -0700711
712 stream:
713 - 'master'
Ray Milkey648eb912018-08-20 14:24:56 -0700714 - 'onos-1.14'
Ray Milkeyfef4be02018-11-08 15:34:13 -0800715 - 'onos-1.15'
Ray Milkey785e6232018-12-20 08:18:15 -0800716 - 'onos-2.0'
Ray Milkey12398252019-04-22 10:51:26 -0700717 - 'onos-2.1'
Ray Milkey70043e12019-08-23 13:18:20 -0700718 - 'onos-2.2'
Ray Milkey5a0238c2020-01-21 15:47:52 -0800719 - 'onos-2.3'
Ray Milkey805f3342020-06-04 15:41:24 -0700720 - 'onos-2.4'
Ray Milkey72970562020-12-01 12:14:37 -0800721 - 'onos-2.5'
Ray Milkey8cbff5c2021-07-13 15:48:42 -0700722 - 'onos-2.6'
Ray Milkeyda8136d2021-12-17 11:05:51 -0800723 - 'onos-2.7'
Ray Milkey91bf53e2018-11-05 14:22:51 -0800724 - 'upan-connect18'
Ray Milkey219ab182018-11-26 14:19:34 -0800725 - 'upan-connect18-1.14'
Ray Milkey2c9ed832018-08-07 10:45:52 -0700726
727 jobs:
728 - '{project-name}-{stream}-bazel-verify'
729
730- project:
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -0700731 name: onos-yang-tools
732 project-name: onos-yang-tools
733 project: onos-yang-tools
734
Ray Milkey43a340c2018-02-20 13:49:00 -0800735 build-timeout: '30'
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -0700736 build-node: 'ubuntu16.04-basebuild-8c-15g'
737
738 stream:
739 - 'master'
740
741 jobs:
742 - 'onos-yang-tools-{stream}-verify'
Ray Milkey8e462202017-11-02 10:18:37 -0700743
744- project:
Yuta HIGUCHI7e982142018-05-08 15:02:05 -0700745 name: onos-yang-tools-release-build
746 project-name: onos-yang-tools-release-build
747 project: onos-yang-tools
748
749 build-timeout: '240'
750 build-node: 'ubuntu16.04-basebuild-8c-15g'
751
752 stream: 'master'
753
754 jobs:
755 - 'onos-yang-tools-release-build'
756
757
758- project:
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800759 name: onos-app-samples
760 project-name: onos-app-samples
761 project: onos-app-samples
762
Ray Milkey43a340c2018-02-20 13:49:00 -0800763 build-timeout: '30'
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800764 build-node: 'ubuntu16.04-basebuild-8c-15g'
765
766 stream:
767 - 'master'
768
769 jobs:
770 - 'onos-app-samples-{stream}-verify'
771
Yuta HIGUCHI1ac83232017-11-17 16:37:57 -0800772- project:
773 name: onos-loxi
774 project-name: onos-loxi
775 project: onos-loxi
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800776
Ray Milkey43a340c2018-02-20 13:49:00 -0800777 build-timeout: '30'
Yuta HIGUCHI1ac83232017-11-17 16:37:57 -0800778 build-node: 'ubuntu16.04-basebuild-8c-15g'
779
780 stream:
781 - 'master'
782
783 jobs:
784 - 'onos-loxi-{stream}-verify'
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800785
786- project:
Ray Milkey8e462202017-11-02 10:18:37 -0700787 name: onos-release
788 project-name: onos-release
789 project: onos
790
Ray Milkey2d55e972018-05-04 13:01:36 -0700791 build-timeout: '240'
Ray Milkey8e462202017-11-02 10:18:37 -0700792 build-node: 'ubuntu16.04-basebuild-8c-15g'
793
794 stream:
795 - 'master'
Ray Milkeyda8136d2021-12-17 11:05:51 -0800796 - 'onos-2.7'
Daniele Moro94bdb572021-07-18 17:42:23 +0200797 - 'onos-2.5'
Ray Milkeye2175452020-05-06 12:22:58 -0700798 - 'onos-2.2'
Ray Milkey7f8a23c2019-04-05 09:43:55 -0700799 - 'onos-1.15'
Ray Milkey7f8a23c2019-04-05 09:43:55 -0700800 - 'onos-1.12'
Ray Milkey8e462202017-11-02 10:18:37 -0700801
802 jobs:
803 - 'onos-{stream}-release-build-verify'
Ray Milkeyd9f73662017-11-06 10:29:51 -0800804
805- project:
806 name: onos-maven-verify
807 project-name: onos-maven-verify
808 project: onos
809
Ray Milkey43a340c2018-02-20 13:49:00 -0800810 build-timeout: '30'
Ray Milkeyd9f73662017-11-06 10:29:51 -0800811 build-node: 'ubuntu16.04-basebuild-8c-15g'
812
813 stream:
Ray Milkeye8f39e02018-04-16 13:34:34 -0700814 - 'onos-1.12'
Ray Milkeyd9f73662017-11-06 10:29:51 -0800815
816 jobs:
817 - 'onos-{stream}-maven-verify'
Ray Milkey20d22522017-11-08 10:55:52 -0800818
819- project:
Ray Milkey2afc4a52017-11-17 11:01:38 -0800820 name: onos-release-build
821 project-name: onos-release-build
822 project: onos
823
Ray Milkey884a2b82018-05-22 08:29:45 -0700824 build-timeout: '240'
Ray Milkey2afc4a52017-11-17 11:01:38 -0800825 build-node: 'ubuntu16.04-basebuild-8c-15g'
826
Ray Milkey4309d9b2017-11-17 13:41:46 -0800827 stream: 'master'
Ray Milkey2afc4a52017-11-17 11:01:38 -0800828
829 jobs:
830 - 'onos-release-build'
Ray Milkey0caba7f2018-01-08 12:56:18 -0800831
832- project:
Ray Milkey7c8b3f22018-08-13 15:01:12 -0700833 name: onos-bazel-release-build
834 project-name: onos-bazel-release-build
835 project: onos
836
837 build-timeout: '240'
pierventre3c8a32f2022-07-29 09:31:42 +0200838 build-node: 'ubuntu20.04-basebuild-8c-15g'
Ray Milkey7c8b3f22018-08-13 15:01:12 -0700839
840 stream: 'master'
841
842 jobs:
843 - 'onos-bazel-release-build'
844
845- project:
Ray Milkey0caba7f2018-01-08 12:56:18 -0800846 name: onos-docker-build
847 project-name: onos-docker-build
848 project: onos
849
Ray Milkey43a340c2018-02-20 13:49:00 -0800850 build-timeout: '90'
pierventre3c8a32f2022-07-29 09:31:42 +0200851 build-node: 'ubuntu20.04-basebuild-8c-15g'
Ray Milkey0caba7f2018-01-08 12:56:18 -0800852
853 stream: 'master'
854
855 jobs:
856 - 'onos-docker-build'
Ray Milkey3aa8af52018-03-09 09:10:08 -0800857
Daniele Moroce4cc702021-02-26 18:57:30 +0100858- project:
Andrea Campanellad02f4322021-08-26 13:02:26 +0200859 name: onos-docker-merge-master-build
860 project-name: onos-docker-merge-master-build
861 project: onos
862
863 build-timeout: '240'
pierventre3c8a32f2022-07-29 09:31:42 +0200864 build-node: 'ubuntu20.04-basebuild-8c-15g'
Andrea Campanellad02f4322021-08-26 13:02:26 +0200865
866 stream:
867 - 'master'
868
869 jobs:
870 - 'onos-{stream}-docker-merge-build':
Andrea Campanellabd4b1fc2021-08-27 17:10:10 +0200871 onos-tag: 'latest'
Andrea Campanella3f1b64a2021-08-27 15:00:15 +0200872 disabled: true
Andrea Campanellad02f4322021-08-26 13:02:26 +0200873
874- project:
875 name: onos-docker-merge-released-build
876 project-name: onos-docker-merge-released-build
877 project: onos
878
879 build-timeout: '240'
pierventre3c8a32f2022-07-29 09:31:42 +0200880 build-node: 'ubuntu20.04-basebuild-8c-15g'
Andrea Campanellad02f4322021-08-26 13:02:26 +0200881
882 stream:
Ray Milkeyda8136d2021-12-17 11:05:51 -0800883 - 'onos-2.7'
Andrea Campanellad02f4322021-08-26 13:02:26 +0200884 - 'onos-2.6'
885 - 'onos-2.5'
886
887 jobs:
888 - 'onos-{stream}-docker-merge-build':
Andrea Campanellabd4b1fc2021-08-27 17:10:10 +0200889 onos-tag: '{stream}-latest'
Andrea Campanella3f1b64a2021-08-27 15:00:15 +0200890 disabled: true
Andrea Campanellad02f4322021-08-26 13:02:26 +0200891- project:
Daniele Moroce4cc702021-02-26 18:57:30 +0100892 name: onos-snapshot
893 project-name: onos-snapshot
894 project: onos
895
896 build-timeout: '240'
pierventre56273892022-07-28 21:45:16 +0200897 build-node: 'ubuntu20.04-basebuild-8c-15g'
Daniele Moroce4cc702021-02-26 18:57:30 +0100898
899 stream:
900 - 'master'
Ray Milkeyda8136d2021-12-17 11:05:51 -0800901 - 'onos-2.7'
Ray Milkey8cbff5c2021-07-13 15:48:42 -0700902 - 'onos-2.6'
Daniele Moro94bdb572021-07-18 17:42:23 +0200903 - 'onos-2.5'
Daniele Moroce4cc702021-02-26 18:57:30 +0100904
905 jobs:
906 - 'onos-{stream}-release-build-upload-snapshot'
907