blob: 447b59bd066a8fbb31e2463dc4040f1c95aa3344 [file] [log] [blame]
- defaults:
name: plugin-template-bazel
targets: 'plugins/{name}:{name}'
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: master
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}
extra-artifacts: ''
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}
- 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}
extra-artifacts: ''
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}
- 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
extra-artifacts: ''
scm:
- git:
remotes:
- origin:
url: https://gerrit.googlesource.com/a/plugins/{name}
credentials-id: gerrit.googlesource.com
branches:
- '*/{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}
- 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
extra-artifacts: ''
scm:
- git:
remotes:
- origin:
url: https://gerrit.googlesource.com/a/modules/{name}
credentials-id: gerrit.googlesource.com
branches:
- '*/{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}
- job-template:
name: 'module-{name}-bazel-{branch}'
class: modules
node: bazel-debian
description: 'Lib module {name} {branch} branch Bazel build'
defaults: plugin-template-bazel
extra-artifacts: ''
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:
- '*/{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}
- 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.3
- stable-3.2
- stable-3.1
- stable-2.16