summaryrefslogtreecommitdiffhomepage
path: root/scripts/common_bazel.sh
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2019-09-05 16:37:06 -0700
committerAdin Scannell <ascannell@google.com>2019-09-06 14:28:12 -0700
commit1a0a940587e4db8923ca81b78d7bba395eb56ce1 (patch)
treefb5f88fa840aab58273a9fc4f9018bf8eae784dd /scripts/common_bazel.sh
parent98f7fbb59fc5aca00f47a8145ce1227550869cb8 (diff)
Fix repository build scripts
This has the following fixes: * Packages are passed to the tools/make_repository.sh command. * All matching tags are built, for commits with multiple. * The binary path is generated by the build command. * Output from signing the repository is supressed. * Allow a release author. Change-Id: I2d08954ba76e35612f352be99d5bb99080f80892
Diffstat (limited to 'scripts/common_bazel.sh')
-rwxr-xr-xscripts/common_bazel.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/common_bazel.sh b/scripts/common_bazel.sh
index 42248cb25..5340c7323 100755
--- a/scripts/common_bazel.sh
+++ b/scripts/common_bazel.sh
@@ -48,7 +48,8 @@ fi
# Wrap bazel.
function build() {
- bazel build "${BAZEL_RBE_FLAGS[@]}" "${BAZEL_RBE_AUTH_FLAGS[@]}" "${BAZEL_FLAGS[@]}" "$@"
+ bazel build "${BAZEL_RBE_FLAGS[@]}" "${BAZEL_RBE_AUTH_FLAGS[@]}" "${BAZEL_FLAGS[@]}" "$@" 2>&1 |
+ tee /dev/fd/2 | grep -E '^ bazel-bin/' | awk '{ print $1; }'
}
function test() {