I'm trying to use Jenkins with GitHub Enterprise. However, I keep getting HTTP Response Code -1, and message 'null'.
For repository owner/name, I've tried my own account name, account name/repo name, and then repo name, however, it had the same message.
I added my token by pressing the add credentials button, and added my token to the secret text.
I also sent the request to requestbin, which allows to analysis my http request, and it uses headers to pass the token key. I've tried the same curl command, but it works for me.
Has anyone encountered this before? Thanks
These are my settings for Jenkins and GitHub:
It doesn't work, since Jenkins complains that it cannot connect to GitHub in the logs with http error code -1, and message null.