remove bazel clean, as the workers clean automatically
diff --git a/buildkite/bazelci.py b/buildkite/bazelci.py
index 2afc80c..b7c6ba0 100644
--- a/buildkite/bazelci.py
+++ b/buildkite/bazelci.py
@@ -351,7 +351,6 @@
git_repository = os.getenv("BUILDKITE_REPO")
if is_pull_request() and not is_trusted_author(github_user_for_pull_request(), git_repository):
update_pull_request_verification_status(git_repository, commit, state="success")
- cleanup()
tmpdir = tempfile.mkdtemp()
if use_but:
print_collapsed_group(":gcloud: Downloading Bazel Under Test")
@@ -415,7 +414,6 @@
finally:
if tmpdir:
shutil.rmtree(tmpdir)
- cleanup()
if fail_pipeline:
raise BuildkiteException("At least one test failed or was flaky.")
@@ -613,12 +611,6 @@
os.chdir(clone_path)
-def cleanup():
- print_collapsed_group(":wastebasket: Cleanup")
- if os.path.exists("WORKSPACE"):
- execute_command(["bazel", "clean", "--expunge"])
-
-
def execute_shell_commands(commands):
if not commands:
return