From fb5354e446e4b47ee6d00b9b54bd3b6524f59f0b Mon Sep 17 00:00:00 2001 From: Vinod Kumar Date: Mon, 16 Jul 2018 16:55:32 +0530 Subject: [PATCH] Addressed bugs raised as a part of bugbash (#7739) * Added powershell helper module * Replacing Trace-VstsEnteringInvocation with print statement * Removing Trace-VstsLeavingInvocation $MyInvocation * Addressed review comments --- Tasks/Common/PowershellHelpers/Helpers.ps1 | 4 ---- Tasks/ServiceFabricComposeDeployV0/make.json | 4 ++++ Tasks/ServiceFabricPowerShellV1/make.json | 4 ++++ 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Tasks/Common/PowershellHelpers/Helpers.ps1 b/Tasks/Common/PowershellHelpers/Helpers.ps1 index 6596f6c2e08e..1ab2b8b6a5f3 100644 --- a/Tasks/Common/PowershellHelpers/Helpers.ps1 +++ b/Tasks/Common/PowershellHelpers/Helpers.ps1 @@ -27,8 +27,6 @@ function Invoke-ActionWithRetries $RetryMessage ) - Trace-VstsEnteringInvocation $MyInvocation - $lastResult = $null; $retryIteration = 1 do @@ -85,8 +83,6 @@ function Invoke-ActionWithRetries $retryIteration++ Start-Sleep $RetryIntervalInSeconds } while ($true) - - Trace-VstsLeavingInvocation $MyInvocation } function Get-TempDirectoryPath diff --git a/Tasks/ServiceFabricComposeDeployV0/make.json b/Tasks/ServiceFabricComposeDeployV0/make.json index 8b9fc2bcb0b0..1d8026031c1c 100644 --- a/Tasks/ServiceFabricComposeDeployV0/make.json +++ b/Tasks/ServiceFabricComposeDeployV0/make.json @@ -11,6 +11,10 @@ { "module": "../Common/Deployment/TelemetryHelper", "type": "ps" + }, + { + "module": "../Common/PowershellHelpers", + "type": "ps" } ], "externals": { diff --git a/Tasks/ServiceFabricPowerShellV1/make.json b/Tasks/ServiceFabricPowerShellV1/make.json index 8b9fc2bcb0b0..1d8026031c1c 100644 --- a/Tasks/ServiceFabricPowerShellV1/make.json +++ b/Tasks/ServiceFabricPowerShellV1/make.json @@ -11,6 +11,10 @@ { "module": "../Common/Deployment/TelemetryHelper", "type": "ps" + }, + { + "module": "../Common/PowershellHelpers", + "type": "ps" } ], "externals": {