| - 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' |
| wrappers: |
| - timeout: |
| timeout: 30 |
| fail: true |
| - timestamps |
| - credentials-binding: |
| - username-password-separated: |
| credential-id: gerrit.googlesource.com |
| username: GS_GIT_USER |
| password: GS_GIT_PASS |
| properties: |
| - build-discarder: |
| days-to-keep: 20 |
| artifact-days-to-keep: 20 |
| - authorization: |
| anonymous: |
| - job-discover |
| - job-read |
| - job-extended-read |
| - inject: |
| properties-file: env.properties |
| script-content: | |
| echo "REFS_CHANGE=$REFS_CHANGE" > env.properties |
| override-build-parameters: true |
| scm: |
| - git: |
| remotes: |
| - origin: |
| url: https://gerrit.googlesource.com/a/plugins/{name} |
| credentials-id: gerrit.googlesource.com |
| - gerrit: |
| url: https://gerrit.googlesource.com/a/gerrit |
| credentials-id: gerrit.googlesource.com |
| branches: |
| - origin/{branch} |
| submodule: |
| recursive: true |
| parent-credentials: true |
| skip-tag: true |
| |
| - job-template: |
| name: 'pluginmanual-{name}-bazel-{branch}' |
| description: 'Plugin {name} {branch} manual branch build with Bazel' |
| defaults: pluginmanual-template |
| builders: |
| - set-git-credentials |
| - shell: !include-raw: gerrit-bazel-build-plugin-manual.sh |
| publishers: |
| - archive: |
| artifacts: > |
| bazel-bin/plugins/{name}/*{name}*.jar* |