Luca Milanesio | c703424 | 2018-07-12 22:11:41 +0100 | [diff] [blame] | 1 | - defaults: |
| 2 | name: sbt-build-defaults |
Luca Milanesio | a74d235 | 2017-03-22 22:22:45 +0000 | [diff] [blame] | 3 | node: sbt |
| 4 | wrappers: |
| 5 | - timeout: |
| 6 | timeout: 30 |
| 7 | fail: true |
| 8 | - timestamps |
Luca Milanesio | a97ffed | 2020-06-20 02:00:16 +0100 | [diff] [blame] | 9 | - credentials-binding: |
| 10 | - username-password-separated: |
| 11 | credential-id: gerrit.googlesource.com |
| 12 | username: GS_GIT_USER |
| 13 | password: GS_GIT_PASS |
Luca Milanesio | a74d235 | 2017-03-22 22:22:45 +0000 | [diff] [blame] | 14 | properties: |
Thomas Draebing | 792be4f | 2019-09-19 11:57:56 +0200 | [diff] [blame] | 15 | - 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 Milanesio | a74d235 | 2017-03-22 22:22:45 +0000 | [diff] [blame] | 23 | scm: |
| 24 | - git: |
Thomas Draebing | 792be4f | 2019-09-19 11:57:56 +0200 | [diff] [blame] | 25 | remotes: |
| 26 | - origin: |
Luca Milanesio | e326f30 | 2020-06-05 10:48:41 +0100 | [diff] [blame] | 27 | url: https://gerrit.googlesource.com/a/plugins/{name} |
Luca Milanesio | fb13c1d | 2020-06-17 10:22:07 +0100 | [diff] [blame] | 28 | credentials-id: gerrit.googlesource.com |
Thomas Draebing | 792be4f | 2019-09-19 11:57:56 +0200 | [diff] [blame] | 29 | - gerrit: |
Luca Milanesio | e326f30 | 2020-06-05 10:48:41 +0100 | [diff] [blame] | 30 | url: https://gerrit.googlesource.com/a/gerrit |
Luca Milanesio | fb13c1d | 2020-06-17 10:22:07 +0100 | [diff] [blame] | 31 | credentials-id: gerrit.googlesource.com |
Thomas Draebing | 792be4f | 2019-09-19 11:57:56 +0200 | [diff] [blame] | 32 | branches: |
| 33 | - origin/{branch} |
| 34 | submodule: |
| 35 | recursive: true |
Luca Milanesio | fe19546 | 2020-06-17 23:35:48 +0100 | [diff] [blame] | 36 | parent-credentials: true |
Thomas Draebing | 792be4f | 2019-09-19 11:57:56 +0200 | [diff] [blame] | 37 | skip-tag: true |
Luca Milanesio | 2bdd468 | 2019-12-28 22:21:55 +0000 | [diff] [blame] | 38 | do-not-fetch-tags: true |
Luca Milanesio | a74d235 | 2017-03-22 22:22:45 +0000 | [diff] [blame] | 39 | triggers: |
| 40 | - pollscm: |
| 41 | cron: 'H/50 * * * *' |
Luca Milanesio | a74d235 | 2017-03-22 22:22:45 +0000 | [diff] [blame] | 42 | builders: |
Luca Milanesio | a97ffed | 2020-06-20 02:00:16 +0100 | [diff] [blame] | 43 | - set-git-credentials |
Luca Milanesio | a74d235 | 2017-03-22 22:22:45 +0000 | [diff] [blame] | 44 | - shell: |
Thomas Draebing | 792be4f | 2019-09-19 11:57:56 +0200 | [diff] [blame] | 45 | !include-raw: gerrit-sbt-build-branch-plugin.sh |
Luca Milanesio | a74d235 | 2017-03-22 22:22:45 +0000 | [diff] [blame] | 46 | publishers: |
| 47 | - archive: |
Thomas Draebing | 792be4f | 2019-09-19 11:57:56 +0200 | [diff] [blame] | 48 | artifacts: '**/target/**/*{name}*.jar*,**/target/**/*{name}*.json' |
Thomas Draebing | c6a9cc0 | 2023-04-05 09:15:37 +0200 | [diff] [blame] | 49 | follow-symlinks: true |
Luca Milanesio | c703424 | 2018-07-12 22:11:41 +0100 | [diff] [blame] | 50 | |
| 51 | - job-template: |
| 52 | name: 'plugin-{name}-sbt-{branch}-{gerrit-branch}' |
Thomas Draebing | 792be4f | 2019-09-19 11:57:56 +0200 | [diff] [blame] | 53 | description: 'Plugin {name} {branch} branch build with Sbt on top of Gerrit {gerrit-branch}' |
Luca Milanesio | c703424 | 2018-07-12 22:11:41 +0100 | [diff] [blame] | 54 | defaults: sbt-build-defaults |
| 55 | builders: |
Luca Milanesio | a97ffed | 2020-06-20 02:00:16 +0100 | [diff] [blame] | 56 | - set-git-credentials |
Luca Milanesio | c703424 | 2018-07-12 22:11:41 +0100 | [diff] [blame] | 57 | - shell: |
Thomas Draebing | 792be4f | 2019-09-19 11:57:56 +0200 | [diff] [blame] | 58 | !include-raw: gerrit-sbt-build-branch-plugin.sh |
Luca Milanesio | c703424 | 2018-07-12 22:11:41 +0100 | [diff] [blame] | 59 | |
| 60 | - job-template: |
| 61 | name: 'plugin-{name}-sbt-{branch}' |
Thomas Draebing | 792be4f | 2019-09-19 11:57:56 +0200 | [diff] [blame] | 62 | description: 'Plugin {name} build with Sbt on top of Gerrit {branch}' |
Luca Milanesio | c703424 | 2018-07-12 22:11:41 +0100 | [diff] [blame] | 63 | defaults: sbt-build-defaults |
| 64 | builders: |
Luca Milanesio | a97ffed | 2020-06-20 02:00:16 +0100 | [diff] [blame] | 65 | - set-git-credentials |
Luca Milanesio | c703424 | 2018-07-12 22:11:41 +0100 | [diff] [blame] | 66 | - shell: |
Thomas Draebing | 792be4f | 2019-09-19 11:57:56 +0200 | [diff] [blame] | 67 | !include-raw: gerrit-sbt-build-plugin.sh |