In the "Build Triggers" part inside your job configuration, you should have
a "Periodically if not otherwise run" property.

However, if you're able to configure webhooks on your SCM side to notify
your master about new commits/branches and PR, it's a better approach :
https://www.cloudbees.com/blog/polling-must-die-triggering-jenkins-builds-git-hook


2017-03-03 16:12 GMT+01:00 Limor Shemesh <[email protected]>:

> Hi
> I upgraded Jenkins to 2.4 and started migrate jobs to pipeline jobs.
> I have created JenkinsFile and configure the job to search it in github
> repo.
> The job works great but I cannot find the way to add poll scm.
> I want that the job will run on every push of the repo (master branch).
> Please help.
> Thanks.
>
> --
> 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/60ee6556-433b-4718-9589-d6310fdf4a13%40googlegroups.
> com
> <https://groups.google.com/d/msgid/jenkinsci-users/60ee6556-433b-4718-9589-d6310fdf4a13%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAPO77c3YnAiVLqgqSmr3rbtcMT%2Be3YvSwaADvCj487UMnLtDuw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to