I have a Visual Studio 2013 solution with the full source code of Orchard. When I use "Publish ..." in the "Orchard.Web" project in Visual Studio, it correctly publishes the site in the "File System" folder that I configured in the .PubXml file that I used.
However, if I create this site using Jenkins, the files will not be copied to the destination. I created a separate PubXml file that is used by Jenkins.
In my Jenkins work, I have two build steps. The first uses the src\Orchard.sln with the /p:Configuration=Release command line argument. This runs correctly and creates the whole solution.
The second build step immediately uses the build file src\Orchard.Web\Orchard.Web.csproj and these command line arguments:
- / p: DeployOnBuild = true
- / p: PublishProfile = "D: \ workspace \ Site \ Trunk \ SRC \ Orchard.Web \ Properties \ PublishProfiles \ Jenkins.pubxml"
- /p:VisualStudioVersion=12.0
- / p: Configuration = Release
- / r: Platform = AnyCPU
- / v: minimal
- / nologo
- / p: WarningLevel = 1
With this, assembly and deployment seem to work, but it is not. Here are a few lines from the output of the assembly:
Copying all files to temporary location below for package/publish: obj\Release\Package\PackageTmp. Auto ConnectionString Transformed obj\Release\Package\PackageTmp\Shapes\Scripts\Web.config into obj\Release\CSAutoParameterize\transformed\Shapes\Scripts\Web.config. (... about 200 more "Auto ConnectionString..." lines...) Finished: SUCCESS
No, where does it actually copy the files to the destination specified in the PUBXML file.
On the contrary, in Visual Studio, the output looks similar, but it only converts 4 configuration files and includes many lines of "Publish folder x":
(...) Transformed Modules\SH.GoogleAnalytics\web.config using .... Copying all files to temporary location below for package/publish: obj\Release\Package\PackageTmp. Publishing folder /... Publishing folder bin... (etc.)
(I installed the latest version of the Windows Azure SDK for .NET on the Jenkins server.)