Skip to content

Commit

Permalink
fix for upgrading SF application in pipeline repo (microsoft#16328)
Browse files Browse the repository at this point in the history
  • Loading branch information
v-nagarajku authored and GarikProg committed May 25, 2022
1 parent 7c9d688 commit 1362d10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function Publish-UpgradedServiceFabricApplication
{
## Check upgrade status
$upgradeStatus = Get-ServiceFabricApplicationUpgradeAction -ApplicationName $ApplicationName
if ($upgradeStatus.UpgradeState -ne "RollingBackCompleted" -and $upgradeStatus.UpgradeState -ne "RollingForwardCompleted")
if ($upgradeStatus.UpgradeState -ne "RollingBackCompleted" -and $upgradeStatus.UpgradeState -ne "RollingForwardCompleted" -and $upgradeStatus.UpgradeState -ne "Failed")
{
$errMsg = (Get-VstsLocString -Key SFSDK_UpgradeInProgressError -ArgumentList $ApplicationName)
throw $errMsg
Expand Down Expand Up @@ -372,5 +372,9 @@ function Publish-UpgradedServiceFabricApplication

Write-Error (Get-VstsLocString -Key SFSDK_UpgradeRolledBack)
}
elseif($upgradeStatus.UpgradeState -eq "Failed")
{
Write-Error "Upgrade Failed."
}
}
}
2 changes: 1 addition & 1 deletion Tasks/ServiceFabricDeployV1/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"version": {
"Major": 1,
"Minor": 198,
"Minor": 205,
"Patch": 0
},
"demands": [
Expand Down

0 comments on commit 1362d10

Please sign in to comment.