-1

I have integrated Jenkins with GitHub. Here i have configured Jenkins should trigger the build when user raise the pull request. So i set the web-hook (option - pull request) URL in GitHub web-hook. Yes, its triggering the build when user raise the pull request. But its also triggering the build when user git push the code to local repository by following command "git push origin branch name". I don't know where i'm wrong. I don't want Jenkins trigger the build for each commit. Who can solve my issue? I checked with web-hook URL. Its fine. I selected --> pull request option only. But i don't know why Jenkins trigger the build for each commit. Please help me to solve my issue.

  • If you push to a branch that is part of an open pull request, that will update the pull request. Updating a pull request will trigger a build of your job. This may explain why you are seeing this behavior. – jayhendren Feb 18 at 21:13
  • 3
    I hope you have gone through *Which events would you like to trigger this webhook? and chosen Let me select individual events. in the web hook settings and chosen the right option. Would like to see what exactly you have selected – Tara Prasad Gurung Feb 24 at 10:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.