blob: 3b5585acaac901408765d19a49fe0d447a35de27 [file] [log] [blame]
- defaults:
name: plugin-template-bazel
targets: 'plugins/{name}:{name}'
node: bazel-debian
wrappers:
- timeout:
timeout: 60
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
triggers:
- pollscm:
cron: 'H/50 * * * *'
- defaults:
name: verifier-template-bazel
node: server
days-to-keep: 90
number-to-keep: 500
prune-dead-branches: true
periodic-folder-trigger: 10m
- job-template:
name: 'plugin-{name}-verifier'
description: 'Plugin {name} change verification build'
defaults: verifier-template-bazel
project-type: multibranch
scm:
- gerrit:
url: https://gerrit-review.googlesource.com/a/plugins/{name}
credentials-id: gerrit.googlesource.com
refspecs:
- '+refs/heads/*:refs/remotes/origin/*'
filter-checks:
query-operator: 'SCHEME'
query-string: 'gerritforge'
property-strategies:
all-branches:
- suppress-scm-triggering: false
- pipeline-branch-durability-override: max-survivability
- job-template:
name: 'module-{name}-verifier'
description: 'Module {name} change verification build'
defaults: verifier-template-bazel
project-type: multibranch
scm:
- gerrit:
url: https://gerrit-review.googlesource.com/a/modules/{name}
credentials-id: gerrit.googlesource.com
refspecs:
- '+refs/heads/*:refs/remotes/origin/*'
filter-checks:
query-operator: 'SCHEME'
query-string: 'gerritforge'
property-strategies:
all-branches:
- suppress-scm-triggering: false
- pipeline-branch-durability-override: max-survivability
- job-template:
name: 'plugin-{name}-bazel-{branch}'
description: 'Plugin {name} {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-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
- job-template:
name: 'ui-plugin-{name}-bazel-{branch}'
description: 'UI Plugin {name} {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-plugin.sh
- shell: !include-raw: gerrit-bazel-get-project-info.sh
publishers:
- archive:
artifacts: >
bazel-bin/plugins/{name}/{name}.js,
bazel-bin/plugins/{name}/{name}.html,
bazel-bin/plugins/{name}/{name}.json,
{extra-artifacts}
follow-symlinks: true
- job-template:
name: 'ui-plugin-{name}-bazel-{branch}-{gerrit-branch}'
description: 'UI Plugin {name} {branch} branch build with Bazel for Gerrit {gerrit-branch}'
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
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-plugin-branch.sh
- shell: !include-raw: gerrit-bazel-get-project-info.sh
publishers:
- archive:
artifacts: >
bazel-bin/plugins/{name}/{name}.js,
bazel-bin/plugins/{name}/{name}.html,
bazel-bin/plugins/{name}/{name}.json,
{extra-artifacts}
follow-symlinks: true
- job-template:
name: 'plugin-{name}-bazel-{branch}-{gerrit-branch}'
class: plugins
node: bazel-debian
description: 'Plugin {name} {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
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-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
- job-template:
name: 'module-{name}-bazel-{branch}-{gerrit-branch}'
class: modules
node: bazel-debian
description: 'Lib module {name} {branch} branch Bazel build for Gerrit {gerrit-branch}'
defaults: plugin-template-bazel
scm:
- git:
remotes:
- origin:
url: https://gerrit.googlesource.com/a/modules/{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-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
- job-template:
name: 'module-{name}-bazel-{branch}'
class: modules
node: bazel-debian
description: 'Lib module {name} {branch} branch Bazel build'
defaults: plugin-template-bazel
scm:
- git:
remotes:
- origin:
url: https://gerrit.googlesource.com/a/modules/{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
do-not-fetch-tags: true
builders:
- set-git-credentials
- shell: !include-raw: gerrit-bazel-build-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
- view-template:
name: 'Plugins-{branch}'
view-type: list
columns:
- status
- weather
- job
- last-success
- last-failure
- last-duration
- build-button
regex: '(ui-plugin|plugin|module)-.+-{branch}'
- project:
name: 'plugin-views'
views:
- 'Plugins-{branch}'
branch:
- master
- stable-3.10
- stable-3.9
- stable-3.8