Fix account plugin packaging on stable-3.12 The account plugin requires the bundling of some of its dependencies via a custom script, therefore needs a custom script, which isn't part of the default plugin build template. Change-Id: I945e560f9cd05887dc32e977134bbbf86fc4b2eb
diff --git a/jenkins/gerrit-bazel-plugin-account.yaml b/jenkins/gerrit-bazel-plugin-account.yaml index e31e102..1f6c54f 100644 --- a/jenkins/gerrit-bazel-plugin-account.yaml +++ b/jenkins/gerrit-bazel-plugin-account.yaml
@@ -37,10 +37,46 @@ bazel-bin/plugins/account/account.jar*,bazel-bin/plugins/account/account.json follow-symlinks: true +- job-template: + name: 'plugin-account-bazel-{branch}' + description: 'Plugin account {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/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 + do-not-fetch-tags: true + builders: + - set-git-credentials + - shell: !include-raw: gerrit-bazel-build-account-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, + {extra-artifacts} + follow-symlinks: true + - project: name: account jobs: - - 'plugin-{name}-bazel-{branch}': + - 'plugin-account-bazel-{branch}': branch: - stable-3.12