1

Need your help guys !
What i am trying to do:
Run a Jenkins job whenever I push my code in my local repo.
(Will lateron link with github but for now local repo)
Current situation:
I have Jenkins installed on my laptop.
I am working on eclipse and have my project shared with git hub.
Process I am doing:
I do some changes in the code and commit and push my code.

Problem:
I have a git hook setup in .git/hooks folder with a post-commit script which runs the below command

curl --user <jenkinsusername>:<password> http://localhost/job/...

The hook works if i push my code via cmdline and the job runs in jenkins.
But when I commit and push through eclipse the job doesn't run on Jenkins.

Need your help guys !!!!

Comments
Add Comment