blob: e16ca56e09e9d3f477aadf0a1ba8ccb19eb260c2 [file] [log] [blame]
- defaults:
name: 'plugin-gitblit'
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/gitblit
credentials-id: gerrit.googlesource.com
- gerrit:
url: https://gerrit.googlesource.com/a/gerrit
credentials-id: gerrit.googlesource.com
- gitblit:
url: https://gerrit.googlesource.com/a/gitblit
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-gitblit-bazel-{branch}'
description: 'GitBlit plugin Bazel build for Gerrit {branch}'
defaults: plugin-gitblit
project-name: plugins%2Fgitblit
class: plugins
node: bazel-debian
scm:
- git:
remotes:
- origin:
url: https://gerrit.googlesource.com/a/plugins/gitblit
credentials-id: gerrit.googlesource.com
- gitblit:
url: https://gerrit.googlesource.com/a/gitblit
credentials-id: gerrit.googlesource.com
- gerrit:
url: https://gerrit.googlesource.com/a/gerrit
credentials-id: gerrit.googlesource.com
branches:
- origin/{branch}
submodule:
recursive: true
skip-tag: true
builders:
- set-git-credentials
- shell: !include-raw: gitblit-ant-build.sh
- shell: !include-raw: gerrit-bazel-build-plugin.sh
- shell: !include-raw: gerrit-bazel-get-project-info.sh
publishers:
- archive:
artifacts: >
bazel-bin/plugins/gitblit/*gitblit*.jar*,
bazel-bin/plugins/gitblit/*gitblit*.json
follow-symlinks: true
- project:
name: gitblit
jobs:
- 'plugin-gitblit-bazel-{branch}':
targets: plugins/gitblit
branch:
- master