Skip to content
Browse files

[WIN32] added a prepare-env script for jenkins to clean the environme…

…nt a little but keep the build deps.
  • Loading branch information...
1 parent 2cbf2c6 commit e9fa43c6ddc2769446949ffe9aeaa69d8ae72af8 wsoltys committed
Showing with 20 additions and 0 deletions.
  1. +20 −0 tools/buildsteps/win32/prepare-env.bat
20 tools/buildsteps/win32/prepare-env.bat
@@ -0,0 +1,20 @@
+ECHO Workspace is %WORKSPACE%
+rem git clean the untracked files but not the directories
+rem to keep the downloaded dependencies
+rem we assume git in path as this is a requirement
+ECHO running git clean -xf
+git clean -xf
+rem cleaning additional directories
+ECHO delete build directories
+IF EXIST %WORKSPACE%\project\Win32BuildSetup\BUILD_WIN32 rmdir %WORKSPACE%\project\Win32BuildSetup\BUILD_WIN32 /S /Q
+IF EXIST %WORKSPACE%\project\Win32BuildSetup\dependencies rmdir %WORKSPACE%\project\Win32BuildSetup\dependencies /S /Q
+IF EXIST %WORKSPACE%\project\BuildDependencies\include rmdir %WORKSPACE%\project\BuildDependencies\include /S /Q
+IF EXIST %WORKSPACE%\project\BuildDependencies\lib rmdir %WORKSPACE%\project\BuildDependencies\lib /S /Q
+IF EXIST %WORKSPACE%\project\BuildDependencies\msys rmdir %WORKSPACE%\project\BuildDependencies\msys /S /Q

0 comments on commit e9fa43c

Please sign in to comment.
Something went wrong with that request. Please try again.