# Monitor multiple SCMs for changes

**URL:** <https://community.jenkins.io/t/monitor-multiple-scms-for-changes/4948>\
**Category:** Using Jenkins\
**Created:** [December 14, 2022, 2:02pm UTC](https://community.jenkins.io/t/monitor-multiple-scms-for-changes/4948 "2022-12-14T14:02:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaredpitblado](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/jaredpitblado/32/2948_2.png) [@jaredpitblado](https://community.jenkins.io/u/jaredpitblado)\
**Post date:** [December 14, 2022, 2:02pm UTC](https://community.jenkins.io/t/monitor-multiple-scms-for-changes/4948/1 "2022-12-14T14:02:24Z")

</div>

Hi there, I am currently working on getting a pipeline running that can do the following:

If changes to A, build A, B, C, D, E, F, G  
if changes to B build B, D, E  
if changes to C build C, F, G

 ![diagram 2](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/4/4ec6cd32307690820416031f0380c4abb43380cb.png)

The idea being everything below a given repo is dependent on the one directly above. Is there a way I can do this in a single pipeline? I’ve tried playing around with the poll SCM build trigger but as far as I know, this only polls a single SCM. I have a bunch of dependent libraries that need to be built after a given change to their dependencies so I want to try to avoid having a pipeline for every combination of library.
