diff --git a/Tasks/ServiceFabricComposeDeployV0/ServiceFabricComposeDeploy.ps1 b/Tasks/ServiceFabricComposeDeployV0/ServiceFabricComposeDeploy.ps1 index ac9966f61c46..928e0646b5c7 100644 --- a/Tasks/ServiceFabricComposeDeployV0/ServiceFabricComposeDeploy.ps1 +++ b/Tasks/ServiceFabricComposeDeployV0/ServiceFabricComposeDeploy.ps1 @@ -5,6 +5,8 @@ param() Trace-VstsEnteringInvocation $MyInvocation +Import-Module $PSScriptRoot\ps_modules\TelemetryHelper + try { # Import the localized strings. @@ -273,6 +275,12 @@ try } } +catch +{ + $exceptionData = Get-ExceptionData $_ + Write-Telemetry "Task_InternalError" "$global:operationId|$exceptionData" + throw +} finally { Trace-VstsLeavingInvocation $MyInvocation diff --git a/Tasks/ServiceFabricComposeDeployV0/task.json b/Tasks/ServiceFabricComposeDeployV0/task.json index 2c066d894e1d..1c5b5fd3476f 100644 --- a/Tasks/ServiceFabricComposeDeployV0/task.json +++ b/Tasks/ServiceFabricComposeDeployV0/task.json @@ -17,7 +17,7 @@ "version": { "Major": 0, "Minor": 3, - "Patch": 1 + "Patch": 2 }, "demands": [ "Cmd" diff --git a/Tasks/ServiceFabricComposeDeployV0/task.loc.json b/Tasks/ServiceFabricComposeDeployV0/task.loc.json index 432024276a98..ebd20918624d 100644 --- a/Tasks/ServiceFabricComposeDeployV0/task.loc.json +++ b/Tasks/ServiceFabricComposeDeployV0/task.loc.json @@ -17,7 +17,7 @@ "version": { "Major": 0, "Minor": 3, - "Patch": 1 + "Patch": 2 }, "demands": [ "Cmd" diff --git a/Tasks/ServiceFabricPowerShellV1/ServiceFabricPowerShell.ps1 b/Tasks/ServiceFabricPowerShellV1/ServiceFabricPowerShell.ps1 index 7fb23ae2c2ec..1a305aacb95f 100644 --- a/Tasks/ServiceFabricPowerShellV1/ServiceFabricPowerShell.ps1 +++ b/Tasks/ServiceFabricPowerShellV1/ServiceFabricPowerShell.ps1 @@ -25,6 +25,8 @@ if ($scriptArguments -match '[\r\n]') throw (Get-VstsLocString -Key InvalidScriptArguments0 -ArgumentList $scriptArguments) } +Import-Module $PSScriptRoot\ps_modules\TelemetryHelper + try { # Initialize Service Fabric. diff --git a/Tasks/ServiceFabricPowerShellV1/task.json b/Tasks/ServiceFabricPowerShellV1/task.json index 36c2cec821db..c28d1fe14dd0 100644 --- a/Tasks/ServiceFabricPowerShellV1/task.json +++ b/Tasks/ServiceFabricPowerShellV1/task.json @@ -17,7 +17,7 @@ "version": { "Major": 1, "Minor": 0, - "Patch": 10 + "Patch": 11 }, "demands": [ "Cmd" diff --git a/Tasks/ServiceFabricPowerShellV1/task.loc.json b/Tasks/ServiceFabricPowerShellV1/task.loc.json index 9c61ecdf252b..31547e5d7f7e 100644 --- a/Tasks/ServiceFabricPowerShellV1/task.loc.json +++ b/Tasks/ServiceFabricPowerShellV1/task.loc.json @@ -17,7 +17,7 @@ "version": { "Major": 1, "Minor": 0, - "Patch": 10 + "Patch": 11 }, "demands": [ "Cmd"