Re: Unable to select Poll SCM checkbox ...

12 views
Skip to first unread message
Message has been deleted

Eric Tan

unread,
Sep 28, 2017, 1:30:56 AM9/28/17
to Jenkins Users

Hi,

Using Jenkins 2.79.

Logged in as admin and navigate to Jenkins > MyJob > master (branch).

Trying to enable the "Poll SCM" checkbox but there is only view only mode under View Configuration. 

How do I go about to enable edit mode to select "Poll SCM" checkbox?

I understand that the older versions have the "Poll SCM" checkbox under Jenkins > MyJob > Configure, but it is no longer there in version 2.79.

Thanks,
Eric

Stephen Connolly

unread,
Sep 28, 2017, 6:00:42 AM9/28/17
to jenkins...@googlegroups.com
If this is a multibranch project (smells like it) you do not configure polling for each branch. The single indexing of the parent multibranch provides the same as polling *while* simultaneously reducing the load on the SCM Server (one scan vs N polling)

--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/96245760-1987-4e4b-9c1f-744a023207f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sent from my phone

Eric Tan

unread,
Sep 28, 2017, 6:19:06 AM9/28/17
to Jenkins Users
Stephen,

Thanks for the reply. 
Yes, it is a multibranch project.  
I was trying to use Git hook (eg. post-commit) to notify Jenkins to do a build and this hook requires the "Poll SCM".

curl http://localhost:8080/git/notifyCommit?url=...

I assume this approach will not work. Will use the freestyle project instead.

Stephen Connolly

unread,
Sep 28, 2017, 7:37:14 AM9/28/17
to jenkins...@googlegroups.com
You just may need to use a different hook.

Multibranch listens for the hooks.

If you used Git as the SCMSource then that hook is exactly the one to use as it sends the events to the SCM API: https://github.com/jenkinsci/git-plugin/blob/master/src/main/java/hudson/plugins/git/GitStatus.java#L159-L162

If you used GitHub as the SCMSource then there is a special github hook that does what you want. 

To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5d874b28-8f26-4639-916d-a0873e50cdb1%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages