Я попробовал следующее для развертывания приложения. NET Framework 4.5 на удаленном windows сервере с использованием Jenkins и msdeploy:
def deployDev(folder, virtualDirectory)
{
bat "\"C:\\Program Files\\IIS\\Microsoft Web Deploy V3\\msdeploy.exe\" -verb:sync -allowUntrusted -source:package=\"${WORKSPACE}\\DIST\\Package\\${virtualDirectory}.zip\" -dest:auto=\"Default%%20Web%%20Site/${virtualDirectory}\",computerName=\"https://XX-XXX-XX:8172/msdeploy.axd?site=Default%%20Web%%20Site\" -enablerule:AppOffline -setParam:name=\"IIS Web Application Name\",value=\"Default Web Site\\${virtualDirectory}\" -verbose -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension"
}
При развертывании я получаю следующую ошибку:
14:29:53 Verbose: Source createApp (E:\Jenkins\slaves\AsoModernisation\workspace\ASO2_master\Aso2\obj\Debug\Package\PackageTmp) does not match destination (Default Web Site\Aso2) differing in attributes (isDest['False','True']). Update pending.
14:29:53 Verbose: Update operation on **createApp** (E:\Jenkins\slaves\AsoModernisation\workspace\ASO2_master\Aso2\obj\Debug\Package\PackageTmp) skipped because of rule ApplicationExistsRule.
14:29:53 Verbose: Delete operation on filePath (Default Web Site\Aso2\App_Offline.htm) skipped because of rule AppOffline.
14:29:53 Verbose: Source **setAcl** (E:\Jenkins\slaves\AsoModernisation\workspace\ASO2_master\Aso2\obj\Debug\Package\PackageTmp) does not match destination (Default Web Site\Aso2) differing in attributes (isDest['False','True'],setAclUser,setAclAccess). Update pending.
14:29:53 Info: Adding ACLs for path (Default Web Site\Aso2)
14:29:53 Verbose: Parameter entry 'IIS Web Application Name/1' is applicable to 'iisApp/E:\Jenkins\slaves\AsoModernisation\workspace\ASO2_master\Aso2\obj\Debug\Package\PackageTmp' because of its scope.
14:29:53 Verbose: Parameter entry 'IIS Web Application Name/2' is applicable to 'setAcl/E:\Jenkins\slaves\AsoModernisation\workspace\ASO2_master\Aso2\obj\Debug\Package\PackageTmp' because of its scope.
14:29:53 Verbose: Parameter entry 'IIS Web Application Name/2' is applicable to 'setAcl/E:\Jenkins\slaves\AsoModernisation\workspace\ASO2_master\Aso2\obj\Debug\Package\PackageTmp' because of its scope.
14:29:53 Verbose: Parameter entry 'Add write permission to App_Data Folder/1' is applicable to 'setAcl/E:\Jenkins\slaves\AsoModernisation\workspace\ASO2_master\Aso2\obj\Debug\Package\PackageTmp\App_Data' because of its scope.
14:29:53 Error: (21/02/2020 14:29:53) An error occurred when the request was processed on the remote computer.
14:29:53 Error: The server experienced an issue processing the request. Contact the server administrator for more information.
14:29:53 Error count: 1.
Я открыл порт 8172, проверил разрешения пользователей, попытался переустановить msdeploy (v3.6), добавил разрешения IIS Manager, создал пулы и виртуальные каталоги на веб-сайте по умолчанию.
Будет У кого-нибудь есть предложение, что с этим не так? Что-нибудь с createApp или setAcl, которое могло бы вызвать проблему?