mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 00:43:54 +08:00
jenkins: rm everything except git dir (#21658)
old-commit-hash: 507cfc8910
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user