This is the first time I am using Jenkins and I have gone through several online articles but couldn’t find satisfactory answers. We have .Net project, and we are using private
I'll add a second answer for other like me who stumbled here but couldn't fix it with the steps above:
1) Make sure to remove the trailling .git
from your task SCM config
2) Make sure that you have set an ip/domain in Jenkins that can be reached by Github, since this is what will be used to create the hooks in your repos. This might be set to loopback by default if you are running in a VM for example
Results in this bad config in Github
3) Restart Jenkins with http://your-jenkins-address:port/restart