|
From: Bob A. <Bob...@am...> - 2012-01-06 15:51:40
|
Don't you want a build of common to trigger a build of Project1 and Project2? If so, you can set up a ccnet trigger to do that. Use a project trigger on Project1 & Project2. They will both trigger on a successful build of Common. Now, if you have Project1 and Project2 in the same queue that will keep them from building at the same time. http://www.cruisecontrolnet.org/projects/ccnet/wiki/Project_Trigger Simple and no need to change and build scripts. BOb From: Chris Fouts [mailto:Chr...@ca...] Sent: Thursday, January 05, 2012 3:33 PM To: nan...@li... Subject: Re: [NAnt-users] How to setup two projects with a subset of common files? I'm implementing this idea. However, some questions. Won't this build CommonSW twice, once when Project1 is built and next when Project2 is built, in the case where I build both projects? I really want to just build CommonSW once in this case. Also if projects are in the same queue, does that imply a serial build or parallel build? -chris From: Philip Sayers [mailto:ph...@cd...] Sent: Thursday, January 05, 2012 1:36 PM To: Chris Fouts; nan...@li... Subject: RE: [NAnt-users] How to setup two projects with a subset of common files? Easiest way to get you want would be.. Create two nant files. File1: builds commonSW & Project1 File2: builds commonSW & Project2 Setup 2 ccnet projects, each one pointing at one of the nant files Put both projects in the same queue >I posted this in the ccnet-users Google group, but I thought I'd post this too hoping I'm not alone in using ccnet+nant environment, and not the first one to try this. >I use CC.NET v1.6.7981.1 and Nant v0.91. I trigger the builds via CC.NET but do the bulk of the work in Nant - no surprise here. >I want to independently build, force or continuous, two projects that share a subset of common files between them. All files are built with VS2008 using the devenv command line in Nant. Here's my structure >Common SW - used by both below >Project1 SW - needs Common SW to build first >Project2 SW - needs Common SW to build first >I want to be able to do the following. >Show both Project1 and Project2 on the ccnet web dashboard, and be able to Force either project. However, if one project is already building, doesn't matter which one, and the other project is triggered, it should wait for the first running project to finish. >Any pointers please? Thanks! >-chris ***This e-mail message is intended only for the above named recipient(s) and may contain information that is sensitive or proprietary. If you have received this message in error or are not the named recipient(s), please immediately notify the sender, delete this e-mail message without making a copy and do not disclose or relay this e-mail message to anyone.*** |