Pergunta

I have one special requirements setting up a build definition in TFS 2012. I have a big solution with 26 depending projects. Lets assume we call these project A to Z. Lets assume the build ordering is first to build A, then to build B, because B depends on A, then to build C, because it depends on A and B an so on ...

A

B <- A

C <- A,B

..

Z <- A,B,C,D,...,Y

My plan is to have 26 different build definitions in order to setup continous integration. Then a build should be started just in case a related project's sourcecode has changed.

For instance if I change project C, I do not want that A and B are build before. But that's not possible, because the build definiton of C needs a workspace setup with A, B and C, otherwise C won't compile.

My question is now: How can I build just those project with CI which actually has changed?

Foi útil?

Solução

Try going into the build definition, Process tab. Under Basic, change Clean Workspace to None. This will setup incremental builds. This is similar to Build in visual studio vs Rebuild in visual studio. It will only rebuild the things that have changed.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top