mardi 30 mai 2017

WebDeploy.mxe deploying to wrong location

We are using Jenkins for CI and is and use it for automatic deploy. First, we create the package file as a zip using the following command using msbuild.exe

  msbuild.exe /T:Package /p:Configuration=Release;PackageLocation="D:\Deploy\${BUILD_NUMBER}\PrintCloud.zip";VisualStudioVersion=11.0

After creating the package we try to deploy it to Default Web Site using msdeploy.exe using the following command.

"C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:package="D:\Deploy\%BUILD_NUMBER%\PrintCloud.zip" -dest:auto,computerName=localhost

Here the package is deploying in to a wrong directory. Rather than deploying it to inetpub/DefaultWebSite it creates a new folder inside the this folder and deploy to it. (inetpub/DefaultWebSite/Web_deploy/). What I want is to deploy to the DefaultWebSite.




Aucun commentaire:

Enregistrer un commentaire