blob: dbb6e03fe0d74e9b76f28a4f3dd6af302c8c133c [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:
142 #server-name: '{gerrit-server-name}'
143 server-name: 'ONOS Project Gerrit'
144 #trigger-on: '{obj:gerrit_verify_triggers}'
145 trigger-on:
146 - change-merged-event: true
147 projects:
148 - project-compare-type: PLAIN
149 project-pattern: '{project}'
150 branches:
151 - branch-compare-type: ANT
152 branch-pattern: '**/{stream}'
153 #file-paths: '{obj:gerrit_trigger_file_paths}'
Ray Milkeyc6e9a852018-01-30 13:27:06 -0800154
Ray Milkeye2175452020-05-06 12:22:58 -0700155- weekly_boiler_plate_with_slack: &weekly_boiler_plate_with_slack
156 name: weekly_boiler_plate_with_slack
Ray Milkeyd9f73662017-11-06 10:29:51 -0800157
158 concurrent: true
159
160 scm:
Zack Williams00d2c622020-09-30 09:17:48 -0700161 - onf-infra-gerrit-scm:
Ray Milkeyd9f73662017-11-06 10:29:51 -0800162 git-url: '{git-url}'
163 refspec: '$GERRIT_REFSPEC'
164 branch: '$GERRIT_BRANCH'
Zack Williams05f06082020-01-22 14:19:34 -0700165 submodule-disable: '{submodule-disable}'
Ray Milkeyd9f73662017-11-06 10:29:51 -0800166 submodule-recursive: '{submodule-recursive}'
Zack Williams05f06082020-01-22 14:19:34 -0700167 submodule-timeout: '{submodule-timeout}'
Ray Milkeyd9f73662017-11-06 10:29:51 -0800168 choosing-strategy: gerrit
169 jenkins-ssh-credential: '{jenkins-ssh-credential}'
Zack Williams00d2c622020-09-30 09:17:48 -0700170 basedir: "$WORKSPACE"
Ray Milkeyd9f73662017-11-06 10:29:51 -0800171
172 triggers:
Ray Milkeye2175452020-05-06 12:22:58 -0700173 - timed: '@weekly'
Ray Milkeyd9f73662017-11-06 10:29:51 -0800174
Ray Milkeyc6e9a852018-01-30 13:27:06 -0800175# FIXME - there is a Slack integration plugin in 2.0.3
176 publishers:
177 - raw:
178 xml: |
179 <jenkins.plugins.slack.SlackNotifier plugin="slack@2.3">
180 <baseUrl/>
181 <teamDomain/>
182 <authToken/>
183 <authTokenCredentialId>slack-token</authTokenCredentialId>
184 <botUser>false</botUser>
185 <room>build-status</room>
186 <startNotification>false</startNotification>
187 <notifySuccess>false</notifySuccess>
188 <notifyAborted>true</notifyAborted>
189 <notifyNotBuilt>true</notifyNotBuilt>
190 <notifyUnstable>true</notifyUnstable>
191 <notifyRegression>true</notifyRegression>
192 <notifyFailure>true</notifyFailure>
193 <notifyBackToNormal>true</notifyBackToNormal>
194 <notifyRepeatedFailure>false</notifyRepeatedFailure>
195 <includeTestSummary>false</includeTestSummary>
196 <includeFailedTests>false</includeFailedTests>
197 <commitInfoChoice>AUTHORS_AND_TITLES</commitInfoChoice>
198 <includeCustomMessage>false</includeCustomMessage>
199 <customMessage/>
200 </jenkins.plugins.slack.SlackNotifier>
201
Ray Milkey4309d9b2017-11-17 13:41:46 -0800202- release_build_boiler_plate: &release_build_boiler_plate
203 name: release_build_boiler_plate
204
205 concurrent: true
206
207 parameters:
208 - lf-infra-parameters:
209 project: '{project}'
210 branch: '{stream}'
211 stream: '{stream}'
212 lftools-version: '{lftools-version}'
213
214 - string:
215 name: ONOS_VERSION
Ray Milkeyfef4be02018-11-08 15:34:13 -0800216 default: '1.15'
Ray Milkeyb40e5672018-01-26 10:10:45 -0800217 description: 'Version tag of ONOS to build'
Ray Milkey4309d9b2017-11-17 13:41:46 -0800218
219 - string:
220 name: ONOS_NEXT_VERSION
Ray Milkeyfef4be02018-11-08 15:34:13 -0800221 default: '1.15.0-SNAPSHOT'
Ray Milkeyb40e5672018-01-26 10:10:45 -0800222 description: 'Version of ONOS to reset tree to'
223
224 scm:
Zack Williams00d2c622020-09-30 09:17:48 -0700225 - onf-infra-gerrit-scm:
Ray Milkeyb40e5672018-01-26 10:10:45 -0800226 git-url: '{git-url}'
227 refspec: '$GERRIT_REFSPEC'
228 branch: '$GERRIT_BRANCH'
Zack Williams05f06082020-01-22 14:19:34 -0700229 submodule-disable: '{submodule-disable}'
Ray Milkeyb40e5672018-01-26 10:10:45 -0800230 submodule-recursive: '{submodule-recursive}'
Zack Williams05f06082020-01-22 14:19:34 -0700231 submodule-timeout: '{submodule-timeout}'
Ray Milkeyb40e5672018-01-26 10:10:45 -0800232 choosing-strategy: gerrit
233 jenkins-ssh-credential: '{jenkins-ssh-credential}'
Zack Williams00d2c622020-09-30 09:17:48 -0700234 basedir: "$WORKSPACE"
Ray Milkeyb40e5672018-01-26 10:10:45 -0800235
236- docker_build_boiler_plate: &docker_build_boiler_plate
237 name: release_build_boiler_plate
238
239 concurrent: true
240
241 parameters:
242 - lf-infra-parameters:
243 project: '{project}'
244 branch: '{stream}'
245 stream: '{stream}'
246 lftools-version: '{lftools-version}'
247
248 - string:
249 name: ONOS_TAG
250 default: ''
251 description: 'Tag of ONOS to build'
Ray Milkey4309d9b2017-11-17 13:41:46 -0800252
253 scm:
Zack Williams00d2c622020-09-30 09:17:48 -0700254 - onf-infra-gerrit-scm:
Ray Milkey4309d9b2017-11-17 13:41:46 -0800255 git-url: '{git-url}'
256 refspec: '$GERRIT_REFSPEC'
257 branch: '$GERRIT_BRANCH'
Zack Williams05f06082020-01-22 14:19:34 -0700258 submodule-disable: '{submodule-disable}'
Ray Milkey4309d9b2017-11-17 13:41:46 -0800259 submodule-recursive: '{submodule-recursive}'
Zack Williams05f06082020-01-22 14:19:34 -0700260 submodule-timeout: '{submodule-timeout}'
Ray Milkey4309d9b2017-11-17 13:41:46 -0800261 choosing-strategy: gerrit
262 jenkins-ssh-credential: '{jenkins-ssh-credential}'
Zack Williams00d2c622020-09-30 09:17:48 -0700263 basedir: "$WORKSPACE"
Ray Milkey4309d9b2017-11-17 13:41:46 -0800264
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700265- job-template:
266 #default name is global
267 name: '{project-name}-{stream}-verify'
268
269 # Job template for Java verify jobs
270 #
Daniele Moroce4cc702021-02-26 18:57:30 +0100271 # The purpose of this job template is to run "maven clean install" for
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700272 # projects using this template.
273 #
274 # Required Variables:
275 # branch: git branch (eg. master)
276
277 <<: *job_boiler_plate
278 # yamllint disable-line rule:key-duplicates
279 <<: *verify_boiler_plate
280
281 builders:
282 #put shell scripts in file then make sure shell check is installed on verify vms
Ray Milkey7aa43462017-10-30 16:15:23 -0700283 - shell: !include-raw-escape: onos-verify.sh
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -0700284 # JJB 1.6.2 does not support parameter expansion on filename?
285 #- shell: !include-raw-escape: {project-name}-verify.sh
286
Ray Milkey2c9ed832018-08-07 10:45:52 -0700287- job-template:
288 #default name is global
289 name: '{project-name}-{stream}-bazel-verify'
290
291 # Job template for Java verify jobs
292 #
293 # Required Variables:
294 # branch: git branch (eg. master)
295
296 <<: *job_boiler_plate
297 # yamllint disable-line rule:key-duplicates
298 <<: *verify_boiler_plate
299
300 builders:
301 #put shell scripts in file then make sure shell check is installed on verify vms
Ray Milkeyd83ef8e2018-11-09 11:57:01 -0800302 - shell: !include-raw-escape: install-bazel.sh
Ray Milkey2c9ed832018-08-07 10:45:52 -0700303 - shell: !include-raw-escape: onos-bazel-verify.sh
304 # JJB 1.6.2 does not support parameter expansion on filename?
305 #- shell: !include-raw-escape: {project-name}-verify.sh
306
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -0700307# workaround for lack of parameter expansion support in shell: (see above)
308- job-template:
309 #default name is global
310 name: 'onos-yang-tools-{stream}-verify'
311
312 # Job template for Java verify jobs
313 #
Daniele Moroce4cc702021-02-26 18:57:30 +0100314 # The purpose of this job template is to run "maven clean install" for
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -0700315 # projects using this template.
316 #
317 # Required Variables:
318 # branch: git branch (eg. master)
319
320 <<: *job_boiler_plate
321 # yamllint disable-line rule:key-duplicates
322 <<: *verify_boiler_plate
323
324 builders:
325 #put shell scripts in file then make sure shell check is installed on verify vms
326 - shell: !include-raw-escape: onos-yang-tools-verify.sh
327
Yuta HIGUCHI18948042018-05-08 14:07:51 -0700328- job-template:
329 #default name is global
330 name: 'onos-yang-tools-release-build'
331
332 # Job template for ONOS Yang tools release jobs
333 #
334
335 <<: *job_boiler_plate
336 # yamllint disable-line rule:key-duplicates
337 parameters:
338 - lf-infra-parameters:
339 project: '{project}'
340 branch: '{stream}'
341 stream: '{stream}'
342 lftools-version: '{lftools-version}'
343
344 - string:
345 name: YANGTOOLS_VERSION
Yuta HIGUCHIa36c0672018-05-11 09:45:47 -0700346 default: '2.4.4'
347 description: 'Version tag of ONOS Yang tools to build and release'
Yuta HIGUCHI18948042018-05-08 14:07:51 -0700348
349 - string:
350 name: YANGTOOLS_NEXT_VERSION
351 default: '2.5-SNAPSHOT'
352 description: 'Version of ONOS Yang tools to reset tree to afterwards'
353
354 scm:
Zack Williams00d2c622020-09-30 09:17:48 -0700355 - onf-infra-gerrit-scm:
Yuta HIGUCHI18948042018-05-08 14:07:51 -0700356 git-url: '{git-url}'
357 refspec: '$GERRIT_REFSPEC'
358 branch: '$GERRIT_BRANCH'
Zack Williams05f06082020-01-22 14:19:34 -0700359 submodule-disable: '{submodule-disable}'
Yuta HIGUCHI18948042018-05-08 14:07:51 -0700360 submodule-recursive: '{submodule-recursive}'
Zack Williams05f06082020-01-22 14:19:34 -0700361 submodule-timeout: '{submodule-timeout}'
Yuta HIGUCHI18948042018-05-08 14:07:51 -0700362 choosing-strategy: gerrit
363 jenkins-ssh-credential: '{jenkins-ssh-credential}'
Zack Williams00d2c622020-09-30 09:17:48 -0700364 basedir: "$WORKSPACE"
Yuta HIGUCHI7e982142018-05-08 15:02:05 -0700365
Yuta HIGUCHI18948042018-05-08 14:07:51 -0700366 builders:
367 - lf-provide-maven-settings:
368 settings-file: 'release-build-maven-settings'
369 global-settings-file: 'release-build-maven-settings'
370 - config-file-provider:
371 files:
372 - file-id: 'onos-build-credentials'
373 target: 'onos-build-credentials'
374 variable: 'CREDENTIALS_FILE'
375 - file-id: 'buck-config-local'
376 target: '.buckconfig.local'
377 variable: 'BUCK_CONFIG_FILE'
378 - file-id: 'gpg-key'
379 target: 'jenkins.key'
380 variable: 'GPG_KEY_FILE'
381 - file-id: 'release-build-maven-settings'
382 target: 'settings.xml'
383 variable: 'MAVEN_SETTINGS'
384 - file-id: 'api-onosproject-ssh-key'
385 target: 'id_rsa.pub'
386 variable: 'API_ONOSPROJECT_SSH_KEY'
387
388 #put shell scripts in file then make sure shell check is installed on verify vms
389 - shell: !include-raw-escape: onos-yang-tools-release-build.sh
390 # JJB 1.6.2 does not support parameter expansion on filename?
391 #- shell: !include-raw-escape: {project-name}-verify.sh
392
393
Ray Milkey83d912a2017-11-01 13:49:31 -0700394# workaround for lack of parameter expansion support in shell: (see above)
395- job-template:
396 #default name is global
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800397 name: 'onos-app-samples-{stream}-verify'
398
399 # Job template for Java verify jobs
400 #
Daniele Moroce4cc702021-02-26 18:57:30 +0100401 # The purpose of this job template is to run "maven clean install" for
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800402 # projects using this template.
403 #
404 # Required Variables:
405 # branch: git branch (eg. master)
406
407 <<: *job_boiler_plate
408 # yamllint disable-line rule:key-duplicates
409 <<: *verify_boiler_plate
410
411 builders:
412 #put shell scripts in file then make sure shell check is installed on verify vms
413 - shell: !include-raw-escape: onos-app-samples-verify.sh
414
Yuta HIGUCHI1ac83232017-11-17 16:37:57 -0800415# workaround for lack of parameter expansion support in shell: (see above)
416- job-template:
417 #default name is global
418 name: 'onos-loxi-{stream}-verify'
419
420 # Job template for Java verify jobs
421 #
Daniele Moroce4cc702021-02-26 18:57:30 +0100422 # The purpose of this job template is to run "maven clean install" for
Yuta HIGUCHI1ac83232017-11-17 16:37:57 -0800423 # projects using this template.
424 #
425 # Required Variables:
426 # branch: git branch (eg. master)
427
428 <<: *job_boiler_plate
429 # yamllint disable-line rule:key-duplicates
430 <<: *verify_boiler_plate
431
432 builders:
433 #put shell scripts in file then make sure shell check is installed on verify vms
434 - shell: !include-raw-escape: onos-loxi-verify.sh
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800435
Ray Milkey8e462202017-11-02 10:18:37 -0700436- job-template:
437 #default name is global
438 name: 'onos-{stream}-release-build-verify'
439
440 # Job template for Java release check jobs
441 #
442
443 <<: *job_boiler_plate
444 # yamllint disable-line rule:key-duplicates
Ray Milkeye2175452020-05-06 12:22:58 -0700445 <<: *weekly_boiler_plate
Ray Milkey8e462202017-11-02 10:18:37 -0700446
447 builders:
Ray Milkeyd3d7fa82018-08-14 17:20:52 -0700448 - config-file-provider:
449 files:
450 - file-id: 'gpg-key'
451 target: 'jenkins.key'
452 variable: 'GPG_KEY_FILE'
Ray Milkey8fae9a72017-11-17 10:03:54 -0800453
Ray Milkey8e462202017-11-02 10:18:37 -0700454 #put shell scripts in file then make sure shell check is installed on verify vms
Ray Milkeyf465a292018-11-12 09:14:16 -0800455 - shell: !include-raw-escape: install-bazel.sh
Ray Milkey8e462202017-11-02 10:18:37 -0700456 - shell: !include-raw-escape: onos-release-build-verify.sh
457 # JJB 1.6.2 does not support parameter expansion on filename?
458 #- shell: !include-raw-escape: {project-name}-verify.sh
459
Ray Milkeyd9f73662017-11-06 10:29:51 -0800460- job-template:
461 #default name is global
Ray Milkey2afc4a52017-11-17 11:01:38 -0800462 name: 'onos-release-build'
463
464 # Job template for Java release jobs
465 #
466
467 <<: *job_boiler_plate
468 # yamllint disable-line rule:key-duplicates
Ray Milkey4309d9b2017-11-17 13:41:46 -0800469 <<: *release_build_boiler_plate
Ray Milkey2afc4a52017-11-17 11:01:38 -0800470
471 builders:
Ray Milkey094fd002017-11-22 10:21:59 -0800472 - lf-provide-maven-settings:
473 settings-file: 'release-build-maven-settings'
474 global-settings-file: 'release-build-maven-settings'
Ray Milkey2afc4a52017-11-17 11:01:38 -0800475 - config-file-provider:
476 files:
477 - file-id: 'onos-build-credentials'
478 target: 'onos-build-credentials'
479 variable: 'CREDENTIALS_FILE'
Ray Milkeye8fd4f02017-11-17 14:54:18 -0800480 - file-id: 'buck-config-local'
481 target: '.buckconfig.local'
482 variable: 'BUCK_CONFIG_FILE'
Ray Milkeyb867be82017-11-27 13:29:19 -0800483 - file-id: 'gpg-key'
484 target: 'jenkins.key'
485 variable: 'GPG_KEY_FILE'
Ray Milkey43e7f932017-11-27 08:48:42 -0800486 - file-id: 'release-build-maven-settings'
487 target: 'settings.xml'
488 variable: 'MAVEN_SETTINGS'
Ray Milkey7d774fb2017-12-05 14:57:30 -0800489 - file-id: 'api-onosproject-ssh-key'
490 target: 'id_rsa.pub'
491 variable: 'API_ONOSPROJECT_SSH_KEY'
Ray Milkey2afc4a52017-11-17 11:01:38 -0800492
493 #put shell scripts in file then make sure shell check is installed on verify vms
494 - shell: !include-raw-escape: onos-release-build.sh
495 # JJB 1.6.2 does not support parameter expansion on filename?
496 #- shell: !include-raw-escape: {project-name}-verify.sh
497
498- job-template:
499 #default name is global
Ray Milkey7c8b3f22018-08-13 15:01:12 -0700500 name: 'onos-bazel-release-build'
501
502 # Job template for Java release jobs
503 #
504
505 <<: *job_boiler_plate
506 # yamllint disable-line rule:key-duplicates
507 <<: *release_build_boiler_plate
508
509 builders:
510 - lf-provide-maven-settings:
511 settings-file: 'release-build-maven-settings'
512 global-settings-file: 'release-build-maven-settings'
513 - config-file-provider:
514 files:
515 - file-id: 'onos-build-credentials'
516 target: 'onos-build-credentials'
517 variable: 'CREDENTIALS_FILE'
518 - file-id: 'gpg-key'
519 target: 'jenkins.key'
520 variable: 'GPG_KEY_FILE'
521 - file-id: 'release-build-maven-settings'
522 target: 'settings.xml'
523 variable: 'MAVEN_SETTINGS'
524 - file-id: 'api-onosproject-ssh-key'
525 target: 'id_rsa.pub'
526 variable: 'API_ONOSPROJECT_SSH_KEY'
527
528 #put shell scripts in file then make sure shell check is installed on verify vms
Ray Milkeyd83ef8e2018-11-09 11:57:01 -0800529 - shell: !include-raw-escape: install-bazel.sh
Ray Milkey7c8b3f22018-08-13 15:01:12 -0700530 - shell: !include-raw-escape: onos-bazel-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 Milkey0caba7f2018-01-08 12:56:18 -0800536 name: 'onos-docker-build'
537
538 # Job template for Docker jobs
539 #
540
541 <<: *job_boiler_plate
542 # yamllint disable-line rule:key-duplicates
Ray Milkeyb40e5672018-01-26 10:10:45 -0800543 <<: *docker_build_boiler_plate
Ray Milkey0caba7f2018-01-08 12:56:18 -0800544
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: 'buck-config-local'
555 target: '.buckconfig.local'
556 variable: 'BUCK_CONFIG_FILE'
557 - file-id: 'gpg-key'
558 target: 'jenkins.key'
559 variable: 'GPG_KEY_FILE'
560 - file-id: 'release-build-maven-settings'
561 target: 'settings.xml'
562 variable: 'MAVEN_SETTINGS'
563 - file-id: 'api-onosproject-ssh-key'
564 target: 'id_rsa.pub'
565 variable: 'API_ONOSPROJECT_SSH_KEY'
566
567 #put shell scripts in file then make sure shell check is installed on verify vms
568 - shell: !include-raw-escape: onos-docker-build.sh
569 # JJB 1.6.2 does not support parameter expansion on filename?
570 #- shell: !include-raw-escape: {project-name}-verify.sh
571
572- job-template:
573 #default name is global
Ray Milkeyd9f73662017-11-06 10:29:51 -0800574 name: 'onos-{stream}-maven-verify'
575
576 <<: *job_boiler_plate
577 # yamllint disable-line rule:key-duplicates
Ray Milkeye2175452020-05-06 12:22:58 -0700578 <<: *weekly_boiler_plate_with_slack
Ray Milkeyd9f73662017-11-06 10:29:51 -0800579
580 builders:
581 #put shell scripts in file then make sure shell check is installed on verify vms
582 - shell: !include-raw-escape: onos-maven-verify.sh
583 # JJB 1.6.2 does not support parameter expansion on filename?
584 #- shell: !include-raw-escape: {project-name}-verify.sh
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700585
Daniele Moroce4cc702021-02-26 18:57:30 +0100586- job-template:
587 #default name is global
588 name: 'onos-{stream}-release-build-upload-snapshot'
589
590 # Job template for post-merge snapshot artifacts build and upload
591
592 <<: *job_boiler_plate
593 # yamllint disable-line rule:key-duplicates
594 <<: *post_merge_boiler_plate
595
596 builders:
597 - config-file-provider:
598 files:
599 - file-id: 'gpg-key'
600 target: 'jenkins.key'
601 variable: 'GPG_KEY_FILE'
602
603 #put shell scripts in file then make sure shell check is installed on verify vms
604 - shell: !include-raw-escape: install-bazel.sh
605 - shell: !include-raw-escape: onos-snapshot-build.sh
606 # JJB 1.6.2 does not support parameter expansion on filename?
607 #- shell: !include-raw-escape: {project-name}-verify.sh
608
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700609- project:
610 name: onos
611 project-name: onos
612 project: onos
613
Ray Milkey43a340c2018-02-20 13:49:00 -0800614 build-timeout: '30'
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700615 build-node: 'ubuntu16.04-basebuild-8c-15g'
616
617 stream:
Ray Milkey1bc13772017-10-31 15:57:17 -0700618 - 'onos-1.10'
619 - 'onos-1.11'
Ray Milkey47d4f722017-11-21 09:36:37 -0800620 - 'onos-1.12'
Ray Milkeyfcb0db62018-04-13 16:47:46 -0700621 - 'onos-1.13'
Ray Milkey648eb912018-08-20 14:24:56 -0700622 - 'onos-1.14'
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700623
624 jobs:
625 - '{project-name}-{stream}-verify'
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -0700626
627- project:
Ray Milkey2c9ed832018-08-07 10:45:52 -0700628 name: onos-bazel
629 project-name: onos-bazel
630 project: onos
631
632 build-timeout: '30'
633 build-node: 'ubuntu16.04-basebuild-8c-15g'
634
635 stream:
636 - 'master'
Ray Milkey648eb912018-08-20 14:24:56 -0700637 - 'onos-1.14'
Ray Milkeyfef4be02018-11-08 15:34:13 -0800638 - 'onos-1.15'
Ray Milkey785e6232018-12-20 08:18:15 -0800639 - 'onos-2.0'
Ray Milkey12398252019-04-22 10:51:26 -0700640 - 'onos-2.1'
Ray Milkey70043e12019-08-23 13:18:20 -0700641 - 'onos-2.2'
Ray Milkey5a0238c2020-01-21 15:47:52 -0800642 - 'onos-2.3'
Ray Milkey805f3342020-06-04 15:41:24 -0700643 - 'onos-2.4'
Ray Milkey72970562020-12-01 12:14:37 -0800644 - 'onos-2.5'
Ray Milkey91bf53e2018-11-05 14:22:51 -0800645 - 'upan-connect18'
Ray Milkey219ab182018-11-26 14:19:34 -0800646 - 'upan-connect18-1.14'
Ray Milkey2c9ed832018-08-07 10:45:52 -0700647
648 jobs:
649 - '{project-name}-{stream}-bazel-verify'
650
651- project:
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -0700652 name: onos-yang-tools
653 project-name: onos-yang-tools
654 project: onos-yang-tools
655
Ray Milkey43a340c2018-02-20 13:49:00 -0800656 build-timeout: '30'
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -0700657 build-node: 'ubuntu16.04-basebuild-8c-15g'
658
659 stream:
660 - 'master'
661
662 jobs:
663 - 'onos-yang-tools-{stream}-verify'
Ray Milkey8e462202017-11-02 10:18:37 -0700664
665- project:
Yuta HIGUCHI7e982142018-05-08 15:02:05 -0700666 name: onos-yang-tools-release-build
667 project-name: onos-yang-tools-release-build
668 project: onos-yang-tools
669
670 build-timeout: '240'
671 build-node: 'ubuntu16.04-basebuild-8c-15g'
672
673 stream: 'master'
674
675 jobs:
676 - 'onos-yang-tools-release-build'
677
678
679- project:
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800680 name: onos-app-samples
681 project-name: onos-app-samples
682 project: onos-app-samples
683
Ray Milkey43a340c2018-02-20 13:49:00 -0800684 build-timeout: '30'
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800685 build-node: 'ubuntu16.04-basebuild-8c-15g'
686
687 stream:
688 - 'master'
689
690 jobs:
691 - 'onos-app-samples-{stream}-verify'
692
Yuta HIGUCHI1ac83232017-11-17 16:37:57 -0800693- project:
694 name: onos-loxi
695 project-name: onos-loxi
696 project: onos-loxi
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800697
Ray Milkey43a340c2018-02-20 13:49:00 -0800698 build-timeout: '30'
Yuta HIGUCHI1ac83232017-11-17 16:37:57 -0800699 build-node: 'ubuntu16.04-basebuild-8c-15g'
700
701 stream:
702 - 'master'
703
704 jobs:
705 - 'onos-loxi-{stream}-verify'
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800706
707- project:
Ray Milkey8e462202017-11-02 10:18:37 -0700708 name: onos-release
709 project-name: onos-release
710 project: onos
711
Ray Milkey2d55e972018-05-04 13:01:36 -0700712 build-timeout: '240'
Ray Milkey8e462202017-11-02 10:18:37 -0700713 build-node: 'ubuntu16.04-basebuild-8c-15g'
714
715 stream:
716 - 'master'
Ray Milkey72970562020-12-01 12:14:37 -0800717 - 'onos-2.5'
Ray Milkeye2175452020-05-06 12:22:58 -0700718 - 'onos-2.2'
Ray Milkey7f8a23c2019-04-05 09:43:55 -0700719 - 'onos-1.15'
Ray Milkey7f8a23c2019-04-05 09:43:55 -0700720 - 'onos-1.12'
Ray Milkey8e462202017-11-02 10:18:37 -0700721
722 jobs:
723 - 'onos-{stream}-release-build-verify'
Ray Milkeyd9f73662017-11-06 10:29:51 -0800724
725- project:
726 name: onos-maven-verify
727 project-name: onos-maven-verify
728 project: onos
729
Ray Milkey43a340c2018-02-20 13:49:00 -0800730 build-timeout: '30'
Ray Milkeyd9f73662017-11-06 10:29:51 -0800731 build-node: 'ubuntu16.04-basebuild-8c-15g'
732
733 stream:
Ray Milkeye8f39e02018-04-16 13:34:34 -0700734 - 'onos-1.12'
Ray Milkeyd9f73662017-11-06 10:29:51 -0800735
736 jobs:
737 - 'onos-{stream}-maven-verify'
Ray Milkey20d22522017-11-08 10:55:52 -0800738
739- project:
Ray Milkey2afc4a52017-11-17 11:01:38 -0800740 name: onos-release-build
741 project-name: onos-release-build
742 project: onos
743
Ray Milkey884a2b82018-05-22 08:29:45 -0700744 build-timeout: '240'
Ray Milkey2afc4a52017-11-17 11:01:38 -0800745 build-node: 'ubuntu16.04-basebuild-8c-15g'
746
Ray Milkey4309d9b2017-11-17 13:41:46 -0800747 stream: 'master'
Ray Milkey2afc4a52017-11-17 11:01:38 -0800748
749 jobs:
750 - 'onos-release-build'
Ray Milkey0caba7f2018-01-08 12:56:18 -0800751
752- project:
Ray Milkey7c8b3f22018-08-13 15:01:12 -0700753 name: onos-bazel-release-build
754 project-name: onos-bazel-release-build
755 project: onos
756
757 build-timeout: '240'
758 build-node: 'ubuntu16.04-basebuild-8c-15g'
759
760 stream: 'master'
761
762 jobs:
763 - 'onos-bazel-release-build'
764
765- project:
Ray Milkey0caba7f2018-01-08 12:56:18 -0800766 name: onos-docker-build
767 project-name: onos-docker-build
768 project: onos
769
Ray Milkey43a340c2018-02-20 13:49:00 -0800770 build-timeout: '90'
Ray Milkey0caba7f2018-01-08 12:56:18 -0800771 build-node: 'ubuntu16.04-basebuild-8c-15g'
772
773 stream: 'master'
774
775 jobs:
776 - 'onos-docker-build'
Ray Milkey3aa8af52018-03-09 09:10:08 -0800777
Daniele Moroce4cc702021-02-26 18:57:30 +0100778- project:
779 name: onos-snapshot
780 project-name: onos-snapshot
781 project: onos
782
783 build-timeout: '240'
784 build-node: 'ubuntu16.04-basebuild-8c-15g'
785
786 stream:
787 - 'master'
788
789 jobs:
790 - 'onos-{stream}-release-build-upload-snapshot'
791