Hello,
Has anyone tried using "job-fan-in-plugin" together with a Multibranch pipeline?
My setup goes something like this. It consists of 3 upstream projects, A, B, and C and 1 downstream project, D.
== UPSTREAM
A has 2 branches:
- FEATURE_A1
- FEATURE_A2
B has 2 branches:
- FEATURE_B1
- FEATURE_B2
C has only 1 branch:
- FEATURE_C1
== DOWNSTREAM
D has only 1 branch:
- MASTER
This is a snippet from my Jenkinsfile (D):
properties([
gitLabConnection('...'),
pipelineTriggers([
[
$class: 'FanInReverseBuildTrigger',
threshold: hudson.model.Result.SUCCESS,
upstreamProjects: 'XXX/A/FEATURE_A2, XXX/B/FEATURE_B2, XXX/C/FEATURE_C1',
watchUpstreamRecursively: true
]]
)])
I am trying to figure out why D begins building whenever either A or B finishes successfully -- I was expecting that if A and B was running concurrently, D would wait for both of them to finish first.
I realize that the documentation doesn't directly specify that it supports multibranch (was just trying my luck when I used XXX/JOB/FEATURE instead of just XXX/JOB.)
Thank you for taking the time to read this.
Kind regards.