blob: 3bb094e2f3ff041adcbc453d5385bd8ed2db17cf [file] [log] [blame]
Luca Milanesioc7034242018-07-12 22:11:41 +01001- defaults:
2 name: sbt-build-defaults
Luca Milanesioa74d2352017-03-22 22:22:45 +00003 node: sbt
4 wrappers:
5 - timeout:
6 timeout: 30
7 fail: true
8 - timestamps
Luca Milanesioa97ffed2020-06-20 02:00:16 +01009 - credentials-binding:
10 - username-password-separated:
11 credential-id: gerrit.googlesource.com
12 username: GS_GIT_USER
13 password: GS_GIT_PASS
Luca Milanesioa74d2352017-03-22 22:22:45 +000014 properties:
Thomas Draebing792be4f2019-09-19 11:57:56 +020015 - build-discarder:
16 days-to-keep: 20
17 artifact-days-to-keep: 20
18 - authorization:
19 anonymous:
20 - job-discover
21 - job-read
22 - job-extended-read
Luca Milanesioa74d2352017-03-22 22:22:45 +000023 scm:
24 - git:
Thomas Draebing792be4f2019-09-19 11:57:56 +020025 remotes:
26 - origin:
Luca Milanesioe326f302020-06-05 10:48:41 +010027 url: https://gerrit.googlesource.com/a/plugins/{name}
Luca Milanesiofb13c1d2020-06-17 10:22:07 +010028 credentials-id: gerrit.googlesource.com
Thomas Draebing792be4f2019-09-19 11:57:56 +020029 - gerrit:
Luca Milanesioe326f302020-06-05 10:48:41 +010030 url: https://gerrit.googlesource.com/a/gerrit
Luca Milanesiofb13c1d2020-06-17 10:22:07 +010031 credentials-id: gerrit.googlesource.com
Thomas Draebing792be4f2019-09-19 11:57:56 +020032 branches:
33 - origin/{branch}
34 submodule:
35 recursive: true
Luca Milanesiofe195462020-06-17 23:35:48 +010036 parent-credentials: true
Thomas Draebing792be4f2019-09-19 11:57:56 +020037 skip-tag: true
Luca Milanesio2bdd4682019-12-28 22:21:55 +000038 do-not-fetch-tags: true
Luca Milanesioa74d2352017-03-22 22:22:45 +000039 triggers:
40 - pollscm:
41 cron: 'H/50 * * * *'
Luca Milanesioa74d2352017-03-22 22:22:45 +000042 builders:
Luca Milanesioa97ffed2020-06-20 02:00:16 +010043 - set-git-credentials
Luca Milanesioa74d2352017-03-22 22:22:45 +000044 - shell:
Thomas Draebing792be4f2019-09-19 11:57:56 +020045 !include-raw: gerrit-sbt-build-branch-plugin.sh
Luca Milanesioa74d2352017-03-22 22:22:45 +000046 publishers:
47 - archive:
Thomas Draebing792be4f2019-09-19 11:57:56 +020048 artifacts: '**/target/**/*{name}*.jar*,**/target/**/*{name}*.json'
Thomas Draebingc6a9cc02023-04-05 09:15:37 +020049 follow-symlinks: true
Luca Milanesioc7034242018-07-12 22:11:41 +010050
51- job-template:
52 name: 'plugin-{name}-sbt-{branch}-{gerrit-branch}'
Thomas Draebing792be4f2019-09-19 11:57:56 +020053 description: 'Plugin {name} {branch} branch build with Sbt on top of Gerrit {gerrit-branch}'
Luca Milanesioc7034242018-07-12 22:11:41 +010054 defaults: sbt-build-defaults
55 builders:
Luca Milanesioa97ffed2020-06-20 02:00:16 +010056 - set-git-credentials
Luca Milanesioc7034242018-07-12 22:11:41 +010057 - shell:
Thomas Draebing792be4f2019-09-19 11:57:56 +020058 !include-raw: gerrit-sbt-build-branch-plugin.sh
Luca Milanesioc7034242018-07-12 22:11:41 +010059
60- job-template:
61 name: 'plugin-{name}-sbt-{branch}'
Thomas Draebing792be4f2019-09-19 11:57:56 +020062 description: 'Plugin {name} build with Sbt on top of Gerrit {branch}'
Luca Milanesioc7034242018-07-12 22:11:41 +010063 defaults: sbt-build-defaults
64 builders:
Luca Milanesioa97ffed2020-06-20 02:00:16 +010065 - set-git-credentials
Luca Milanesioc7034242018-07-12 22:11:41 +010066 - shell:
Thomas Draebing792be4f2019-09-19 11:57:56 +020067 !include-raw: gerrit-sbt-build-plugin.sh