Skip to content

Honour a feature toggle to ignore AzureWebApp PreservePaths - #2121

Merged
zentron merged 2 commits into
mainfrom
robe/azure-webapp-ignore-preserve-paths-toggle
Aug 7, 2026
Merged

Honour a feature toggle to ignore AzureWebApp PreservePaths#2121
zentron merged 2 commits into
mainfrom
robe/azure-webapp-ignore-preserve-paths-toggle

Conversation

@zentron

@zentron zentron commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Adds AzureWebAppIgnorePreservePathsFeatureToggle to the OctopusFeatureToggles known slugs, and guards the --preservePaths MSDeploy shim argument with it in NetCoreWebDeploymentExecutor. Lets Octopus Server remotely suppress the undocumented Octopus.Action.Azure.PreservePaths variable to help gauge how many customers rely on it.

Adds AzureWebAppIgnorePreservePathsFeatureToggle to the OctopusFeatureToggles known slugs, and guards the --preservePaths MSDeploy shim argument with it in NetCoreWebDeploymentExecutor. Lets Octopus Server remotely suppress the undocumented Octopus.Action.Azure.PreservePaths variable to help gauge how many customers rely on it.
@zentron
zentron marked this pull request as ready for review August 7, 2026 02:44
if (!OctopusFeatureToggles.AzureWebAppIgnorePreservePathsFeatureToggle.IsEnabled(variables))
{
args.Add($"--preservePaths={string.Join("|",preservePaths.Select(s => $"\"{s}\""))}");
var preservePaths = variables.GetStrings(SpecialVariables.Action.Azure.PreservePaths, ';');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's annoying when indentation changes make this look like a bigger diff and not just wrapped by an if, I thought the GitHub diff had gotten better

@zentron
zentron enabled auto-merge (squash) August 7, 2026 04:34
@zentron
zentron merged commit 51800dc into main Aug 7, 2026
28 checks passed
@zentron
zentron deleted the robe/azure-webapp-ignore-preserve-paths-toggle branch August 7, 2026 05:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants