Update to support Plugins built with Bazel
Extend existing Buck templates to include a Bazel build definition.
Existing plugin jobs names are kept 'as-is' to avoid loosing the
artifacts already built.
Change-Id: I42c07fdcaf174b5d6bbc43f176d9f6e94f3eec74
diff --git a/jenkins/gerrit-bazel-build-its-plugin.sh b/jenkins/gerrit-bazel-build-its-plugin.sh
new file mode 100644
index 0000000..aa77d93
--- /dev/null
+++ b/jenkins/gerrit-bazel-build-its-plugin.sh
@@ -0,0 +1,26 @@
+#!/bin/bash -e
+
+git checkout gerrit/{branch}
+rm -rf plugins/its-{name}
+rm -rf plugins/its-base
+git read-tree -u --prefix=plugins/its-{name} origin/{branch}
+git read-tree -u --prefix=plugins/its-base base/{branch}
+
+rm -Rf buck-out
+
+. set-java.sh 8
+
+bazel build --spawn_strategy=standalone --genrule_strategy=standalone -v 3 plugins/its-{name}
+
+# Remove duplicate entries
+PLUGIN_JAR=$(ls $(pwd)/bazel-genfiles/plugins/its-{name}/its-{name}*.jar)
+mkdir jar-out && pushd jar-out
+jar xf $PLUGIN_JAR && jar cmf META-INF/MANIFEST.MF $PLUGIN_JAR .
+popd
+
+# Extract version information
+PLUGIN_VERSION=$(git describe --always origin/{branch})
+echo -e "Implementation-Version: $PLUGIN_VERSION" > MANIFEST.MF
+jar ufm $PLUGIN_JAR MANIFEST.MF && rm MANIFEST.MF
+
+echo "$PLUGIN_VERSION" > $PLUGIN_JAR-version
diff --git a/jenkins/gerrit-bazel-build-plugin-manual.sh b/jenkins/gerrit-bazel-build-plugin-manual.sh
new file mode 100644
index 0000000..fded690
--- /dev/null
+++ b/jenkins/gerrit-bazel-build-plugin-manual.sh
@@ -0,0 +1,23 @@
+#!/bin/bash -e
+
+git checkout gerrit/{branch}
+rm -rf plugins/{name}
+git fetch https://gerrit.googlesource.com/plugins/{name} $REFS_CHANGE
+git read-tree -u --prefix=plugins/{name} FETCH_HEAD
+
+TARGETS=$(echo "{targets}" | sed -e 's/{{name}}/{name}/g')
+
+. set-java.sh 8
+
+bazel build --spawn_strategy=standalone --genrule_strategy=standalone -v 3 $TARGETS
+
+for JAR in $(bazel targets --show_output $TARGETS | awk '{{print $2}}')
+do
+ PLUGIN_VERSION=$(git describe --always origin/{branch})
+ echo -e "Implementation-Version: $PLUGIN_VERSION" > MANIFEST.MF
+ jar ufm $JAR MANIFEST.MF && rm MANIFEST.MF
+
+ DEST_JAR=bazel-genfiles/plugins/{name}/$(basename $JAR)
+ [ "$JAR" -ef "$DEST_JAR" ] || mv $JAR $DEST_JAR
+ echo "$PLUGIN_VERSION" > bazel-genfiles/plugins/{name}/$(basename $JAR-version)
+done
diff --git a/jenkins/gerrit-bazel-build-plugin.sh b/jenkins/gerrit-bazel-build-plugin.sh
new file mode 100644
index 0000000..c8dbe4a
--- /dev/null
+++ b/jenkins/gerrit-bazel-build-plugin.sh
@@ -0,0 +1,21 @@
+#!/bin/bash -e
+
+git checkout -f gerrit/{branch}
+rm -rf plugins/{name}
+git read-tree -u --prefix=plugins/{name} origin/{branch}
+
+TARGETS=$(echo "{targets}" | sed -e 's/{{name}}/{name}/g')
+
+. set-java.sh 8
+
+bazel build --spawn_strategy=standalone --genrule_strategy=standalone -v 3 $TARGETS
+
+for JAR in $(bazel targets --show_output $TARGETS | awk '{{print $2}}')
+do
+ PLUGIN_VERSION=$(git describe --always origin/{branch})
+ echo -e "Implementation-Version: $PLUGIN_VERSION" > MANIFEST.MF
+ jar ufm $JAR MANIFEST.MF && rm MANIFEST.MF
+ DEST_JAR=bazel-genfiles/plugins/{name}/$(basename $JAR)
+ [ "$JAR" -ef "$DEST_JAR" ] || mv $JAR $DEST_JAR
+ echo "$PLUGIN_VERSION" > bazel-genfiles/plugins/{name}/$(basename $JAR-version)
+done
diff --git a/jenkins/gerrit-buck-bazel-plugin-gh-template.yaml b/jenkins/gerrit-buck-bazel-plugin-gh-template.yaml
new file mode 100644
index 0000000..22a1de9
--- /dev/null
+++ b/jenkins/gerrit-buck-bazel-plugin-gh-template.yaml
@@ -0,0 +1,88 @@
+- job-template:
+ name: 'plugin-{name}-gh-{branch}'
+ defaults: buck-plugin
+ description: "Plugin {name} {branch} branch build with BUCK owned by {organization} and hosted on GitHub\n"
+ wrappers:
+ - timeout:
+ timeout: 30
+ fail: true
+ - timestamps
+ - raw:
+ xml: <jenkins.plugins.logstash.LogstashBuildWrapper plugin="logstash@1.2.0"/>
+ logrotate:
+ numToKeep: 20
+ artifactNumToKeep: 20
+ properties:
+ - 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 * * * *'
+
+ 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-{branch}-bazel'
+ defaults: buck-plugin
+ description: "Plugin {name} {branch} branch build with Bazel owned by {organization} and hosted on GitHub\n"
+ wrappers:
+ - timeout:
+ timeout: 30
+ fail: true
+ - timestamps
+ - raw:
+ xml: <jenkins.plugins.logstash.LogstashBuildWrapper plugin="logstash@1.2.0"/>
+ logrotate:
+ numToKeep: 20
+ artifactNumToKeep: 20
+ properties:
+ - 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 * * * *'
+
+ builders:
+ - shell:
+ !include-raw: gerrit-bazel-build-plugin.sh
+ publishers:
+ - archive:
+ artifacts: >
+ bazel-genfiles/plugins/{name}/{name}.jar*
diff --git a/jenkins/gerrit-buck-bazel-plugin-its-template.yaml b/jenkins/gerrit-buck-bazel-plugin-its-template.yaml
new file mode 100644
index 0000000..ce31ae6
--- /dev/null
+++ b/jenkins/gerrit-buck-bazel-plugin-its-template.yaml
@@ -0,0 +1,93 @@
+- job-template:
+ name: 'plugin-its-{name}-{branch}'
+ defaults: buck-plugin
+ description: "Plugin its-{name} {branch} branch build with BUCK\n"
+ wrappers:
+ - timeout:
+ timeout: 30
+ fail: true
+ - timestamps
+ - raw:
+ xml: <jenkins.plugins.logstash.LogstashBuildWrapper plugin="logstash@1.2.0"/>
+ logrotate:
+ numToKeep: 20
+ artifactNumToKeep: 20
+ properties:
+ - authorization:
+ anonymous:
+ - job-discover
+ - job-read
+ - job-extended-read
+ scm:
+ - git:
+ remotes:
+ - origin:
+ url: https://gerrit.googlesource.com/plugins/its-{name}
+ - gerrit:
+ url: https://gerrit.googlesource.com/gerrit
+ - base:
+ url: https://gerrit.googlesource.com/plugins/its-base
+ branches:
+ - origin/{branch}
+ submodule:
+ recursive: true
+ skip-tag: true
+
+ triggers:
+ - pollscm:
+ cron: 'H/50 * * * *'
+
+ builders:
+ - shell:
+ !include-raw: gerrit-buck-build-its-plugin.sh
+ publishers:
+ - archive:
+ artifacts: >
+ buck-out/gen/plugins/its-{name}/its-{name}.jar*
+
+- job-template:
+ name: 'plugin-its-{name}-{branch}-bazel'
+ defaults: buck-plugin
+ description: "Plugin its-{name} {branch} branch build with Bazel\n"
+ wrappers:
+ - timeout:
+ timeout: 30
+ fail: true
+ - timestamps
+ - raw:
+ xml: <jenkins.plugins.logstash.LogstashBuildWrapper plugin="logstash@1.2.0"/>
+ logrotate:
+ numToKeep: 20
+ artifactNumToKeep: 20
+ properties:
+ - authorization:
+ anonymous:
+ - job-discover
+ - job-read
+ - job-extended-read
+ scm:
+ - git:
+ remotes:
+ - origin:
+ url: https://gerrit.googlesource.com/plugins/its-{name}
+ - gerrit:
+ url: https://gerrit.googlesource.com/gerrit
+ - base:
+ url: https://gerrit.googlesource.com/plugins/its-base
+ branches:
+ - origin/{branch}
+ submodule:
+ recursive: true
+ skip-tag: true
+
+ triggers:
+ - pollscm:
+ cron: 'H/50 * * * *'
+
+ builders:
+ - shell:
+ !include-raw: gerrit-bazel-build-its-plugin.sh
+ publishers:
+ - archive:
+ artifacts: >
+ bazel-genfiles/plugins/its-{name}/its-{name}.jar*
diff --git a/jenkins/gerrit-buck-bazel-plugin-manual-template.yaml b/jenkins/gerrit-buck-bazel-plugin-manual-template.yaml
new file mode 100644
index 0000000..d50f988
--- /dev/null
+++ b/jenkins/gerrit-buck-bazel-plugin-manual-template.yaml
@@ -0,0 +1,101 @@
+- job-template:
+ name: 'pluginmanual-{name}-{branch}'
+ description: "Plugin {name} {branch} manual branch build with BUCK\n"
+ 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
+ defaults: buck-plugin
+ wrappers:
+ - timeout:
+ timeout: 30
+ fail: true
+ - timestamps
+ - raw:
+ xml: <jenkins.plugins.logstash.LogstashBuildWrapper plugin="logstash@1.2.0"/>
+ logrotate:
+ numToKeep: 20
+ artifactNumToKeep: 20
+ properties:
+ - 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
+
+ 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}-{branch}-bazel'
+ description: "Plugin {name} {branch} manual branch build with Bazel\n"
+ 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
+ defaults: buck-plugin
+ wrappers:
+ - timeout:
+ timeout: 30
+ fail: true
+ - timestamps
+ - raw:
+ xml: <jenkins.plugins.logstash.LogstashBuildWrapper plugin="logstash@1.2.0"/>
+ logrotate:
+ numToKeep: 20
+ artifactNumToKeep: 20
+ properties:
+ - 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
+
+ builders:
+ - shell:
+ !include-raw gerrit-bazel-build-plugin-manual.sh
+
+ publishers:
+ - archive:
+ artifacts: 'bazel-genfiles/plugins/{name}/*{name}*.jar*'
diff --git a/jenkins/gerrit-buck-bazel-plugin-scripting-template.yaml b/jenkins/gerrit-buck-bazel-plugin-scripting-template.yaml
new file mode 100644
index 0000000..5397135
--- /dev/null
+++ b/jenkins/gerrit-buck-bazel-plugin-scripting-template.yaml
@@ -0,0 +1,88 @@
+- job-template:
+ name: 'plugin-scripting-{name}-{branch}'
+ defaults: buck-plugin
+ description: "Plugin scripting/{name} {branch} branch build with BUCK\n"
+ wrappers:
+ - timeout:
+ timeout: 30
+ fail: true
+ - timestamps
+ - raw:
+ xml: <jenkins.plugins.logstash.LogstashBuildWrapper plugin="logstash@1.2.0"/>
+ logrotate:
+ numToKeep: 20
+ artifactNumToKeep: 20
+ properties:
+ - authorization:
+ anonymous:
+ - job-discover
+ - job-read
+ - job-extended-read
+ scm:
+ - git:
+ remotes:
+ - origin:
+ url: https://gerrit.googlesource.com/plugins/scripting/{name}
+ - gerrit:
+ url: https://gerrit.googlesource.com/gerrit
+ branches:
+ - origin/{branch}
+ submodule:
+ recursive: true
+ skip-tag: true
+
+ triggers:
+ - pollscm:
+ cron: 'H/50 * * * *'
+
+ builders:
+ - shell:
+ !include-raw: gerrit-buck-build-plugin.sh
+ publishers:
+ - archive:
+ artifacts: 'buck-out/gen/plugins/{name}/{name}.jar*'
+
+- job-template:
+ name: 'plugin-scripting-{name}-{branch}-bazel'
+ defaults: buck-plugin
+ description: "Plugin scripting/{name} {branch} branch build with Bazel\n"
+ wrappers:
+ - timeout:
+ timeout: 30
+ fail: true
+ - timestamps
+ - raw:
+ xml: <jenkins.plugins.logstash.LogstashBuildWrapper plugin="logstash@1.2.0"/>
+ logrotate:
+ numToKeep: 20
+ artifactNumToKeep: 20
+ properties:
+ - authorization:
+ anonymous:
+ - job-discover
+ - job-read
+ - job-extended-read
+ scm:
+ - git:
+ remotes:
+ - origin:
+ url: https://gerrit.googlesource.com/plugins/scripting/{name}
+ - gerrit:
+ url: https://gerrit.googlesource.com/gerrit
+ branches:
+ - origin/{branch}
+ submodule:
+ recursive: true
+ skip-tag: true
+
+ triggers:
+ - pollscm:
+ cron: 'H/50 * * * *'
+
+ builders:
+ - shell:
+ !include-raw: gerrit-bazel-build-plugin.sh
+ publishers:
+ - archive:
+ artifacts: >
+ bazel-genfiles/plugins/{name}/{name}.jar*
\ No newline at end of file
diff --git a/jenkins/gerrit-buck-bazel-plugin-template.yaml b/jenkins/gerrit-buck-bazel-plugin-template.yaml
new file mode 100644
index 0000000..7433c1c
--- /dev/null
+++ b/jenkins/gerrit-buck-bazel-plugin-template.yaml
@@ -0,0 +1,89 @@
+- job-template:
+ name: 'plugin-{name}-{branch}'
+ description: "Plugin {name} {branch} branch build with BUCK\n"
+ defaults: buck-plugin
+ wrappers:
+ - timeout:
+ timeout: 30
+ fail: true
+ - timestamps
+ - raw:
+ xml: <jenkins.plugins.logstash.LogstashBuildWrapper plugin="logstash@1.2.0"/>
+ logrotate:
+ numToKeep: 20
+ artifactNumToKeep: 20
+ properties:
+ - 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
+
+ triggers:
+ - pollscm:
+ cron: 'H/50 * * * *'
+
+ builders:
+ - shell:
+ !include-raw-escape: gerrit-buck-build-plugin.sh
+ publishers:
+ - archive:
+ artifacts: >
+ buck-out/gen/plugins/{name}/*{name}*.jar*,
+
+- job-template:
+ name: 'plugin-{name}-{branch}-bazel'
+ description: "Plugin {name} {branch} branch build with Bazel\n"
+ defaults: buck-plugin
+ wrappers:
+ - timeout:
+ timeout: 30
+ fail: true
+ - timestamps
+ - raw:
+ xml: <jenkins.plugins.logstash.LogstashBuildWrapper plugin="logstash@1.2.0"/>
+ logrotate:
+ numToKeep: 20
+ artifactNumToKeep: 20
+ properties:
+ - 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
+
+ triggers:
+ - pollscm:
+ cron: 'H/50 * * * *'
+
+ builders:
+ - shell:
+ !include-raw-escape: gerrit-bazel-build-plugin.sh
+ publishers:
+ - archive:
+ artifacts: >
+ bazel-genfiles/plugins/{name}/*{name}*.jar*
diff --git a/jenkins/gerrit-buck-plugin-gh-template.yaml b/jenkins/gerrit-buck-plugin-gh-template.yaml
deleted file mode 100644
index a42cedb..0000000
--- a/jenkins/gerrit-buck-plugin-gh-template.yaml
+++ /dev/null
@@ -1,43 +0,0 @@
-- job-template:
- name: 'plugin-{name}-gh-{branch}'
- defaults: buck-plugin
- description: "Plugin {name} {branch} branch build with BUCK owned by {organization} and hosted on GitHub\n"
- wrappers:
- - timeout:
- timeout: 30
- fail: true
- - timestamps
- - raw:
- xml: <jenkins.plugins.logstash.LogstashBuildWrapper plugin="logstash@1.2.0"/>
- logrotate:
- numToKeep: 20
- artifactNumToKeep: 20
- properties:
- - 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 * * * *'
-
- builders:
- - shell:
- !include-raw: gerrit-buck-build-plugin.sh
- publishers:
- - archive:
- artifacts: 'buck-out/gen/plugins/{name}/{name}.jar*'
diff --git a/jenkins/gerrit-buck-plugin-its-template.yaml b/jenkins/gerrit-buck-plugin-its-template.yaml
deleted file mode 100644
index 83851cc..0000000
--- a/jenkins/gerrit-buck-plugin-its-template.yaml
+++ /dev/null
@@ -1,45 +0,0 @@
-- job-template:
- name: 'plugin-its-{name}-{branch}'
- defaults: buck-plugin
- description: "Plugin its-{name} {branch} branch build with BUCK\n"
- wrappers:
- - timeout:
- timeout: 30
- fail: true
- - timestamps
- - raw:
- xml: <jenkins.plugins.logstash.LogstashBuildWrapper plugin="logstash@1.2.0"/>
- logrotate:
- numToKeep: 20
- artifactNumToKeep: 20
- properties:
- - authorization:
- anonymous:
- - job-discover
- - job-read
- - job-extended-read
- scm:
- - git:
- remotes:
- - origin:
- url: https://gerrit.googlesource.com/plugins/its-{name}
- - gerrit:
- url: https://gerrit.googlesource.com/gerrit
- - base:
- url: https://gerrit.googlesource.com/plugins/its-base
- branches:
- - origin/{branch}
- submodule:
- recursive: true
- skip-tag: true
-
- triggers:
- - pollscm:
- cron: 'H/50 * * * *'
-
- builders:
- - shell:
- !include-raw: gerrit-buck-build-its-plugin.sh
- publishers:
- - archive:
- artifacts: 'buck-out/gen/plugins/its-{name}/its-{name}.jar*'
diff --git a/jenkins/gerrit-buck-plugin-manual-template.yaml b/jenkins/gerrit-buck-plugin-manual-template.yaml
deleted file mode 100644
index 8ee15ef..0000000
--- a/jenkins/gerrit-buck-plugin-manual-template.yaml
+++ /dev/null
@@ -1,50 +0,0 @@
-- job-template:
- name: 'pluginmanual-{name}-{branch}'
- description: "Plugin {name} {branch} manual branch build with BUCK\n"
- 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
- defaults: buck-plugin
- wrappers:
- - timeout:
- timeout: 30
- fail: true
- - timestamps
- - raw:
- xml: <jenkins.plugins.logstash.LogstashBuildWrapper plugin="logstash@1.2.0"/>
- logrotate:
- numToKeep: 20
- artifactNumToKeep: 20
- properties:
- - 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
-
- builders:
- - shell:
- !include-raw gerrit-buck-build-plugin-manual.sh
-
- publishers:
- - archive:
- artifacts: 'buck-out/gen/plugins/{name}/*{name}*.jar*'
diff --git a/jenkins/gerrit-buck-plugin-scripting-template.yaml b/jenkins/gerrit-buck-plugin-scripting-template.yaml
deleted file mode 100644
index 7d041ed..0000000
--- a/jenkins/gerrit-buck-plugin-scripting-template.yaml
+++ /dev/null
@@ -1,43 +0,0 @@
-- job-template:
- name: 'plugin-scripting-{name}-{branch}'
- defaults: buck-plugin
- description: "Plugin scripting/{name} {branch} branch build with BUCK\n"
- wrappers:
- - timeout:
- timeout: 30
- fail: true
- - timestamps
- - raw:
- xml: <jenkins.plugins.logstash.LogstashBuildWrapper plugin="logstash@1.2.0"/>
- logrotate:
- numToKeep: 20
- artifactNumToKeep: 20
- properties:
- - authorization:
- anonymous:
- - job-discover
- - job-read
- - job-extended-read
- scm:
- - git:
- remotes:
- - origin:
- url: https://gerrit.googlesource.com/plugins/scripting/{name}
- - gerrit:
- url: https://gerrit.googlesource.com/gerrit
- branches:
- - origin/{branch}
- submodule:
- recursive: true
- skip-tag: true
-
- triggers:
- - pollscm:
- cron: 'H/50 * * * *'
-
- builders:
- - shell:
- !include-raw: gerrit-buck-build-plugin.sh
- publishers:
- - archive:
- artifacts: 'buck-out/gen/plugins/{name}/{name}.jar*'
diff --git a/jenkins/gerrit-buck-plugin-template.yaml b/jenkins/gerrit-buck-plugin-template.yaml
deleted file mode 100644
index 67dfde1..0000000
--- a/jenkins/gerrit-buck-plugin-template.yaml
+++ /dev/null
@@ -1,43 +0,0 @@
-- job-template:
- name: 'plugin-{name}-{branch}'
- description: "Plugin {name} {branch} branch build with BUCK\n"
- defaults: buck-plugin
- wrappers:
- - timeout:
- timeout: 30
- fail: true
- - timestamps
- - raw:
- xml: <jenkins.plugins.logstash.LogstashBuildWrapper plugin="logstash@1.2.0"/>
- logrotate:
- numToKeep: 20
- artifactNumToKeep: 20
- properties:
- - 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
-
- triggers:
- - pollscm:
- cron: 'H/50 * * * *'
-
- builders:
- - shell:
- !include-raw: gerrit-buck-build-plugin.sh
- publishers:
- - archive:
- artifacts: 'buck-out/gen/plugins/{name}/*{name}*.jar*'