Skip to content

Commit

Permalink
Simplify cleanup script and use correct path
Browse files Browse the repository at this point in the history
Issue: 365150653
Reviewed-on: #4641
  • Loading branch information
dahlstrom-g committed Jan 6, 2025
1 parent 173ecc3 commit 3b068ec
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cobalt/devinfra/kokoro/bin/cleanup.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
set -x

REPO_ROOT="$(dirname "$0")/../../.."
# After kokoro build finishes, changed files in c:/tmpfs get rsync'ed to a borg executor,
# from where the artifacts and reports are processed.
# Especially on Windows, the rsync can take long time, so we cleanup the cobalt workspace
# after finishing each build.
set +e
pushd $REPO_ROOT
time git clean -fdx
popd
time git -C "${WORKSPACE_COBALT}" clean -dfx
exit 0

0 comments on commit 3b068ec

Please sign in to comment.