Snapshot dependency behavior and VCS triggers

If I have 2 builds (A and B)  and build B depends on A.   I set up B to have a snapshot dependency on A with do not run if suitable.  Then on the VCS trigger for A, I select "Trigger a build on changes in snapshot dependencies". does that mean build B will be run after A if there are changes to A?  And if so, what happens if build A fails, will build B still run?   I think it should not.

0
1 comment

Hi,

If you are setting up a dependency chain, you should put the VCS Trigger at the end of it (assuming you want to build both builds every time the VCS trigger is activated). The "trigger a build on changes in snapshot dependencies means that, if A has different VCS Roots than B (because they are different or because B doesn't have one), changes in the VCS Roots of A will also trigger a build of B (which in turn will trigger its dependency on A).

What happens with B depending on the result of A depends on your dependency configuration, you can decide what should happen with B. In your current setup, B will never run after A on VCS Triggers. If you change the trigger to B, then yes, it will always be triggered, but it might be marked as "fail to start" and not complete its run if you have configured it like that.

0

Please sign in to leave a comment.