blob: 4e128bca3e4b585291ae4af2279a9fcb99df0bbf [file]
- job-template:
name: 'plugin-account-gh-bazel-{branch}'
description: >
Plugin account {branch} branch build with Bazel owned by {organization} and hosted on GitHub
defaults: plugin-template-bazel
node: bazel-debian
class: plugins
project-name: plugins%2Faccount
scm:
- git:
remotes:
- origin:
url: https://review.gerrithub.io/a/{organization}/{repo}
credentials-id: eclipse.gerrithub.io
- 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
wrappers:
- credentials-binding:
- username-password-separated:
credential-id: gerrit.googlesource.com
username: GS_GIT_USER
password: GS_GIT_PASS
builders:
- set-git-credentials
- shell: !include-raw: gerrit-bazel-build-account-plugin.sh
- shell: |
curl -L https://review.gerrithub.io/projects/GerritForge%2Faccount/config \
| tail -n +2 > bazel-bin/plugins/account/account.json
publishers:
- archive:
artifacts: >
bazel-bin/plugins/account/account.jar*,bazel-bin/plugins/account/account.json
follow-symlinks: true
- job-template:
name: 'plugin-account-bazel-{branch}'
description: 'Plugin account {branch} branch build with Bazel'
defaults: plugin-template-bazel
node: bazel-debian
class: plugins
project-name: plugins%2F{name}
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-account-plugin.sh
- shell: !include-raw: gerrit-bazel-get-project-info.sh
publishers:
- archive:
artifacts: >
bazel-bin/plugins/{name}/{name}.jar,
bazel-bin/plugins/{name}/{name}.jar-version,
bazel-bin/plugins/{name}/{name}.json,
{extra-artifacts}
follow-symlinks: true
- project:
name: account
jobs:
- 'plugin-account-bazel-{branch}':
branch:
- stable-3.12
- project:
name: account-gh
repo: account
organization: GerritForge
jobs:
- 'plugin-account-gh-bazel-{branch}':
branch:
- master
- stable-3.14
- stable-3.13