There is the Generic Webhook Trigger plugin. Remains the problem how to decide which projects to build in a reliable way so that when a new dependency is added the job will trigger when that new dependency changes
You can create triggers dynamically from the pipeline ( which would become active once the pipeline has run once (at least with a scripted pipeline). So you in your ../project-xx jons you need to parse composer.json andfind your repos you want to trigger on.
Pseudo code, the details you have to fill in yourself:
@NonCPS
def parseRepos (content) {
def json = new JsonSlurper().parseText(content)
// Prepare a List to collect the tag names into
def tmp = json.keySet() as String[];
def result = new ArrayList<String>();
tmp.each () {
< add logic to get relevant projects here>
}
return result
}
stage (updatetriggers) {
// run after checkout
content = <read file>
res = parseRepos(content)
create triggers from result
properties([triggers : your create trigger defs ])
}