blob: 2a7c5f443e421b55a7efc099307030a62ad4dfef [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-debian
properties:
- inject:
properties-content: >
BAZEL_OPTS=--java_toolchain=//tools:error_prone_warnings_toolchain
- job-template:
name: 'Gerrit-bazel-java11-stable-{ver}'
branch: stable-3.2
description: '{name} stable-{ver} branch build with Bazel and Java 11'
defaults: gerrit-bazel-defaults
properties:
- build-discarder:
days-to-keep: 20
artifact-days-to-keep: 20
- authorization:
anonymous:
- job-discover
- job-read
- job-extended-read
- 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
--java_toolchain=@bazel_tools//tools/jdk:toolchain_java11
- job-template:
name: 'Gerrit-bazel-java11-{branch}'
description: '{name} {branch} branch build with Bazel'
defaults: gerrit-bazel-defaults
node: bazel-debian
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
branch:
- stable-3.2
- stable-3.1
- stable-2.16
jobs:
- 'Gerrit-bazel-{branch}'
- project:
name: Gerrit-bazel-java11
branch:
- master
- stable-3.3
jobs:
- 'Gerrit-bazel-java11-{branch}'
- project:
name: Gerrit-bazel-java11-stable-3.2
ver:
- 3.2
jobs:
- 'Gerrit-bazel-java11-stable-{ver}'
- view:
name: Gerrit
view-type: list
columns:
- status
- weather
- job
- last-success
- last-failure
- last-duration
- build-button
regex: 'Gerrit-.*'