From 15a41fd6150249e3296a1f41b6a2995d217bba93 Mon Sep 17 00:00:00 2001 From: Mike Date: Fri, 19 Aug 2016 13:00:08 -0400 Subject: [PATCH] Don't write-host in a remoted session It's not supported. Fixes: https://github.com/jabbera/my-vsts-tasks/issues/4 --- .../Src/Tasks/StopWindowsService/StopWindowsServiceIntern.ps1 | 2 +- config.bootstrap.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Extensions/WindowsServiceReleaseTasks/Src/Tasks/StopWindowsService/StopWindowsServiceIntern.ps1 b/Extensions/WindowsServiceReleaseTasks/Src/Tasks/StopWindowsService/StopWindowsServiceIntern.ps1 index 2f2a80b..dd9931f 100644 --- a/Extensions/WindowsServiceReleaseTasks/Src/Tasks/StopWindowsService/StopWindowsServiceIntern.ps1 +++ b/Extensions/WindowsServiceReleaseTasks/Src/Tasks/StopWindowsService/StopWindowsServiceIntern.ps1 @@ -39,7 +39,7 @@ Catch $nonStoppedServices = $presentServicesArray | Where-Object { $_.Status -ne "Stopped" } | % { $_.ServiceName } - $nonStoppedServices | % { Write-Host "Killing service after not stopping within timeout: $_" } + $nonStoppedServices | % { Write-Verbose "Killing service after not stopping within timeout: $_" } (get-wmiobject win32_Service | Where-Object { $nonStoppedServices -contains $_.Name }).ProcessID | % { Stop-Process -Force $_ } } diff --git a/config.bootstrap.json b/config.bootstrap.json index bb47554..5ea8599 100644 --- a/config.bootstrap.json +++ b/config.bootstrap.json @@ -1,7 +1,7 @@ { "tokens":{ "Major": 1, - "Patch": 19 + "Patch": 0 }, "prefix" : "{{", "suffix" : "}}"