Browse Source

ci: only kill WOA processes if they are running (#20274)

John Kleinschmidt 5 years ago
parent
commit
afc59aefb7
1 changed files with 3 additions and 3 deletions
  1. 3 3
      azure-pipelines-woa.yml

+ 3 - 3
azure-pipelines-woa.yml

@@ -77,8 +77,8 @@ steps:
     python electron\script\verify-ffmpeg.py --build-dir out\Default --source-root %cd% --ffmpeg-path out\ffmpeg
   displayName: 'Verify ffmpeg'
 
-- script: |
-    taskkill /F /IM electron.exe
-    taskkill /F /IM MicrosoftEdge.exe
+- powershell: |
+    Get-Process | Where Name –Like "electron.exe*" | Stop-Process
+    Get-Process | Where Name –Like "MicrosoftEdge.exe*" | Stop-Process
   displayName: 'Kill processes left running from last test run'
   condition: always()