jenkins - Unable to trigger build using 'Poll SCM' and Git notifyCommit option -


we use jenkins (1.614) , have git version control tool. git plugin version 2.3.5. trying trigger build only after every check-in since continuously polling expensive. tried following method described in various links it’s not working:

  1. enabled ‘poll scm’ , assigned dummy value. tried without assigning value.
  2. added following line in post-receive hook:

curl http://jenkins_url:9099/jenkins/git/notifycommit?url=ssh://gitolite@git_server/testrepo

  1. now if commit changes, following message during push:

$ git push origin release-test  counting objects: 20, done.  delta compression using 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

  1. when see git polling log, notice following:

started on jun 10, 2015 6:42:04 pm  no existing build. scheduling new one.  done. took 0 ms  changes found

i see build # getting incremented after every such poll few seconds 'build history' remains empty shown below. no steps part of build executed.

enter image description here

any inputs why build not getting triggered expected?

take @ build "git polling log", might indicate problem. had similar issue maven job trigger "poll scm" git, stopped triggering new builds. apparently cause was:

error: failed record scm polling ... undefined method `add' nil:nilclass @ jenkins::model::build.initialize(c:/jenkins/plugins/nodeofflinenotification/ ...

then noticed "node offline notification plugin" deprecated, uninstalled (and installed "mail watcher plugin" instead), , scm polling worked again.


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -