blob: cf0971d3a60d6dc5e040ade068effc7c53452c87 [file] [log] [blame]
- defaults:
name: sbt-build-defaults
node: sbt
wrappers:
- timeout:
timeout: 30
fail: true
- timestamps
- raw:
xml: <jenkins.plugins.logstash.LogstashBuildWrapper plugin="logstash@1.2.0"/>
properties:
- build-discarder:
days-to-keep: 20
artifact-days-to-keep: 20
- authorization:
anonymous:
- job-discover
- job-read
- job-extended-read
scm:
- git:
remotes:
- origin:
url: https://gerrit.googlesource.com/plugins/{name}
- gerrit:
url: https://gerrit.googlesource.com/gerrit
branches:
- origin/{branch}
submodule:
recursive: true
skip-tag: true
triggers:
- pollscm:
cron: 'H/50 * * * *'
builders:
- shell:
!include-raw: gerrit-sbt-build-branch-plugin.sh
publishers:
- archive:
artifacts: '**/target/**/*{name}*.jar*,**/target/**/*{name}*.json'
wrappers:
- raw:
xml: <jenkins.plugins.logstash.LogstashBuildWrapper plugin="logstash@1.2.0"/>
- job-template:
name: 'plugin-{name}-sbt-{branch}-{gerrit-branch}'
description: "Plugin {name} {branch} branch build with Sbt on top of Gerrit {gerrit-branch}\n"
defaults: sbt-build-defaults
builders:
- shell:
!include-raw: gerrit-sbt-build-branch-plugin.sh
- job-template:
name: 'plugin-{name}-sbt-{branch}'
description: "Plugin {name} build with Sbt on top of Gerrit {branch}\n"
defaults: sbt-build-defaults
builders:
- shell:
!include-raw: gerrit-sbt-build-plugin.sh