blob: 8eda8eb00dc1a73bcb80ae53744dcf2c6c251f1f [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
reference-repo: /home/jenkins/gerrit-reference.git
credentials-id: gerrit.googlesource.com
branches:
- origin/{branch}
submodule:
recursive: true
parent-credentials: true
reference-repo: /home/jenkins/gerrit-reference.git
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
- text:
credential-id: remote_bb_key
variable: BB_API_KEY
builders:
- set-git-credentials
- shell: !include-raw: gerrit-bazel-test.sh
- shell: !include-raw-escape: gerrit-bazel-cat-test-log.sh
- shell: !include-raw: gerrit-bazel-build.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,
gerrit/bazel-bin/**/*non_stamped*
follow-symlinks: true
- job-template:
name: 'Gerrit-bazel-{branch}'
description: '{name} {branch} branch build with Bazel'
defaults: gerrit-bazel-defaults
node: 'bazel-debian-{browser}'
- job-template:
name: 'Gerrit-bazel-{branch}-java21'
description: '{name} {branch} branch build with Bazel on Java 21'
defaults: gerrit-bazel-defaults
node: 'bazel-debian-{browser}'
properties:
- inject:
properties-content: >
BAZEL_OPTS="--config=java21"
- project:
name: Gerrit-bazel-chrome-latest
browser: chrome-latest
jobs:
- 'Gerrit-bazel-{branch}':
branch:
- stable-3.11
- stable-3.10
- stable-3.9
- stable-3.8
- 'Gerrit-bazel-{branch}-java21':
branch:
- master
- stable-3.11
- view:
name: Gerrit
view-type: list
columns:
- status
- weather
- job
- last-success
- last-failure
- last-duration
- build-button
regex: 'Gerrit-.*'