blob: c5507311ed52a17ad37fdb5382eb1ab4164d0638 [file] [log] [blame]
- defaults:
name: plugin-its-template
targets: 'plugins/its-{name}:its-{name}'
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:
- plugin:
url: https://gerrit.googlesource.com/a/plugins/its-{name}
credentials-id: gerrit.googlesource.com
- origin:
url: https://gerrit.googlesource.com/a/gerrit
credentials-id: gerrit.googlesource.com
- base:
url: https://gerrit.googlesource.com/a/plugins/its-base
credentials-id: gerrit.googlesource.com
branches:
- plugin/{branch}
submodule:
recursive: false
parent-credentials: true
skip-tag: true
do-not-fetch-tags: true
triggers:
- pollscm:
cron: 'H/50 * * * *'
- job-template:
name: 'plugin-its-{name}-bazel-{branch}'
description: 'Plugin its-{name} {branch} branch build with Bazel'
defaults: plugin-its-template
node: bazel-debian
builders:
- set-git-credentials
- shell: !include-raw: gerrit-bazel-build-its-plugin.sh
- shell: !include-raw: gerrit-bazel-get-its-plugin-info.sh
publishers:
- archive:
artifacts: >
bazel-bin/plugins/its-{name}/its-{name}.jar*,
bazel-bin/plugins/its-{name}/its-{name}.json
- job-template:
name: 'plugin-its-{name}-bazel-{branch}-{gerrit-branch}'
description: 'Plugin its-{name} {branch} branch Bazel build for Gerrit {gerrit-branch}'
defaults: plugin-its-template
node: bazel-debian
scm:
- git:
remotes:
- plugin:
url: https://gerrit.googlesource.com/a/plugins/its-{name}
credentials-id: gerrit.googlesource.com
- base:
url: https://gerrit.googlesource.com/a/plugins/its-base
credentials-id: gerrit.googlesource.com
branches:
- plugin/{branch}
skip-tag: true
do-not-fetch-tags: true
builders:
- set-git-credentials
- shell: !include-raw: gerrit-bazel-build-its-plugin-branch.sh
- shell: !include-raw: gerrit-bazel-get-its-plugin-info.sh
publishers:
- archive:
artifacts: >
bazel-bin/plugins/its-{name}/its-{name}.jar*,
bazel-bin/plugins/its-{name}/its-{name}.json