blob: 3bbeb849eda341b34669cd628af063eef8f7d364 [file] [log] [blame]
- job-template:
name: 'app-{name}-sbt-{branch}'
description: 'App {name} {branch} branch build with Sbt'
node: sbt
targets: compile test assembly
wrappers:
- timeout:
timeout: 30
fail: true
- timestamps
- credentials-binding:
- username-password-separated:
credential-id: gerrit.googlesource.com
username: GS_GIT_USER
password: GS_GIT_PASS
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/a/apps/{name}
credentials-id: gerrit.googlesource.com
branches:
- origin/{branch}
submodule:
recursive: true
parent-credentials: true
skip-tag: true
triggers:
- pollscm:
cron: 'H/50 * * * *'
builders:
- set-git-credentials
- shell: !include-raw: gerrit-sbt-build-app.sh
publishers:
- archive:
artifacts: '**/target/**/*{name}*.jar*,**/target/**/*{name}*.json'
follow-symlinks: true
- project:
name: analytics-etl
jobs:
- 'app-{name}-sbt-{branch}':
branch:
- master