I have a Jenkins build server and a remote IIS server.
I would like my Jenkins server to build and deploy to the IIS using MSBuild and publish profile I created.
The publish profile is created from Visual Studio and it's working fine when publishing from VisualStudio.
I'm running the following command from the Jenkins Server:
msbuild myproject.csproj /p:DeployOnBuild=True /p:PublishProfile=CustomProfile /p:VisualStudioVersion=14.0 /p:AllowUntrustedCertificate=True
The build is success but the files are not published to the IIS and there is no error reported.
Can anyone help me understand what is the right MSBuild command that will also publish the new version to the IIS server.
Thanks
Best Answer
As stated on Microsoft's website:
Your command should include the password parameter:
Your password is found in
.publishsettings
References