Remove kill-tasks step in eng/build-job.yml and kill_tasks.cmd file (dotnet/coreclr...
authorEgor Chesakov <Egor.Chesakov@microsoft.com>
Wed, 20 Mar 2019 21:47:09 +0000 (14:47 -0700)
committerGitHub <noreply@github.com>
Wed, 20 Mar 2019 21:47:09 +0000 (14:47 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/69dc790d171783584f5af3a5da60a25e2c301899

eng/build-job.yml
eng/kill_tasks.cmd [deleted file]

index 7e9f631..1d3cde4 100644 (file)
@@ -195,10 +195,3 @@ jobs:
         targetPath: $(Build.SourcesDirectory)/bin/Logs
       continueOnError: true
       condition: always()
-
-    # Kill tasks that hold onto files on Windows. Otherwise git clean
-    # may fail for later jobs on the same agent.
-    - ${{ if eq(parameters.osGroup, 'Windows_NT') }}:
-      - script: eng/kill_tasks.cmd
-        displayName: Kill tasks that hold on to files
-        condition: always()
diff --git a/eng/kill_tasks.cmd b/eng/kill_tasks.cmd
deleted file mode 100644 (file)
index ee7099c..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-@if not defined _echo @echo off
-setlocal EnableDelayedExpansion
-
-:: Check if VBCSCompiler.exe is running
-tasklist /fi "imagename eq VBCSCompiler.exe" |find ":" > nul
-:: Compiler is running if errorlevel == 1
-if errorlevel 1 (
-       echo Stop VBCSCompiler.exe execution.
-       for /f "tokens=2 delims=," %%F in ('tasklist /nh /fi "imagename eq VBCSCompiler.exe" /fo csv') do taskkill /f /PID %%~F
-)