Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does 'Poll SCM' Jenkins feature know the repository and branch over which polling?

I am configuring a legacy Jenkins which has installed the SCM Poll plugin with Git and Gerrit plugins. Due to something I cannot comprehend, even if I have no branch or specific project configured anywhere for my git server nor in my job, I can clearly see how my job is handling the correct repository (Git Polling Log works flawlessly) and other projects don't trigger it.

Is that configured in a very hidden place? Does it work executing git on the workspace without knowing context?

I cannot see any SCM configuration tab in my Jenkins or either Fast Remote Polling or other features Im seeing appointed to in Internet, but I am using pipeline scripts, so maybe that feature is disabled, or maybe my git/gerrit plugin is infering the context somehow.

In the same section "Build Trigger", for instance, I have the Gerrit Event option disabled, and if I select the checkbox, then it asks me for a repository url and usual stuff

like image 340
Whimusical Avatar asked Oct 29 '22 16:10

Whimusical


1 Answers

Please check the Pipeline. It has two type of definition: Pipeline script and Pipeline script from SCM. If the definition is Pipeline script from SCM, there has repo URL and branches to build.

And yes, it hasn’t SCM configuration tab, but you can find related things in Build Triggers tab of Poll SCM selection.

like image 114
Marina Liu Avatar answered Nov 14 '22 04:11

Marina Liu