blob: 2af73a75be685ac141e5457695633473b7bc0f7a [file] [log] [blame]
- defaults:
name: plugin-gh-template
targets: 'plugins/{name}:{name}'
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://github.com/{organization}/{repo}
- gerrit:
url: https://gerrit.googlesource.com/gerrit
branches:
- origin/{branch}
submodule:
disable: true
skip-tag: true
triggers:
- pollscm:
cron: 'H/50 * * * *'
- job-template:
name: 'plugin-{name}-gh-{branch}'
description: "Plugin {name} {branch} branch build with BUCK owned by {organization} and hosted on GitHub\n"
defaults: plugin-gh-template
builders:
- shell:
!include-raw: gerrit-buck-build-plugin.sh
publishers:
- archive:
artifacts: >
buck-out/gen/plugins/{name}/{name}.jar*
- job-template:
name: 'plugin-{name}-gh-bazel-{branch}'
description: "Plugin {name} {branch} branch build with Bazel owned by {organization} and hosted on GitHub\n"
defaults: plugin-gh-template
builders:
- shell:
!include-raw: gerrit-bazel-build-plugin.sh
- shell:
!include-raw: gerrit-bazel-gh-get-plugin-info.sh
publishers:
- archive:
artifacts: >
bazel-genfiles/plugins/{name}/{name}.jar*,bazel-genfiles/plugins/{name}/{name}.json