Only run dependent build on successful dependency and for change in VCS subtree

Consider the scenario where I have two builds, A and B that both use the same VCS root.

A

  • Builds from VCS /trunk

B

  • Builds from VCS /trunk/subtree
  • Uses a NuGet package that is produced by A to perform the build

I'd like to configure B to only build if:

  • Build A was successful
  • AND any files changed in /trunk/subtree or /trunk/othersubtree

Is this possible? (I'm also using Subversion if that is relevant)

David

0
1 comment

Hi David,

I might be missing something, if so, please don't hesitate to comment on it. Otherwise this would seem to comply with your requirements:
-Set up a VCS Trigger with a filter rule to /trunk on A, excluding /trunk/subtree
-Set up a VCS Trigger with a filter rule to /trunk/subtree on B
-Set up a Snapshot dependency in B to A, additionally to the Artifact dependency.

Excluding the subtree from A would still trigger a build there because B would trigger a build because of the dependency.

0

Please sign in to leave a comment.