We use Jenkins (1.614) and have Git as version control tool. The Git plugin 
version is 2.3.5. I am trying to trigger build only after every check-in 
since continuously polling is too expensive. I tried the following method 
described in various links but it’s not working:

1. Enabled ‘Poll SCM’ and assigned a dummy value. I also tried without 
assigning any value.

2. Added following line in post-receive hook:
curl 
http://jenkins_url:9099/jenkins/git/notifyCommit?url=ssh://gitolite@git_server/TestRepo

3. Now if I commit some changes, I get the following message during push:

$ git push origin release-test
Counting objects: 20, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 308 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Commit ID: 3a9cddadasd
remote: Returning result 0
remote:   % Total    % Received % Xferd  Average Speed   Time    Time     
Time  Current
remote:                                  Dload  Upload   Total   Spent   
 Left  Speed
remote: 124   124  124   124    0     0     30      0  0:00:04  0:00:04 
--:--:--   497
remote: Scheduled polling of Poll_Job
remote: No Git consumers using SCM API plugin for: 
ssh://gitolite@git_server/TestRepo

4. When I see the Git Polling Log, I notice the following:

Started on Jun 10, 2015 6:42:04 PM
No existing build. Scheduling a new one.
Done. Took 0 ms
Changes found

5. I do see the build # getting incremented after every such poll for few 
seconds but 'Build History' remains empty as shown in attachment. No steps 
that are part of the build are executed.


Any inputs why the build is not getting triggered as expected?


-- 
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/d7f0a6f1-e820-479d-9ece-f396c68c62aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to