Skip to content

Commit

Permalink
Fix SF powershell and compose deploy tasks (#7538)
Browse files Browse the repository at this point in the history
  • Loading branch information
bishal-pdMSFT authored Jun 21, 2018
1 parent 9cf6210 commit 9385eab
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
param()

Trace-VstsEnteringInvocation $MyInvocation
Import-Module $PSScriptRoot\ps_modules\TelemetryHelper

try
{
# Import the localized strings.
Expand Down Expand Up @@ -273,6 +275,12 @@ try
}

}
catch
{
$exceptionData = Get-ExceptionData $_
Write-Telemetry "Task_InternalError" "$global:operationId|$exceptionData"
throw
}
finally
{
Trace-VstsLeavingInvocation $MyInvocation
Expand Down
2 changes: 1 addition & 1 deletion Tasks/ServiceFabricComposeDeployV0/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"version": {
"Major": 0,
"Minor": 3,
"Patch": 1
"Patch": 2
},
"demands": [
"Cmd"
Expand Down
2 changes: 1 addition & 1 deletion Tasks/ServiceFabricComposeDeployV0/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"version": {
"Major": 0,
"Minor": 3,
"Patch": 1
"Patch": 2
},
"demands": [
"Cmd"
Expand Down
2 changes: 2 additions & 0 deletions Tasks/ServiceFabricPowerShellV1/ServiceFabricPowerShell.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion Tasks/ServiceFabricPowerShellV1/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"version": {
"Major": 1,
"Minor": 0,
"Patch": 10
"Patch": 11
},
"demands": [
"Cmd"
Expand Down
2 changes: 1 addition & 1 deletion Tasks/ServiceFabricPowerShellV1/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"version": {
"Major": 1,
"Minor": 0,
"Patch": 10
"Patch": 11
},
"demands": [
"Cmd"
Expand Down

0 comments on commit 9385eab

Please sign in to comment.