On Wed, Jan 08, 2014 at 11:49:23PM -0800, Stefan Bauer wrote: > Hello Marius, > > I want to use the second method, because efficiency is really important to > my project. > > I tried this configuration: > > *Jenkins GitHub Plugin (Version 1.8):* > Configure System/ > GitHub User Login: mustermann > GitHub User Password: my_oauth_token > GitHub Web Hook: Manually manage hook URLs > > *GitHub Web Hook:* > Spoon-Knife(its my test repository)/Settings/Service Hooks/WebHook URLs/ > URL: http://jenkins-mustermann:8080/github-webhook/
That URL cannot be accessed outside of your LAN. GitHub's servers most likely are outside your local LAN. > for this: "make sure the GitHub plugin endpoint of your local Jenkins is > accessible from the internet without authentication" For this I thought I > must use the following plugin-> Um, no, this part is where you need to have a public domain pointing to an external IP address, and appropriate firewall configuration (or, better, a reverse proxy). > *Jenkins GitHub Oauth Plugin (Version 0.14):* > Profile/Applications/Developer applications/ > Homepage URL: http://jenkins-mustermann:8080/ > Authorization callback URL: > http://jenkins-mustermann:8080/securityRealm/finishLogin > Application description: OAuth Mustermann > > *CSRF:* disabled > > *My Result on http://jenkins-mustermann:8080/github-webhook/? after "Test > Hook" on GitHub* These two things are unrelated. If you want to use "Test Hook" on GitHub, first enable some logging on the Jenkins side, and then check the logs after. If you want to test locally, well, you did. > Status Code: 500 > Exception: java.lang.IllegalArgumentException: Not intended to be browsed > interactively (must specify payload parameter) Yes, this is expected. (Stupid, IMHO, but expected. If I had enough spare time and energy, I'd submit a patch to the plugin to make this page show something meaningful when browsed interactively, perhaps show whether/when it was last accessed as a webhook.) > Did I do something wrong or did I miss some settings? The externally-accessible webhook URL bit, see above. Marius Gedminas -- (ಠಿ_ಠಿ)
signature.asc
Description: Digital signature
