jenkins: rm everything except git dir (#21658)

old-commit-hash: 507cfc8910
commatwo_master v0.8.6
Adeeb Shihadeh 4 years ago committed by GitHub
parent 924f76e835
commit af1e998ba6
  1. 3
      selfdrive/test/setup_device_ci.sh

@ -26,6 +26,9 @@ fi
# set up environment
cd $SOURCE_DIR
git reset --hard
git fetch
find . -maxdepth 1 -not -path './.git' -not -name '.' -not -name '..' -exec rm -rf '{}' \;
git fetch --verbose origin $GIT_COMMIT
git reset --hard $GIT_COMMIT
git checkout $GIT_COMMIT

Loading…
Cancel
Save