blob: 19ecf47ff40b93f63999f8af8fe2cfecdd28a082 [file] [log] [blame]
- job-template:
name: 'plugin-owners-bazel-{branch}'
description: 'Plugin owners {branch} branch build with Bazel'
defaults: plugin-template-bazel
scm:
- git:
remotes:
- origin:
url: https://gerrit.googlesource.com/a/plugins/{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
do-not-fetch-tags: true
builders:
- set-git-credentials
- shell: !include-raw: gerrit-bazel-build-owners-plugin.sh
publishers:
- archive:
artifacts: >
bazel-bin/plugins/owners/owners.jar*,bazel-bin/plugins/owners/owners-autoassign.jar*
- job-template:
name: 'plugin-owners-bazel-{branch}-{gerrit-branch}'
class: plugins
description: 'Plugin owners {branch} branch Bazel build for Gerrit {gerrit-branch}'
defaults: plugin-template-bazel
scm:
- git:
remotes:
- origin:
url: https://gerrit.googlesource.com/a/plugins/{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
skip-tag: true
do-not-fetch-tags: true
project-name: plugins%2Fowners
builders:
- set-git-credentials
- shell: !include-raw: gerrit-bazel-build-owners-plugin-branch.sh
- shell: !include-raw: gerrit-bazel-get-project-info.sh
publishers:
- archive:
artifacts: >
bazel-bin/plugins/owners/owners.jar*,bazel-bin/plugins/owners/owners-autoassign.jar*
- project:
name: owners
jobs:
- 'plugin-owners-bazel-{branch}-{gerrit-branch}':
targets: 'plugins/owners plugins/owners-autoassign'
branch:
- master
gerrit-branch:
- master
- stable-3.2
- 'plugin-owners-bazel-{branch}':
targets: 'plugins/owners plugins/owners-autoassign'
branch:
- stable-3.1
- stable-2.16