This Question is Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
4 Replies Last post: Feb 12, 2013 6:13 PM by Dinesh Hirani  
Dinesh Hirani Newbie 11 posts since
Jan 24, 2013
Currently Being Moderated

Jan 25, 2013 1:58 PM

Dependency Help

Hello Everyone,

 

I want to know how I can trigger projects base on their dependencies.

 

Example

 

Project 1 : Core

Project 2: SalesGenerator

Project 3: PurchaseGenerator

 

Now Project 2 and Project 3 references common binaries from Project 1 so if Project 1 is built we need Project 2 and Project 3 rebuilt, however we don't want Project 2 to for Project 1 to be rebuilt which was the Snapshot Dependency is doing.

 

How is this possible to do?

 

Regards,

 

Dinesh

Mitchell Potter Newbie 14 posts since
Nov 21, 2011
Currently Being Moderated
Jan 29, 2013 2:44 AM in response to: Dinesh Hirani
Re: Dependency Help

I think I understand what you're asking. If you setup snapshot dependencies in Project 2 and Project 3 over to Project 1 then if Project 2 or Project 3 (or both) are triggered then Project 1 is also triggered. But if something is not core you don't want to build Project 1. This is simple enough if you setup the VCS roots correctly to exclude any non-core areas from Project 1 and you have the correct options selected on your snapshot dependencies. To do this you should edit your snapshot dependencies and select the following options:

Do not run new build if there is a suitable one
Only use successful builds from suitable ones

More Like This

  • Retrieving data ...