blob: 5f2fdbcf420f58b6c17d4cb69f4f03ba22c30efd [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
- inject:
properties-content: >
BAZEL_OPTS=--java_toolchain=//tools:error_prone_warnings_toolchain
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'