Skip to content

Commit 0a79e71

Browse files
Fix SF powershell and compose deploy tasks (#7533)
1 parent 0c2f651 commit 0a79e71

File tree

6 files changed

+14
-4
lines changed

6 files changed

+14
-4
lines changed

Tasks/ServiceFabricComposeDeployV0/ServiceFabricComposeDeploy.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
param()
66

77
Trace-VstsEnteringInvocation $MyInvocation
8+
Import-Module $PSScriptRoot\ps_modules\TelemetryHelper
9+
810
try
911
{
1012
# Import the localized strings.
@@ -273,6 +275,12 @@ try
273275
}
274276

275277
}
278+
catch
279+
{
280+
$exceptionData = Get-ExceptionData $_
281+
Write-Telemetry "Task_InternalError" "$global:operationId|$exceptionData"
282+
throw
283+
}
276284
finally
277285
{
278286
Trace-VstsLeavingInvocation $MyInvocation

Tasks/ServiceFabricComposeDeployV0/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"version": {
1818
"Major": 0,
1919
"Minor": 3,
20-
"Patch": 1
20+
"Patch": 2
2121
},
2222
"demands": [
2323
"Cmd"

Tasks/ServiceFabricComposeDeployV0/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"version": {
1818
"Major": 0,
1919
"Minor": 3,
20-
"Patch": 1
20+
"Patch": 2
2121
},
2222
"demands": [
2323
"Cmd"

Tasks/ServiceFabricPowerShellV1/ServiceFabricPowerShell.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ if ($scriptArguments -match '[\r\n]')
2525
throw (Get-VstsLocString -Key InvalidScriptArguments0 -ArgumentList $scriptArguments)
2626
}
2727

28+
Import-Module $PSScriptRoot\ps_modules\TelemetryHelper
29+
2830
try
2931
{
3032
# Initialize Service Fabric.

Tasks/ServiceFabricPowerShellV1/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"version": {
1818
"Major": 1,
1919
"Minor": 0,
20-
"Patch": 10
20+
"Patch": 11
2121
},
2222
"demands": [
2323
"Cmd"

Tasks/ServiceFabricPowerShellV1/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"version": {
1818
"Major": 1,
1919
"Minor": 0,
20-
"Patch": 10
20+
"Patch": 11
2121
},
2222
"demands": [
2323
"Cmd"

0 commit comments

Comments
 (0)