diff options
author | Matt Galbraith <mattgal@microsoft.com> | 2017-06-01 03:06:18 +0300 |
---|---|---|
committer | Matt Galbraith <mattgal@microsoft.com> | 2017-06-01 03:06:18 +0300 |
commit | 9e43eea5b30bc5dc1bcbb3004231dd8197d938e3 (patch) | |
tree | 871c26a29f5015187dc1eb7bab911bf06263f492 /buildpipeline | |
parent | f6f45d28589a6ffb303c4266ba79b2722f30fc21 (diff) |
Add killing msbuild.exe and vbcscompiler before attempting to delete the CoreFX directory
Diffstat (limited to 'buildpipeline')
-rw-r--r-- | buildpipeline/DotNet-CoreFx-Trusted-Windows-NoTest.json | 2 | ||||
-rw-r--r-- | buildpipeline/DotNet-CoreFx-Trusted-Windows.json | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/buildpipeline/DotNet-CoreFx-Trusted-Windows-NoTest.json b/buildpipeline/DotNet-CoreFx-Trusted-Windows-NoTest.json index 17f690f614..37e1921359 100644 --- a/buildpipeline/DotNet-CoreFx-Trusted-Windows-NoTest.json +++ b/buildpipeline/DotNet-CoreFx-Trusted-Windows-NoTest.json @@ -15,7 +15,7 @@ "scriptType": "inlineScript", "scriptName": "", "arguments": "-path $(build.SourcesDirectory)\\corefx", - "inlineScript": "param($path)\n\nif (Test-Path $path){\n # this will print out an error each time a file can't be deleted.\n Remove-Item -Recurse -Force $path\n }\n\nif (Test-Path $path){\n # in case corefx is still alive\n .\\diag_tools\\handle.exe -accepteula $path\n }", + "inlineScript": "param($path)\n\nif (Test-Path $path){\n Stop-Process -processname msbuild\n Stop-Process -processname vbcscompiler\n # this will print out an error each time a file can't be deleted.\n Remove-Item -Recurse -Force $path\n }\n", "workingFolder": "", "failOnStandardError": "true" } diff --git a/buildpipeline/DotNet-CoreFx-Trusted-Windows.json b/buildpipeline/DotNet-CoreFx-Trusted-Windows.json index ea684a3a05..e8395a82bd 100644 --- a/buildpipeline/DotNet-CoreFx-Trusted-Windows.json +++ b/buildpipeline/DotNet-CoreFx-Trusted-Windows.json @@ -15,7 +15,7 @@ "scriptType": "inlineScript", "scriptName": "", "arguments": "-path $(build.SourcesDirectory)\\corefx", - "inlineScript": "param($path)\n\nif (Test-Path $path){\n # this will print out an error each time a file can't be deleted.\n Remove-Item -Recurse -Force $path\n }\n\nif (Test-Path $path){\n # in case corefx is still alive\n .\\diag_tools\\handle.exe -accepteula $path\n }", + "inlineScript": "param($path)\n\nif (Test-Path $path){\n Stop-Process -processname msbuild\n Stop-Process -processname vbcscompiler\n # this will print out an error each time a file can't be deleted.\n Remove-Item -Recurse -Force $path\n }\n", "workingFolder": "", "failOnStandardError": "true" } |