Skip to content

Commit

Permalink
Revert Purge codepath
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchitmehta committed Dec 11, 2020
1 parent 3e1b46b commit bb25b3e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Kudu.Core/Deployment/DeploymentManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -416,10 +416,13 @@ internal IEnumerable<DeployResult> PurgeDeployments(IEnumerable<DeployResult> re
if (results.Any())
{
var toDelete = new List<DeployResult>();
// Reverting to ANT 90 behavior
toDelete.AddRange(GetPurgeTemporaryDeployments(results));
toDelete.AddRange(GetPurgeFailedDeployments(results));
toDelete.AddRange(GetPurgeObsoleteDeployments(results));
if(!IsDeploying)
{
// Reverting to ANT 90 behavior
toDelete.AddRange(GetPurgeTemporaryDeployments(results));
toDelete.AddRange(GetPurgeFailedDeployments(results));
toDelete.AddRange(GetPurgeObsoleteDeployments(results));
}

if (toDelete.Any())
{
Expand Down

0 comments on commit bb25b3e

Please sign in to comment.