blob: e0adeabad3ee83e3de660d49593741a950a49625 [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
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'
426 - file-id: 'api-onosproject-ssh-key'
427 target: 'id_rsa.pub'
428 variable: 'API_ONOSPROJECT_SSH_KEY'
429
430 #put shell scripts in file then make sure shell check is installed on verify vms
431 - shell: !include-raw-escape: onos-yang-tools-release-build.sh
432 # JJB 1.6.2 does not support parameter expansion on filename?
433 #- shell: !include-raw-escape: {project-name}-verify.sh
434
435
Ray Milkey83d912a2017-11-01 13:49:31 -0700436# workaround for lack of parameter expansion support in shell: (see above)
437- job-template:
438 #default name is global
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800439 name: 'onos-app-samples-{stream}-verify'
440
441 # Job template for Java verify jobs
442 #
Daniele Moroce4cc702021-02-26 18:57:30 +0100443 # The purpose of this job template is to run "maven clean install" for
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800444 # projects using this template.
445 #
446 # Required Variables:
447 # branch: git branch (eg. master)
448
449 <<: *job_boiler_plate
450 # yamllint disable-line rule:key-duplicates
451 <<: *verify_boiler_plate
452
453 builders:
454 #put shell scripts in file then make sure shell check is installed on verify vms
455 - shell: !include-raw-escape: onos-app-samples-verify.sh
456
Yuta HIGUCHI1ac83232017-11-17 16:37:57 -0800457# workaround for lack of parameter expansion support in shell: (see above)
458- job-template:
459 #default name is global
460 name: 'onos-loxi-{stream}-verify'
461
462 # Job template for Java verify jobs
463 #
Daniele Moroce4cc702021-02-26 18:57:30 +0100464 # The purpose of this job template is to run "maven clean install" for
Yuta HIGUCHI1ac83232017-11-17 16:37:57 -0800465 # projects using this template.
466 #
467 # Required Variables:
468 # branch: git branch (eg. master)
469
470 <<: *job_boiler_plate
471 # yamllint disable-line rule:key-duplicates
472 <<: *verify_boiler_plate
473
474 builders:
475 #put shell scripts in file then make sure shell check is installed on verify vms
476 - shell: !include-raw-escape: onos-loxi-verify.sh
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800477
Ray Milkey8e462202017-11-02 10:18:37 -0700478- job-template:
479 #default name is global
480 name: 'onos-{stream}-release-build-verify'
481
482 # Job template for Java release check jobs
483 #
484
485 <<: *job_boiler_plate
486 # yamllint disable-line rule:key-duplicates
Ray Milkeye2175452020-05-06 12:22:58 -0700487 <<: *weekly_boiler_plate
Ray Milkey8e462202017-11-02 10:18:37 -0700488
489 builders:
Ray Milkeyd3d7fa82018-08-14 17:20:52 -0700490 - config-file-provider:
491 files:
492 - file-id: 'gpg-key'
493 target: 'jenkins.key'
494 variable: 'GPG_KEY_FILE'
Ray Milkey8fae9a72017-11-17 10:03:54 -0800495
Ray Milkey8e462202017-11-02 10:18:37 -0700496 #put shell scripts in file then make sure shell check is installed on verify vms
Ray Milkeyf465a292018-11-12 09:14:16 -0800497 - shell: !include-raw-escape: install-bazel.sh
Ray Milkey8e462202017-11-02 10:18:37 -0700498 - shell: !include-raw-escape: onos-release-build-verify.sh
499 # JJB 1.6.2 does not support parameter expansion on filename?
500 #- shell: !include-raw-escape: {project-name}-verify.sh
501
Ray Milkeyd9f73662017-11-06 10:29:51 -0800502- job-template:
503 #default name is global
Ray Milkey2afc4a52017-11-17 11:01:38 -0800504 name: 'onos-release-build'
505
506 # Job template for Java release jobs
507 #
508
509 <<: *job_boiler_plate
510 # yamllint disable-line rule:key-duplicates
Ray Milkey4309d9b2017-11-17 13:41:46 -0800511 <<: *release_build_boiler_plate
Ray Milkey2afc4a52017-11-17 11:01:38 -0800512
513 builders:
Ray Milkey094fd002017-11-22 10:21:59 -0800514 - lf-provide-maven-settings:
515 settings-file: 'release-build-maven-settings'
516 global-settings-file: 'release-build-maven-settings'
Ray Milkey2afc4a52017-11-17 11:01:38 -0800517 - config-file-provider:
518 files:
519 - file-id: 'onos-build-credentials'
520 target: 'onos-build-credentials'
521 variable: 'CREDENTIALS_FILE'
Ray Milkeye8fd4f02017-11-17 14:54:18 -0800522 - file-id: 'buck-config-local'
523 target: '.buckconfig.local'
524 variable: 'BUCK_CONFIG_FILE'
Ray Milkeyb867be82017-11-27 13:29:19 -0800525 - file-id: 'gpg-key'
526 target: 'jenkins.key'
527 variable: 'GPG_KEY_FILE'
Ray Milkey43e7f932017-11-27 08:48:42 -0800528 - file-id: 'release-build-maven-settings'
529 target: 'settings.xml'
530 variable: 'MAVEN_SETTINGS'
Ray Milkey7d774fb2017-12-05 14:57:30 -0800531 - file-id: 'api-onosproject-ssh-key'
532 target: 'id_rsa.pub'
533 variable: 'API_ONOSPROJECT_SSH_KEY'
Ray Milkey2afc4a52017-11-17 11:01:38 -0800534
535 #put shell scripts in file then make sure shell check is installed on verify vms
536 - shell: !include-raw-escape: onos-release-build.sh
537 # JJB 1.6.2 does not support parameter expansion on filename?
538 #- shell: !include-raw-escape: {project-name}-verify.sh
539
540- job-template:
541 #default name is global
Ray Milkey7c8b3f22018-08-13 15:01:12 -0700542 name: 'onos-bazel-release-build'
543
544 # Job template for Java release jobs
545 #
546
547 <<: *job_boiler_plate
548 # yamllint disable-line rule:key-duplicates
549 <<: *release_build_boiler_plate
550
551 builders:
552 - lf-provide-maven-settings:
553 settings-file: 'release-build-maven-settings'
554 global-settings-file: 'release-build-maven-settings'
555 - config-file-provider:
556 files:
557 - file-id: 'onos-build-credentials'
558 target: 'onos-build-credentials'
559 variable: 'CREDENTIALS_FILE'
560 - file-id: 'gpg-key'
561 target: 'jenkins.key'
562 variable: 'GPG_KEY_FILE'
563 - file-id: 'release-build-maven-settings'
564 target: 'settings.xml'
565 variable: 'MAVEN_SETTINGS'
566 - file-id: 'api-onosproject-ssh-key'
567 target: 'id_rsa.pub'
568 variable: 'API_ONOSPROJECT_SSH_KEY'
569
570 #put shell scripts in file then make sure shell check is installed on verify vms
Ray Milkeyd83ef8e2018-11-09 11:57:01 -0800571 - shell: !include-raw-escape: install-bazel.sh
Ray Milkey7c8b3f22018-08-13 15:01:12 -0700572 - shell: !include-raw-escape: onos-bazel-release-build.sh
573 # JJB 1.6.2 does not support parameter expansion on filename?
574 #- shell: !include-raw-escape: {project-name}-verify.sh
575
576- job-template:
577 #default name is global
Ray Milkey0caba7f2018-01-08 12:56:18 -0800578 name: 'onos-docker-build'
579
580 # Job template for Docker jobs
581 #
582
583 <<: *job_boiler_plate
584 # yamllint disable-line rule:key-duplicates
Andrea Campanellad02f4322021-08-26 13:02:26 +0200585 <<: *docker_release_build_boiler_plate
586
587 builders:
588 - lf-provide-maven-settings:
589 settings-file: 'release-build-maven-settings'
590 global-settings-file: 'release-build-maven-settings'
591 - config-file-provider:
592 files:
593 - file-id: 'onos-build-credentials'
594 target: 'onos-build-credentials'
595 variable: 'CREDENTIALS_FILE'
596 - file-id: 'buck-config-local'
597 target: '.buckconfig.local'
598 variable: 'BUCK_CONFIG_FILE'
599 - file-id: 'gpg-key'
600 target: 'jenkins.key'
601 variable: 'GPG_KEY_FILE'
602 - file-id: 'release-build-maven-settings'
603 target: 'settings.xml'
604 variable: 'MAVEN_SETTINGS'
605 - file-id: 'api-onosproject-ssh-key'
606 target: 'id_rsa.pub'
607 variable: 'API_ONOSPROJECT_SSH_KEY'
608
609 #put shell scripts in file then make sure shell check is installed on verify vms
610 - shell: !include-raw-escape: onos-docker-build.sh
611 # JJB 1.6.2 does not support parameter expansion on filename?
612 #- shell: !include-raw-escape: {project-name}-verify.sh
613
614- job-template:
615 #default name is global
616 name: 'onos-{stream}-docker-merge-build'
617
618 # Job template for Docker jobs
619 #
620
621 <<: *job_boiler_plate
622 # yamllint disable-line rule:key-duplicates
623 <<: *docker_merge_build_boiler_plate
Ray Milkey0caba7f2018-01-08 12:56:18 -0800624
625 builders:
626 - lf-provide-maven-settings:
627 settings-file: 'release-build-maven-settings'
628 global-settings-file: 'release-build-maven-settings'
629 - config-file-provider:
630 files:
631 - file-id: 'onos-build-credentials'
632 target: 'onos-build-credentials'
633 variable: 'CREDENTIALS_FILE'
634 - file-id: 'buck-config-local'
635 target: '.buckconfig.local'
636 variable: 'BUCK_CONFIG_FILE'
637 - file-id: 'gpg-key'
638 target: 'jenkins.key'
639 variable: 'GPG_KEY_FILE'
640 - file-id: 'release-build-maven-settings'
641 target: 'settings.xml'
642 variable: 'MAVEN_SETTINGS'
643 - file-id: 'api-onosproject-ssh-key'
644 target: 'id_rsa.pub'
645 variable: 'API_ONOSPROJECT_SSH_KEY'
646
647 #put shell scripts in file then make sure shell check is installed on verify vms
648 - shell: !include-raw-escape: onos-docker-build.sh
649 # JJB 1.6.2 does not support parameter expansion on filename?
650 #- shell: !include-raw-escape: {project-name}-verify.sh
651
652- job-template:
653 #default name is global
Ray Milkeyd9f73662017-11-06 10:29:51 -0800654 name: 'onos-{stream}-maven-verify'
655
656 <<: *job_boiler_plate
657 # yamllint disable-line rule:key-duplicates
Ray Milkeye2175452020-05-06 12:22:58 -0700658 <<: *weekly_boiler_plate_with_slack
Ray Milkeyd9f73662017-11-06 10:29:51 -0800659
660 builders:
661 #put shell scripts in file then make sure shell check is installed on verify vms
662 - shell: !include-raw-escape: onos-maven-verify.sh
663 # JJB 1.6.2 does not support parameter expansion on filename?
664 #- shell: !include-raw-escape: {project-name}-verify.sh
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700665
Daniele Moroce4cc702021-02-26 18:57:30 +0100666- job-template:
667 #default name is global
668 name: 'onos-{stream}-release-build-upload-snapshot'
669
670 # Job template for post-merge snapshot artifacts build and upload
671
672 <<: *job_boiler_plate
673 # yamllint disable-line rule:key-duplicates
674 <<: *post_merge_boiler_plate
675
676 builders:
677 - config-file-provider:
678 files:
679 - file-id: 'gpg-key'
680 target: 'jenkins.key'
681 variable: 'GPG_KEY_FILE'
Daniele Moro344e9a92021-05-19 16:56:52 +0200682 - file-id: 'release-build-maven-settings'
683 target: 'settings.xml'
684 variable: 'MAVEN_SETTINGS'
Daniele Moroce4cc702021-02-26 18:57:30 +0100685
686 #put shell scripts in file then make sure shell check is installed on verify vms
687 - shell: !include-raw-escape: install-bazel.sh
688 - shell: !include-raw-escape: onos-snapshot-build.sh
689 # JJB 1.6.2 does not support parameter expansion on filename?
690 #- shell: !include-raw-escape: {project-name}-verify.sh
691
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700692- project:
693 name: onos
694 project-name: onos
695 project: onos
696
Ray Milkey43a340c2018-02-20 13:49:00 -0800697 build-timeout: '30'
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700698 build-node: 'ubuntu16.04-basebuild-8c-15g'
699
700 stream:
Ray Milkey1bc13772017-10-31 15:57:17 -0700701 - 'onos-1.10'
702 - 'onos-1.11'
Ray Milkey47d4f722017-11-21 09:36:37 -0800703 - 'onos-1.12'
Ray Milkeyfcb0db62018-04-13 16:47:46 -0700704 - 'onos-1.13'
Ray Milkey648eb912018-08-20 14:24:56 -0700705 - 'onos-1.14'
Brian O'Connor9fbe7722017-10-27 12:44:04 -0700706
707 jobs:
708 - '{project-name}-{stream}-verify'
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -0700709
710- project:
Ray Milkey2c9ed832018-08-07 10:45:52 -0700711 name: onos-bazel
712 project-name: onos-bazel
713 project: onos
714
715 build-timeout: '30'
pierventre43acfd42022-07-27 23:28:22 +0200716 build-node: 'ubuntu20.04-basebuild-8c-15g'
Ray Milkey2c9ed832018-08-07 10:45:52 -0700717
718 stream:
719 - 'master'
Ray Milkey648eb912018-08-20 14:24:56 -0700720 - 'onos-1.14'
Ray Milkeyfef4be02018-11-08 15:34:13 -0800721 - 'onos-1.15'
Ray Milkey785e6232018-12-20 08:18:15 -0800722 - 'onos-2.0'
Ray Milkey12398252019-04-22 10:51:26 -0700723 - 'onos-2.1'
Ray Milkey70043e12019-08-23 13:18:20 -0700724 - 'onos-2.2'
Ray Milkey5a0238c2020-01-21 15:47:52 -0800725 - 'onos-2.3'
Ray Milkey805f3342020-06-04 15:41:24 -0700726 - 'onos-2.4'
Ray Milkey72970562020-12-01 12:14:37 -0800727 - 'onos-2.5'
Ray Milkey8cbff5c2021-07-13 15:48:42 -0700728 - 'onos-2.6'
Ray Milkeyda8136d2021-12-17 11:05:51 -0800729 - 'onos-2.7'
Ray Milkey91bf53e2018-11-05 14:22:51 -0800730 - 'upan-connect18'
Ray Milkey219ab182018-11-26 14:19:34 -0800731 - 'upan-connect18-1.14'
Ray Milkey2c9ed832018-08-07 10:45:52 -0700732
733 jobs:
734 - '{project-name}-{stream}-bazel-verify'
735
736- project:
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -0700737 name: onos-yang-tools
738 project-name: onos-yang-tools
739 project: onos-yang-tools
740
Ray Milkey43a340c2018-02-20 13:49:00 -0800741 build-timeout: '30'
Yuta HIGUCHI02e46d32017-10-31 10:17:47 -0700742 build-node: 'ubuntu16.04-basebuild-8c-15g'
743
744 stream:
745 - 'master'
746
747 jobs:
748 - 'onos-yang-tools-{stream}-verify'
Ray Milkey8e462202017-11-02 10:18:37 -0700749
750- project:
Yuta HIGUCHI7e982142018-05-08 15:02:05 -0700751 name: onos-yang-tools-release-build
752 project-name: onos-yang-tools-release-build
753 project: onos-yang-tools
754
755 build-timeout: '240'
756 build-node: 'ubuntu16.04-basebuild-8c-15g'
757
758 stream: 'master'
759
760 jobs:
761 - 'onos-yang-tools-release-build'
762
763
764- project:
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800765 name: onos-app-samples
766 project-name: onos-app-samples
767 project: onos-app-samples
768
Ray Milkey43a340c2018-02-20 13:49:00 -0800769 build-timeout: '30'
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800770 build-node: 'ubuntu16.04-basebuild-8c-15g'
771
772 stream:
773 - 'master'
774
775 jobs:
776 - 'onos-app-samples-{stream}-verify'
777
Yuta HIGUCHI1ac83232017-11-17 16:37:57 -0800778- project:
779 name: onos-loxi
780 project-name: onos-loxi
781 project: onos-loxi
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800782
Ray Milkey43a340c2018-02-20 13:49:00 -0800783 build-timeout: '30'
Yuta HIGUCHI1ac83232017-11-17 16:37:57 -0800784 build-node: 'ubuntu16.04-basebuild-8c-15g'
785
786 stream:
787 - 'master'
788
789 jobs:
790 - 'onos-loxi-{stream}-verify'
Yuta HIGUCHI28821fd2017-11-17 16:11:19 -0800791
792- project:
Ray Milkey8e462202017-11-02 10:18:37 -0700793 name: onos-release
794 project-name: onos-release
795 project: onos
796
Ray Milkey2d55e972018-05-04 13:01:36 -0700797 build-timeout: '240'
Ray Milkey8e462202017-11-02 10:18:37 -0700798 build-node: 'ubuntu16.04-basebuild-8c-15g'
799
800 stream:
801 - 'master'
Ray Milkeyda8136d2021-12-17 11:05:51 -0800802 - 'onos-2.7'
Daniele Moro94bdb572021-07-18 17:42:23 +0200803 - 'onos-2.5'
Ray Milkeye2175452020-05-06 12:22:58 -0700804 - 'onos-2.2'
Ray Milkey7f8a23c2019-04-05 09:43:55 -0700805 - 'onos-1.15'
Ray Milkey7f8a23c2019-04-05 09:43:55 -0700806 - 'onos-1.12'
Ray Milkey8e462202017-11-02 10:18:37 -0700807
808 jobs:
809 - 'onos-{stream}-release-build-verify'
Ray Milkeyd9f73662017-11-06 10:29:51 -0800810
811- project:
812 name: onos-maven-verify
813 project-name: onos-maven-verify
814 project: onos
815
Ray Milkey43a340c2018-02-20 13:49:00 -0800816 build-timeout: '30'
Ray Milkeyd9f73662017-11-06 10:29:51 -0800817 build-node: 'ubuntu16.04-basebuild-8c-15g'
818
819 stream:
Ray Milkeye8f39e02018-04-16 13:34:34 -0700820 - 'onos-1.12'
Ray Milkeyd9f73662017-11-06 10:29:51 -0800821
822 jobs:
823 - 'onos-{stream}-maven-verify'
Ray Milkey20d22522017-11-08 10:55:52 -0800824
825- project:
Ray Milkey2afc4a52017-11-17 11:01:38 -0800826 name: onos-release-build
827 project-name: onos-release-build
828 project: onos
829
Ray Milkey884a2b82018-05-22 08:29:45 -0700830 build-timeout: '240'
Ray Milkey2afc4a52017-11-17 11:01:38 -0800831 build-node: 'ubuntu16.04-basebuild-8c-15g'
832
Ray Milkey4309d9b2017-11-17 13:41:46 -0800833 stream: 'master'
Ray Milkey2afc4a52017-11-17 11:01:38 -0800834
835 jobs:
836 - 'onos-release-build'
Ray Milkey0caba7f2018-01-08 12:56:18 -0800837
838- project:
Ray Milkey7c8b3f22018-08-13 15:01:12 -0700839 name: onos-bazel-release-build
840 project-name: onos-bazel-release-build
841 project: onos
842
843 build-timeout: '240'
pierventre3c8a32f2022-07-29 09:31:42 +0200844 build-node: 'ubuntu20.04-basebuild-8c-15g'
Ray Milkey7c8b3f22018-08-13 15:01:12 -0700845
846 stream: 'master'
847
848 jobs:
849 - 'onos-bazel-release-build'
850
851- project:
Ray Milkey0caba7f2018-01-08 12:56:18 -0800852 name: onos-docker-build
853 project-name: onos-docker-build
854 project: onos
855
Ray Milkey43a340c2018-02-20 13:49:00 -0800856 build-timeout: '90'
pierventre3c8a32f2022-07-29 09:31:42 +0200857 build-node: 'ubuntu20.04-basebuild-8c-15g'
Ray Milkey0caba7f2018-01-08 12:56:18 -0800858
859 stream: 'master'
860
861 jobs:
862 - 'onos-docker-build'
Ray Milkey3aa8af52018-03-09 09:10:08 -0800863
Daniele Moroce4cc702021-02-26 18:57:30 +0100864- project:
Andrea Campanellad02f4322021-08-26 13:02:26 +0200865 name: onos-docker-merge-master-build
866 project-name: onos-docker-merge-master-build
867 project: onos
868
869 build-timeout: '240'
pierventre3c8a32f2022-07-29 09:31:42 +0200870 build-node: 'ubuntu20.04-basebuild-8c-15g'
Andrea Campanellad02f4322021-08-26 13:02:26 +0200871
872 stream:
873 - 'master'
874
875 jobs:
876 - 'onos-{stream}-docker-merge-build':
Andrea Campanellabd4b1fc2021-08-27 17:10:10 +0200877 onos-tag: 'latest'
Andrea Campanella3f1b64a2021-08-27 15:00:15 +0200878 disabled: true
Andrea Campanellad02f4322021-08-26 13:02:26 +0200879
880- project:
881 name: onos-docker-merge-released-build
882 project-name: onos-docker-merge-released-build
883 project: onos
884
885 build-timeout: '240'
pierventre3c8a32f2022-07-29 09:31:42 +0200886 build-node: 'ubuntu20.04-basebuild-8c-15g'
Andrea Campanellad02f4322021-08-26 13:02:26 +0200887
888 stream:
Ray Milkeyda8136d2021-12-17 11:05:51 -0800889 - 'onos-2.7'
Andrea Campanellad02f4322021-08-26 13:02:26 +0200890 - 'onos-2.6'
891 - 'onos-2.5'
892
893 jobs:
894 - 'onos-{stream}-docker-merge-build':
Andrea Campanellabd4b1fc2021-08-27 17:10:10 +0200895 onos-tag: '{stream}-latest'
Andrea Campanella3f1b64a2021-08-27 15:00:15 +0200896 disabled: true
Andrea Campanellad02f4322021-08-26 13:02:26 +0200897- project:
Daniele Moroce4cc702021-02-26 18:57:30 +0100898 name: onos-snapshot
899 project-name: onos-snapshot
900 project: onos
901
902 build-timeout: '240'
pierventre56273892022-07-28 21:45:16 +0200903 build-node: 'ubuntu20.04-basebuild-8c-15g'
Daniele Moroce4cc702021-02-26 18:57:30 +0100904
905 stream:
906 - 'master'
Ray Milkeyda8136d2021-12-17 11:05:51 -0800907 - 'onos-2.7'
Ray Milkey8cbff5c2021-07-13 15:48:42 -0700908 - 'onos-2.6'
Daniele Moro94bdb572021-07-18 17:42:23 +0200909 - 'onos-2.5'
Daniele Moroce4cc702021-02-26 18:57:30 +0100910
911 jobs:
912 - 'onos-{stream}-release-build-upload-snapshot'
913