blob: cd38e3b2d0ce5b0e71a06f6e6aa38d737111f2dd [file] [log] [blame]
- defaults:
name: pluginmanual-template
targets: 'plugins/{name}:{name}'
parameters:
- string:
name: REFS_CHANGE
description: "Refs change as provided by Download/Checkout eg: refs/changes/21/75721/1"
properties:
- inject:
properties-file: env.properties
script-content: |
echo "REFS_CHANGE=$REFS_CHANGE" > env.properties
override-build-parameters: true
wrappers:
- timeout:
timeout: 30
fail: true
- timestamps
- 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:
remotes:
- origin:
url: https://gerrit.googlesource.com/plugins/{name}
- gerrit:
url: https://gerrit.googlesource.com/gerrit
branches:
- origin/{branch}
submodule:
recursive: true
skip-tag: true
- job-template:
name: 'pluginmanual-{name}-{branch}'
description: "Plugin {name} {branch} manual branch build with BUCK\n"
defaults: pluginmanual-template
builders:
- shell:
!include-raw: gerrit-buck-build-plugin-manual.sh
publishers:
- archive:
artifacts: >
buck-out/gen/plugins/{name}/*{name}*.jar*,
- job-template:
name: 'pluginmanual-{name}-bazel-{branch}'
description: "Plugin {name} {branch} manual branch build with Bazel\n"
defaults: pluginmanual-template
builders:
- shell:
!include-raw: gerrit-bazel-build-plugin-manual.sh
publishers:
- archive:
artifacts: >
bazel-genfiles/plugins/{name}/*{name}*.jar*