| - defaults: |
| name: plugin-template-bazel |
| 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 |
| triggers: |
| - pollscm: |
| cron: 'H/50 * * * *' |
| |
| - job-template: |
| name: 'plugin-{name}-bazel-{branch}' |
| description: 'Plugin {name} {branch} branch build with Bazel' |
| defaults: plugin-template-bazel |
| node: bazel-debian |
| class: plugins |
| project-name: plugins%2F{name} |
| 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 |
| do-not-fetch-tags: true |
| builders: |
| - shell: !include-raw: gerrit-bazel-build-plugin.sh |
| - shell: !include-raw: gerrit-bazel-get-project-info.sh |
| publishers: |
| - archive: |
| artifacts: > |
| bazel-bin/plugins/{name}/{name}.jar, |
| bazel-bin/plugins/{name}/{name}.jar-version, |
| bazel-bin/plugins/{name}/{name}.json |
| |
| - job-template: |
| name: 'plugin-{name}-bazel-{branch}-{gerrit-branch}' |
| class: plugins |
| node: bazel-debian |
| description: 'Plugin {name} {branch} branch Bazel build for Gerrit {gerrit-branch}' |
| defaults: plugin-template-bazel |
| scm: |
| - git: |
| remotes: |
| - origin: |
| url: https://gerrit.googlesource.com/plugins/{name} |
| branches: |
| - '*/{branch}' |
| skip-tag: true |
| builders: |
| - shell: !include-raw: gerrit-bazel-build-plugin-branch.sh |
| - shell: !include-raw: gerrit-bazel-get-project-info.sh |
| publishers: |
| - archive: |
| artifacts: > |
| bazel-bin/plugins/{name}/{name}.jar, |
| bazel-bin/plugins/{name}/{name}.jar-version, |
| bazel-bin/plugins/{name}/{name}.json |
| |
| - job-template: |
| name: 'module-{name}-bazel-{branch}-{gerrit-branch}' |
| class: modules |
| node: bazel-debian |
| description: 'Lib module {name} {branch} branch Bazel build for Gerrit {gerrit-branch}' |
| defaults: plugin-template-bazel |
| scm: |
| - git: |
| remotes: |
| - origin: |
| url: https://gerrit.googlesource.com/modules/{name} |
| branches: |
| - '*/{branch}' |
| skip-tag: true |
| builders: |
| - shell: !include-raw: gerrit-bazel-build-plugin-branch.sh |
| - shell: !include-raw: gerrit-bazel-get-project-info.sh |
| publishers: |
| - archive: |
| artifacts: > |
| bazel-bin/plugins/{name}/{name}.jar, |
| bazel-bin/plugins/{name}/{name}.jar-version, |
| bazel-bin/plugins/{name}/{name}.json |
| |
| - job-template: |
| name: 'module-{name}-bazel-{branch}' |
| class: modules |
| node: bazel-debian |
| description: 'Lib module {name} {branch} branch Bazel build' |
| defaults: plugin-template-bazel |
| scm: |
| - git: |
| remotes: |
| - origin: |
| url: https://gerrit.googlesource.com/modules/{name} |
| - gerrit: |
| url: https://gerrit.googlesource.com/gerrit |
| branches: |
| - '*/{branch}' |
| skip-tag: true |
| do-not-fetch-tags: true |
| builders: |
| - shell: !include-raw: gerrit-bazel-build-plugin.sh |
| - shell: !include-raw: gerrit-bazel-get-project-info.sh |
| publishers: |
| - archive: |
| artifacts: > |
| bazel-bin/plugins/{name}/{name}.jar, |
| bazel-bin/plugins/{name}/{name}.jar-version, |
| bazel-bin/plugins/{name}/{name}.json |
| |
| - view-template: |
| name: 'Plugins-{branch}' |
| view-type: list |
| columns: |
| - status |
| - weather |
| - job |
| - last-success |
| - last-failure |
| - last-duration |
| - build-button |
| regex: 'plugin-.+-{branch}' |
| |
| - project: |
| name: 'plugin-views' |
| views: |
| - 'Plugins-{branch}' |
| branch: |
| - master |
| - stable-3.1 |
| - stable-3.0 |
| - stable-2.16 |