Skip to content

Commit

Permalink
jenkins: rm everything except git dir (#21658)
Browse files Browse the repository at this point in the history
old-commit-hash: 507cfc8
  • Loading branch information
adeebshihadeh authored Jul 19, 2021
1 parent 924f76e commit af1e998
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions selfdrive/test/setup_device_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit af1e998

Please sign in to comment.