blob: 696a982ac444e61b34c567c8e97a98e228c96179 [file] [log] [blame]
- job-template:
name: 'Gerrit-{branch}'
project-type: flow
concurrent: false
needs-workspace: true
logrotate:
numToKeep: 256
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:
- authorization:
anonymous:
- job-discover
- job-read
- job-extended-read
dsl: |
retries = 3
parallel (
{{ retry ( retries ) {{ build( "Gerrit-buck-{branch}" ) }} }},
{{ if("{branch}" == "master") {{ retry ( retries ) {{ build( "Gerrit-bazel-{branch}" ) }} }} }}
)
- job-template:
name: 'Gerrit-buck-{branch}'
description: "{name} {branch} branch build with Buck\n"
wrappers:
- timeout:
timeout: 90
type: absolute
fail: false
- timestamps
- xvfb:
installation-name: Xvfb
auto-display-name: true
parallel-build: false
timeout: 10
screen: 1024x768x16
display-name-offset: 100
additional-options: -fbdir /tmp
debug: true
shutdown-with-build: false
- raw:
xml: <jenkins.plugins.logstash.LogstashBuildWrapper plugin="logstash@1.2.0"/>
logrotate:
numToKeep: 20
artifactNumToKeep: 20
properties:
- 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-buck-build.sh
- shell:
!include-raw: gerrit-buck-test.sh
publishers:
- archive:
artifacts: >
gerrit/buck-out/gen/*.war,gerrit/buck-out/gen/plugins/*/*.jar,gerrit/buck-out/gen/*api/*api.jar,
gerrit/buck-out/gen/gerrit-acceptance-framework/*.jar
excludes: 'gerrit/buck-out/gen/plugins/core*/**/*.jar'
- job-template:
name: 'Gerrit-bazel-{branch}'
description: "{name} {branch} branch build with Bazel\n"
node: bazel
wrappers:
- timeout:
timeout: 90
type: absolute
fail: false
- timestamps
- xvfb:
installation-name: Xvfb
auto-display-name: true
parallel-build: false
timeout: 10
screen: 1024x768x16
display-name-offset: 100
additional-options: -fbdir /tmp
debug: true
shutdown-with-build: false
- raw:
xml: <jenkins.plugins.logstash.LogstashBuildWrapper plugin="logstash@1.2.0"/>
logrotate:
numToKeep: 20
artifactNumToKeep: 20
properties:
- 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
publishers:
- archive:
artifacts: >
gerrit/bazel-bin/*.war,gerrit/bazel-genfiles/plugins/*/*.jar,
gerrit/bazel-genfiles/*api/*api.jar,
gerrit/bazel-genfiles/gerrit-acceptance-framework/*.jar
excludes: 'gerrit/bazel-genfiles/plugins/core*/**/*.jar'
- project:
name: Gerrit-buck
branch:
- master
- stable-2.13
- stable-2.12
- stable-2.11
- stable-2.10
jobs:
- 'Gerrit-buck-{branch}'
- project:
name: Gerrit-bazel
branch:
- master
jobs:
- 'Gerrit-bazel-{branch}'
- project:
name: Gerrit-build-flow
branch:
- master
- stable-2.13
- stable-2.12
- stable-2.11
- stable-2.10
jobs:
- 'Gerrit-{branch}'