Hi all,
         I've been using Jenkins for about 2 years but I've never used 
multi branch pipeline. I'm starting using them now.

There's a behavior I don't really understand, I tried to look for any 
explanation or documentation about it but I couldn't find anything. I do 
really hope someone could explain me what's happening and why!

My setup is made of a master Jenkins on windows and an agent node on macOS.

I've just configured a new Multibranch pipeline job to scan periodically a 
given repo, actually just for testing purpose I used an "aggressive" 1 min 
polling interval.
Then I added a Jenkinsfile to a dedicated branch of this given repo just to 
test the pipeline.

The first time the multi job pipeline was triggered it started scanning for 
branches, it found the only branch containing a Jenkinsfile and it created 
a dedicated job for that branch.
As well as every one minute the multi branch pipeline job gets triggered 
and scan for branches as well and if it finds that the test branch has some 
changes (pushed files) it does start the job it created for this branch.

Everything as expected for now.

What I really DON'T UNDERSTAND and I would like not to happen is that every 
time the job created by the multi branch pipeline starts, it starts on the 
master node (windows), IT DOES START SCANNING BRANCHES even if this is not 
the multibranch pipeline job, after branch scanning it performs a light 
clone to get the Jenkinsfile of its branch, it does analyze and then it 
does run the branch on the macOS agent given the node label found into the 
Jenkinsfile.

What I don't understand and I would like not to happen is that it does 
perform a branches scanning even into the created job, the one created on 
the discovered branch having the Jenkinsfile. What's the reason for this 
behavior? Considering we have more than 3k branches and they are bound to 
grow (it's quite an old project), every time a build start I'm wasting time 
just to perform an unneeded branches scanning!!!!

Can anyone explain me please and possibly giving me a solution to disable 
this unneeded scanning?

Thanks in advance

Marco

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/b7857e6e-e160-45cd-8e58-53d7a31cd3d1n%40googlegroups.com.

Reply via email to