diff options
author | Matt Galbraith <mattgal@microsoft.com> | 2017-06-01 08:43:37 +0300 |
---|---|---|
committer | Matt Galbraith <mattgal@microsoft.com> | 2017-06-01 08:43:37 +0300 |
commit | fd6bae5b5500d51cb1255d277721ba836be14a24 (patch) | |
tree | 9b8ca4341b2d75b9e317581a9a78beb2a7de7f26 | |
parent | f912f36ca50b14482178aac0b6613529094daf6b (diff) |
Fix error in Stop-Process usage.
-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 37e1921359..046d550d8b 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 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", + "inlineScript": "param($path)\n\nif (Test-Path $path){\n Stop-Process -processname msbuild -ErrorAction Ignore -Verbose\n Stop-Process -processname vbcscompiler -ErrorAction Ignore -Verbose\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 e8395a82bd..8b37ceeba5 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 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", + "inlineScript": "param($path)\n\nif (Test-Path $path){\n Stop-Process -processname msbuild -ErrorAction Ignore -Verbose\n Stop-Process -processname vbcscompiler -ErrorAction Ignore -Verbose\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" } |