blob: e324fb86bde179c853bbd2d3dcf1f3dd005fe2be [file] [log] [blame]
- job-template:
name: 'plugin-{repo}-mvn-{branch}'
description: 'Plugin {repo} {branch} branch build with Maven'
node: mvn
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/plugins/{repo}
credentials-id: gerrit.googlesource.com
- gerrit:
url: https://gerrit.googlesource.com/a/gerrit
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-mvn-build-plugin.sh
publishers:
- archive:
artifacts: '**/target/{repo}*.jar*,**/target/{repo}*.json'
follow-symlinks: true