Recommended way to trigger downstream builds

I would like to know what the recommended way to trigger downstream builds is?

Scenario

Components:
A <- B <- C

B depends on A and C depends on B

Source control
$
¦ --A
¦ --B
¦ --C

A Configuration
Checkout rules: +:/A
VCS Trigger: +:/A/**

B Configuration
Checkout rules: +:/B
VCS Trigger: +:/B/**
Snapshot dependency on A
Artifact dependency on A

C Configuration
Checkout rules: +:/C
VCS Trigger: +:/C/**
Snapshot dependency on B
Artifact dependency on B


Desired behaviour
If I check in an upstream component, it should build all downstream components.

I have been able to create this behaviour using finish build triggers, is this the best solution?


Regards,

Ed.

1 comment
Comment actions Permalink

Hi Edward.

This is a bit tricky, but the requested build chain can be set by adding VCS trigger in C configuration with enabled Trigger on changes in snapshot dependencies option.

Build Dependencies Setup article contains more detailed explanation of popular use cases.

0

Please sign in to leave a comment.