blob: ade2ef42f54401791fc526cc1a43a7e282782dc3 [file] [log] [blame]
- defaults:
name: plugin-scripting-template
targets: 'plugins/{name}:{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
scm:
- git:
remotes:
- origin:
url: https://gerrit.googlesource.com/a/plugins/scripting/{name}
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 * * * *'
- job-template:
name: 'plugin-scripting-{name}-bazel-{branch}'
description: 'Plugin scripting/{name}/{branch} Bazel build for Gerrit'
defaults: plugin-scripting-template
scm:
- git:
remotes:
- origin:
url: https://gerrit.googlesource.com/a/plugins/scripting/{name}
credentials-id: gerrit.googlesource.com
- gerrit:
url: https://gerrit.googlesource.com/a/gerrit
credentials-id: gerrit.googlesource.com
branches:
- origin/{branch}
skip-tag: true
builders:
- set-git-credentials
- shell: !include-raw: gerrit-bazel-build-plugin.sh
- shell: !include-raw: gerrit-bazel-get-scripting-plugin-info.sh
publishers:
- archive:
artifacts: >
bazel-bin/plugins/{name}/{name}.jar*,bazel-bin/plugins/{name}/{name}.json
- job-template:
name: 'plugin-scripting-{name}-bazel-{branch}-{gerrit-branch}'
description: 'Plugin scripting/{name}/{branch} Bazel build for Gerrit/{gerrit-branch}'
defaults: plugin-scripting-template
scm:
- git:
remotes:
- origin:
url: https://gerrit.googlesource.com/a/plugins/scripting/{name}
credentials-id: gerrit.googlesource.com
branches:
- origin/{branch}
skip-tag: true
builders:
- set-git-credentials
- shell: !include-raw: gerrit-bazel-build-plugin-branch.sh
- shell: !include-raw: gerrit-bazel-get-scripting-plugin-info.sh
publishers:
- archive:
artifacts: >
bazel-bin/plugins/{name}/{name}.jar*,bazel-bin/plugins/{name}/{name}.json