Run Jenkins build when git commit is done
<p>I know that this question is posted in different topic.But my case is a little bit different.</p>

<p>I want to trigger my test goal when a commit is detected by Jenkins. Most tutorials in the internet show how to do this using WebHook.</p>

<p>In my case I have two problems :</p>

<p>1) I did not find the option "Trigger build when a commit is detected"</p>

<p><a href="https://i.stack.imgur.com/nzvA2.png" rel="noreferrer"><img src="https://i.stack.imgur.com/nzvA2.png" alt="enter image description here"></a></p>

<p>2) All tutorials speak about configuring webhook, from Git URL.in my case, my git repository is local and I did not have access to the web interface. So how to do the same thing manually ?</p>

<p>Thank ou in advance</p>

<p><strong>Configuration :</strong></p>

<ul>
<li>Jenkins Server 1.651.1</li>
<li>Git Plugin 2.4.4, </li>
</ul>