in src/publishers/zipDeploy.ts [119:135]
private static async deleteScmTemporarySettings(context: IActionContext, original: IAppSettings) {
try {
if (context.authenticationType === AuthenticationType.Scm) {
// Delete previous app settings if they are temporarily set
if (original.SCM_DO_BUILD_DURING_DEPLOYMENT === undefined) {
Logger.Info(`Deleting SCM_DO_BUILD_DURING_DEPLOYMENT in Kudu container`);
await context.kuduService.deleteAppSettingViaKudu('SCM_DO_BUILD_DURING_DEPLOYMENT', 3, 3, false);
}
if (original.ENABLE_ORYX_BUILD === undefined) {
Logger.Info(`Deleting ENABLE_ORYX_BUILD in Kudu container`);
await context.kuduService.deleteAppSettingViaKudu('ENABLE_ORYX_BUILD', 3, 3, false);
}
}
} catch (expt) {
Logger.Warn("Delete Application Settings: Failed to delete temporary SCM app settings.");
}
}