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

4 comments
Comment actions Permalink

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
0
Comment actions Permalink

Hello Mitchell,

Thank you for the response, however the Project 1 (Core) that I'm trying to avoid building does not get checked out as part of Project 2 or 3 as I'm only referencing their DLLs.

Regards,

Dinesh

0
Comment actions Permalink

Hello Mitchell,

I've found what I was looking for in the 'Build Triggers' / Finish Build Trigger.

Thanks

0
Comment actions Permalink

See my last comment.

0

Please sign in to leave a comment.