I had tried to trigger my Jenkins project by using this URL in my commit hook
curl http://jenkins_server/job/job_name/build?token=TOKEN
and is not getting triggered. But when i type this URL in my web browser, it triggers my build.
When i tried in my command prompt, I got an error
Error 404
Status Co de: 404
Exception:
Stacktrace:(none)
Generated by Winstone Servlet Engine v0.9. 10 at Tue Apr 22 16:57:38 CEST 2014
Can anybody tell me what i am doing wrong??