X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fjjb-cleanup.sh;h=69d1534bb176a4ca32c950692f62e6db01e8a8ca;hb=18bb0a40f9ba00fd8417b32fbde9593b6d968c53;hp=8f5a62607a44a7d466bdf8c136e5e67a1d8147b2;hpb=1c748f633fba763bdb98cdc337f29b35b8b81e5e;p=releng%2Fglobal-jjb.git diff --git a/shell/jjb-cleanup.sh b/shell/jjb-cleanup.sh index 8f5a6260..69d1534b 100644 --- a/shell/jjb-cleanup.sh +++ b/shell/jjb-cleanup.sh @@ -20,6 +20,8 @@ set -e -o pipefail # shellcheck source="$WORKSPACE/.jjb.properties" disable=SC1091 source "$WORKSPACE/.jjb.properties" if [[ -n "$JJB_VENV" && "$JJB_VENV" =~ /tmp/.* ]]; then - rm -r "$JJB_VENV" && "$JJB_VENV removed" + rm -rf "$JJB_VENV" && echo "$JJB_VENV removed" + unset JJB_VENV fi -rm "$WORKSPACE/.jjb.properties" +rm -f "$WORKSPACE/.jjb.properties" +deactivate