To use this function add it to the class library file named PluginVCHostSystemService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: PluginVCHostSystemService.ts
Private Function: ApplyAdvancedSettings
private ApplyAdvancedSettings(objVcHostSystem: VcHostSystem, arrVcOptionValue: VcOptionValue[]): boolean {
let objVcHostConfigManager: VcHostConfigManager = objVcHostSystem.configManager;
let objVcOptionManager: VcOptionManager = objVcHostConfigManager.advancedOption;
try {
this.objLogger.info("Applying advanced settings on host...");
objVcOptionManager.updateOptions(arrVcOptionValue);
this.objLogger.info("Advanced settings have been applied");
return true;
}
catch (objException) {
Utilities.logException(objException, this.objLogger, "VcHostSystemApplyAdvancedSettings");
return false;
}
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
