Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins - Configure Jenkins to poll changes in SCM

Tags:

jenkins

I am working with jenkins and I would like to run the maven goals when there is a change in the svn repository. I've attached a picture with my current configuration.

I know that checking the repository every 5 min is crazy. I would like to run it only when there is a new change, but I could not find the way. Anyway, it is not checking the repository. What am I doing wrong??

Thanks in advanceenter image description here

like image 227
Blanca Hdez Avatar asked Apr 12 '12 09:04

Blanca Hdez


People also ask

What is poll SCM schedule in Jenkins?

Poll SCM periodically polls the SCM to check whether changes were made (i.e. new commits) and builds the project if new commits where pushed since the last build, whereas build periodically builds the project periodically even if nothing has changed.

What is a disadvantage of polling the SCM?

The next trigger we are going to try is the SCM polling. This is a good option when you want to periodically check for new commits to your repository. The downside to this option is that your commits are not being build instantly and that all commits since the last build will be build all at once.

What is the difference between poll SCM and Webhook?

Polling uses the pull model of communication where a system pulls information from another system, while webhooks use the push model by pushing information from a source application to a destination application. Polling requests are made by a client, while webhook requests are made by a server.

What does SCM do in Jenkins?

1 Answer. In Jenkins, SCM stands for "Source Code Management". This option instructs Jenkins to obtain your Pipeline from Source Control Management (SCM), which will be your locally cloned Git repository.


1 Answers

I believe best practice these days is H/5 * * * *, which means every 5 minutes with a hashing factor to avoid all jobs starting at EXACTLY the same time.

like image 130
Ashley Frieze Avatar answered Sep 24 '22 04:09

Ashley Frieze