From 73f57f45927fdda983852e0f8feac2d7d07d1630 Mon Sep 17 00:00:00 2001 From: "Addisu Z. Taddese" Date: Wed, 11 Oct 2023 12:47:20 -0500 Subject: [PATCH] Remove homebrew locks to avoid errors about another active Homebrew process being active Signed-off-by: Addisu Z. Taddese --- jenkins-scripts/lib/_homebrew_cleanup.bash | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jenkins-scripts/lib/_homebrew_cleanup.bash b/jenkins-scripts/lib/_homebrew_cleanup.bash index 40d386055..0b31ede4f 100644 --- a/jenkins-scripts/lib/_homebrew_cleanup.bash +++ b/jenkins-scripts/lib/_homebrew_cleanup.bash @@ -39,6 +39,9 @@ git stash && git clean -d -f ${BREW_BINARY} audit cmake || restore_brew popd 2> /dev/null +# Remove any locks to avoid any errors about another active Homebrew process being active. +rm -rf $(${BREW_BINARY} --prefix)/var/homebrew/locks + # test-bot needs variables and does not work just with config not sure why export GIT_AUTHOR_NAME="OSRF Build Bot" export GIT_COMMITTER_NAME=${GIT_AUTHOR_NAME}