forked from microsoft/VFSForGit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNukeBuildOutputs.bat
More file actions
42 lines (34 loc) · 1.01 KB
/
NukeBuildOutputs.bat
File metadata and controls
42 lines (34 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@ECHO OFF
CALL %~dp0\InitializeEnvironment.bat || EXIT /b 10
taskkill /f /im GVFS.Mount.exe 2>&1
verify >nul
powershell -NonInteractive -NoProfile -Command "& { (Get-MpPreference).ExclusionPath | ? {$_.StartsWith('C:\Repos\')} | %%{Remove-MpPreference -ExclusionPath $_} }"
IF EXIST C:\Repos\GVFSFunctionalTests\enlistment (
rmdir /s /q C:\Repos\GVFSFunctionalTests\enlistment
) ELSE (
ECHO no test enlistment found
)
IF EXIST C:\Repos\GVFSPerfTest (
rmdir /s /q C:\Repos\GVFSPerfTest
) ELSE (
ECHO no perf test enlistment found
)
IF EXIST %VFS_OUTPUTDIR% (
ECHO deleting build outputs
rmdir /s /q %VFS_OUTPUTDIR%
) ELSE (
ECHO no build outputs found
)
IF EXIST %VFS_PUBLISHDIR% (
ECHO deleting published output
rmdir /s /q %VFS_PUBLISHDIR%
) ELSE (
ECHO no packages found
)
IF EXIST %VFS_PACKAGESDIR% (
ECHO deleting packages
rmdir /s /q %VFS_PACKAGESDIR%
) ELSE (
ECHO no packages found
)
call %VFS_SCRIPTSDIR%\StopAllServices.bat