Umbraco Deployment with TeamCity

First post on Stack, so please be careful!

We simply enter continuous integration with TeamCity. We created a TeamCity project that looks like this:

  • Build Solution (creates a complete solution) -.Sln file
    • Debugging for the Dev server (builds .csproj in the debug configuration and deploys to test the server using MSDeploy)
    • Release to Production (creates .csproj in the Release configuration and deploys to the production server using MSDeploy)

In our Umbraco Visual Studio project (which is a web application and not a standard type of website project), we have the umbraco_client and umbraco folders excluded from the project, primarily because they are already compiled and do not need to be recompiled in our process . However, both folders are included in the SVN repo.

The problem we are facing is that since these two folders are excluded from the Visual Studio project, TeamCity does not deploy them.

So my question boils down to "how do you include folders in the TeamCity assembly, where are the folders located in SVN but excluded from the Visual Studio project?"

Any pointers would be really appreciated.

thanks

dotdev

+4
source share
3 answers

TeamCity umbraco. , dev:

/p:Configuration=Debug
/p:DeployOnBuild=True
/p:DeployTarget=MSDeployPublish
/p:MsDeployServiceUrl=OurDevServer/msdeployagentservice
/p:AllowUntrustedCertificate=True
/p:MSDeployPublishMethod=RemoteAgent
/p:CreatePackageOnPublish=True
/p:DeployIisAppPath=umbraco_site
/p:IgnoreDeployManagedRuntimeVersion=True
/p:FilesToIncludeForPublish=AllFilesInProjectFolder
/p:SkipExtraFilesOnServer=True
/p:ExcludeFoldersFromDeployment="media;App_Data\Logs;App_Data\preview"
/p:IncludeSetAclProviderOnDestination=False
/p:AuthType=NTML /p:UserName=

, ,

/p:FilesToIncludeForPublish=AllFilesInProjectFolder

"AllFilesInProject". FilesToIncludeForPublish ExcludeFoldersFromDeployment , TeamCity

+2

, : http://blog.iqit.dk/2013/11/using-package-restore-in-umbraco-projects

nuget, , , zip web pi Umbraco , , msbuild, - .csproj . , Umbraco Umbraco_client - Svn repo , .

UmbracoCms nuget, msdeploy, msdeploy. nuget , , Umbraco.

, .

+1

TeamCity Troy Hunt, "You Deploying It Wrong", Visual Studio TeamCity. http://www.troyhunt.com/2010/11/you-deploying-it-wrong-teamcity.html

umbraco umbraco_client SVN; Umbraco, , Umbraco , , Umbraco, Umbraco, -. , umbraco_client , .., . , . , TeamCity, .

, ; " ", .

, TeamCity Umbraco. - "" Visual Studio (sln), , sln , ( " " ); - "MSBuild", csproj. ( , , , ), Visual Studio DOS.

These two build steps must be able to deploy to the IIS website on the staging server; and if the correct ports are open on your real or UAT server, you can add the third build step and deploy it (if the first two build steps work correctly).

0
source

All Articles