English 中文(简体)
Configuring Multiple Build Configurations from Shared VCS Root in TeamCity
原标题:

I have a single SVN repository containing multiple projects, e.g.

  • /molindo/trunk/foo
  • /molindo/trunk/bar
  • /molindo/trunk/baz

Currently, I ve configured 3 projects, all using the shared VCS root /molindo.

By default, every commit would trigger build of all 3 projects (although trunk/foo doesn t care about changes in trunk/bar or trunk/baz). As I ve seen, it s possible to configure VCS triggers (e.g. +:/trunk/foo/** for project foo). While this works for build triggering, it still shows pending changes for other projects.

So what are my options now. I could think of

  1. accept unrelated changes shown as pending on UI
  2. go back and create VCS roots for each project

Both options are suboptimal. The first because it s ugly, the second because it s cumbersome. Is there another option I don t know of? Or is there another (preferred) to build multiple projects from a shared SVN repository?

最佳回答

It s possible using "Checkout Rules" on a single VCS root:

  • "+:trunk/foo" for foo
  • "+:trunk/bar" for bar
  • "+:trunk/baz" for baz
问题回答

Please, try to use the following VCS Trigger rules

VCS Trigger rules for project "foo":

+:/trunk/foo/**   
-:/trunk/bar/** 
-:/trunk/baz/** 

VCS Trigger rules for project "bar":

+:/trunk/bar/** 
-:/trunk/foo/** 
-:/trunk/baz/** 

VCS Trigger rules for project "baz":

+:/trunk/baz/** 
-:/trunk/foo/** 
-:/trunk/bar/** 




相关问题
Best practices for Subversion and Visual Studio projects

I ve recently started working on various C# projects in Visual Studio as part of a plan for a large scale system that will be used to replace our current system that s built from a cobbling-together ...

Changing username in SVN+SSH URI on the fly in working copy

I am using SVN+SSH to check out a working copy of repository from an SVN server on which all developers are members of a developer group and have full read/write permissions on the repository ...

ASP.NET MVC: How should it work with subversion?

So, I have an asp.net mvc app that is being worked on by multiple developers in differing capacities. This is our first time working on a mvc app and my first time working with .NET. Our app does not ...

How to search for file in subversion server?

Is there a way to search for a file in a subversion repository? Something similar to Unix find command, with which I can find the location of a file in a repository. I know there is svn list, but ...

热门标签