Do not generate a dist archive to jdk7 Our distribution archive is supposed to contain all the original sources, as well as derived architecture-independent files needed for bootstrapping. So there should only be one distribution archive, not a separate one for jdk7, especially, as the project is moving away from java 7 soon. Change our artifact building accordingly. Closes #2250. -- Change-Id: If34afb544702bc309f722bdc2891b9dc60fe9899 Reviewed-on: https://cr.bazel.build/9190 PiperOrigin-RevId: 149104302 MOS_MIGRATED_REVID=149104302
diff --git a/scripts/ci/build.sh b/scripts/ci/build.sh index c09a18d..49f28c5 100755 --- a/scripts/ci/build.sh +++ b/scripts/ci/build.sh
@@ -147,7 +147,9 @@ cp bazel-bin/scripts/packages/debian/bazel-debian.deb $1/bazel_${release_label}.deb cp -f bazel-genfiles/scripts/packages/debian/bazel.dsc $1/bazel.dsc cp -f bazel-genfiles/scripts/packages/debian/bazel.tar.gz $1/bazel.tar.gz - cp bazel-genfiles/bazel-distfile.zip $1/bazel-${release_label}-dist.zip + if [ "${JAVA_VERSION}" = "1.8"]; then + cp bazel-genfiles/bazel-distfile.zip $1/bazel-${release_label}-dist.zip + fi fi cp bazel-genfiles/site/jekyll-tree.tar $1/www.bazel.build.tar cp bazel-bin/src/tools/benchmark/webapp/site.tar $1/perf.bazel.build.tar.nobuild