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.

Docs for this plugin can be found here: 
https://wiki.jenkins-ci.org/display/JENKINS/JobFanIn+Plugin
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.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/dcd15e8c-8a8c-4ed8-af5c-ae783a240a55%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to