blob: caaf123366acd9ec7c655ecf24d4c7c2f480afa6 [file] [log] [blame]
- job-template:
name: 'Gerrit-{branch}'
project-type: flow
concurrent: false
needs-workspace: true
node: master
scm:
- git:
url: https://gerrit.googlesource.com/gerrit
branches:
- origin/{branch}
submodule:
recursive: true
skip-tag: true
basedir: gerrit
triggers:
- pollscm:
cron: 'H/10 * * * *'
properties:
properties:
- build-discarder:
days-to-keep: 256
- authorization:
anonymous:
- job-discover
- job-read
- job-extended-read
dsl: |
retries = 3
type = 'bazel'
parallel (
{{ retry ( retries ) {{ build( "Gerrit-$type-{branch}" ) }} }}
)
- job-template:
name: 'Gerrit-bazel-{branch}'
description: "{name} {branch} branch build with Bazel\n"
node: bazel-debian
wrappers:
- timeout:
timeout: 90
type: absolute
fail: false
- timestamps
- xvfb:
installation-name: Xvfb
display-name: 1
parallel-build: false
timeout: 30
screen: 1024x768x16
additional-options: -fbdir /tmp
debug: true
shutdown-with-build: false
- raw:
xml: <jenkins.plugins.logstash.LogstashBuildWrapper plugin="logstash@1.2.0"/>
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/gerrit
branches:
- origin/{branch}
submodule:
recursive: true
skip-tag: true
basedir: gerrit
builders:
- shell:
!include-raw: gerrit-bazel-build.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'
- project:
name: Gerrit-bazel
branch:
- master
- stable-3.0
- stable-2.16
- stable-2.15
- stable-2.14
jobs:
- 'Gerrit-bazel-{branch}'
- project:
name: Gerrit-build-flow
branch:
- master
- stable-3.0
- stable-2.16
- stable-2.15
- stable-2.14
jobs:
- 'Gerrit-{branch}'
- view:
name: Gerrit
view-type: list
columns:
- status
- weather
- job
- last-success
- last-failure
- last-duration
- build-button
regex: 'Gerrit-.*'