Use explicit file names patterns for artifacts

Use the explicit list of expected patterns so that only
the artifacts results are included and nothing else.

Currently a bunch of other intermediate files (e.g. _non_stamped.jar
__plugin.jar and __plugin-class.jar) are archived and are wasting
disk space and can be confusing for the user.

Change-Id: I10de5644b67a095d2ba47179e932276093cb26fd
diff --git a/jenkins/gerrit-bazel-plugin-template.yaml b/jenkins/gerrit-bazel-plugin-template.yaml
index 6aec2ed..3094239 100644
--- a/jenkins/gerrit-bazel-plugin-template.yaml
+++ b/jenkins/gerrit-bazel-plugin-template.yaml
@@ -45,7 +45,7 @@
     publishers:
       - archive:
          artifacts: >
-           bazel-bin/plugins/{name}/*{name}*.jar*, bazel-bin/plugins/{name}/{name}.json
+           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}'
@@ -69,7 +69,7 @@
     publishers:
       - archive:
          artifacts: >
-           bazel-bin/plugins/{name}/*{name}*.jar*, bazel-bin/plugins/{name}/{name}.json
+           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}'
@@ -95,4 +95,4 @@
     publishers:
       - archive:
          artifacts: >
-           bazel-bin/plugins/{name}/*{name}*.jar*, bazel-bin/plugins/{name}/{name}.json
+           bazel-bin/plugins/{name}/{name}.jar, bazel-bin/plugins/{name}/{name}.jar-version, bazel-bin/plugins/{name}/{name}.json
diff --git a/jenkins/gerrit-buck-bazel-plugin-template.yaml b/jenkins/gerrit-buck-bazel-plugin-template.yaml
index 1a83c8b..a28f4d8 100644
--- a/jenkins/gerrit-buck-bazel-plugin-template.yaml
+++ b/jenkins/gerrit-buck-bazel-plugin-template.yaml
@@ -62,7 +62,7 @@
     publishers:
       - archive:
          artifacts: >
-           bazel-bin/plugins/{name}/*{name}*.jar*,bazel-bin/plugins/{name}/{name}.json
+           bazel-bin/plugins/{name}/{name}.jar, bazel-bin/plugins/{name}/{name}.jar-version, bazel-bin/plugins/{name}/{name}.json
 
 - view-template:
     name: 'Plugins-{branch}'