blob: e731831924dd06307a951ee62f51f7d37229b281 [file] [log] [blame]
- defaults:
name: gerrit-bazel-defaults
node: bazel-debian
properties:
- build-discarder:
days-to-keep: 20
artifact-days-to-keep: 20
- authorization:
anonymous:
- job-discover
- job-read
- job-extended-read
scm:
- git:
url: https://gerrit.googlesource.com/a/gerrit
credentials-id: gerrit.googlesource.com
branches:
- origin/{branch}
submodule:
recursive: true
parent-credentials: true
skip-tag: true
basedir: gerrit
triggers:
- pollscm:
cron: 'H/50 * * * *'
wrappers:
- timeout:
timeout: 120
type: absolute
fail: false
- timestamps
- 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.sh
- shell: !include-raw-escape: set-docker-host.sh
- shell: !include-raw: gerrit-bazel-test.sh
- shell: !include-raw-escape: gerrit-bazel-cat-test-log.sh
- shell: !include-raw: gerrit-deploy-api.sh
publishers:
- archive:
artifacts: >
gerrit/bazel-bin/*.war,gerrit/bazel-bin/plugins/*/*.jar,
gerrit/bazel-bin/*api/*api.jar,
gerrit/bazel-bin/gerrit-acceptance-framework/*.jar
excludes: 'gerrit/bazel-bin/plugins/core*/**/*.jar'
- job-template:
name: 'Gerrit-bazel-{branch}'
description: '{name} {branch} branch build with Bazel'
defaults: gerrit-bazel-defaults
node: 'bazel-{browser}'
properties:
- inject:
properties-content: >
BAZEL_OPTS=--host_javabase=@bazel_tools//tools/jdk:remote_jdk11
--javabase=@bazel_tools//tools/jdk:remote_jdk11
--host_java_toolchain=@bazel_tools//tools/jdk:toolchain_java11
- project:
name: Gerrit-bazel-chrome-69
branch:
- stable-3.4
browser: chrome-69
jobs:
- 'Gerrit-bazel-{branch}'
- project:
name: Gerrit-bazel-chrome-latest
branch:
- master
- stable-3.6
- stable-3.5
browser: chrome-latest
jobs:
- 'Gerrit-bazel-{branch}'
- view:
name: Gerrit
view-type: list
columns:
- status
- weather
- job
- last-success
- last-failure
- last-duration
- build-button
regex: 'Gerrit-.*'