Я пытаюсь опубликовать sh мое основное приложение как pnet по URL-адресу, используя Jenkins, используя MSBuild.
Я настроил свой профиль выпуска следующим образом:
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>MSDeploy</WebPublishMethod>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish>https://mufit-dev.bagr.mu/</SiteUrlToLaunchAfterPublish>
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<MSDeployServiceURL>https://seechur04.bagr.mu:8172/msdeploy.axd</MSDeployServiceURL>
<DeployIisAppPath>intranet-amis2-dev.astek.mu</DeployIisAppPath>
<RemoteSitePhysicalPath />
<AllowUntrustedCertificate>True</AllowUntrustedCertificate>
<SkipExtraFilesOnServer>True</SkipExtraFilesOnServer>
<MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
<EnableMSDeployBackup>True</EnableMSDeployBackup>
<UserName>admin-dev</UserName>
<Password>admin-dev2</Password>
<_SavePWD>False</_SavePWD>
</PropertyGroup>
</Project>
И на jenkins я использую следующую команду для сборки и развертывания веб-приложения:
cd C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin
MSBuild.exe /t:restore C:\JENKINS\workspace\ApplicationBagr-To-IIS_DEV\Mufit.sln /T:Publish /p:PublishProfile="Mufit-dev.pubxml" /p:Configuration=Release /p:OutputPath="bin\Release" /p:DeployOnBuild=true /p:AllowUntrustedCertificate=True
Но Дженкинс не может найти соответствующий пакет. Пожалуйста, помогите.