Sign in
gerrit
/
gerrit-ci-scripts
/
75831975c1cf2866a8df7d891d374d9e6ecd891d
/
.
/
jenkins
/
gerrit-bazel-cleancache.sh
blob: 59d8fb6d75c227336da51544b043197f1c41e1e4 [
file
] [
log
] [
blame
]
#!/bin/bash -e
if
[
git show
--
diff
-
filter
=
AM
--
name
-
only
--
pretty
=
""
HEAD
|
grep
-
q
.
bazelversion
]
then
echo
"Bazel version upgrade to $(cat .bazelversion) detected => cleaning up all local Bazel caches"
rm
-
Rf
~/.
gerritcodereview
~/.
cache
fi