azure-sdk-for-cpp/eng/common/testproxy/test-proxy-tool-shutdown.yml
Azure SDK Bot 1ecceb6f7a
Sync eng/common directory with azure-sdk-tools for PR 7877 (#5449)
* create necessary eng/common changes to allow proxy to be shut down 

---------

Co-authored-by: Scott Beddall (from Dev Box) <scbedd@microsoft.com>
2024-03-14 12:51:02 -07:00

11 lines
347 B
YAML

steps:
- pwsh: |
Stop-Process -Id $(PROXY_PID)
displayName: 'Shut down the testproxy - windows'
condition: and(succeeded(), eq(variables['Agent.OS'],'Windows_NT'))
- bash: |
kill -9 $(PROXY_PID)
displayName: "Shut down the testproxy - linux/mac"
condition: and(succeeded(), ne(variables['Agent.OS'],'Windows_NT'))