|
|
|
|
|
|
|
Re: Git plugin push notification [message #1232149 is a reply to message #1061745] |
Thu, 16 January 2014 10:06 |
Damian Rzeszot Messages: 6 Registered: January 2014 |
Junior Member |
|
|
I'm using git plugin 2.2.5 and it need auth
$ curl http:/ /aaa/git/notifyCommit?url=https:/ /bbb/d.rzeszot/test-git-pull.git -v
[...]
> GET /git/notifyCommit?url=https:/ /bbb/d.rzeszot/test-git-pull.git HTTP/1.1
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: aaa
> Accept: */*
>
< HTTP/1.1 403 Forbidden
< Date: Thu, 16 Jan 2014 14:32:25 GMT
< Server: Apache/2.2.20 (Ubuntu)
< Set-Cookie: JSESSIONID=A0D6EB97F3A9BBBB11111D4E3A47E3; Path=/
< Vary: Accept-Encoding
< Content-Length: 563
< Content-Type: text/html;charset=UTF-8
<html><head><meta http-equiv='refresh' content='1;url=/login?from=%2Fgit%2FnotifyCommit'/><script>window.location.replace('/login?from=%2Fgit%2FnotifyCommit');</script></head><body style='background-color:white; color:white;'>Authentication required</body></html> d
But with auth everything is ok (curl with --user "user:pass").
Perhaps this is the problem:
1) https: //git.eclipse.org/c/hudson/org.eclipse.hudson.core.git/tree/hudson-core/src/main/java/hudson/model/Hudson.java#n3751
2) UnprotectedRootAction => https: //github.com/hudson3-plugins/git-plugin/blob/master/src/main/java/hudson/plugins/git/GitStatus.java#L37
[Updated on: Thu, 16 January 2014 14:52] Report message to a moderator
|
|
|
|
Re: Git plugin push notification [message #1232380 is a reply to message #1232301] |
Thu, 16 January 2014 20:24 |
Winston Prakash Messages: 534 Registered: August 2011 Location: Fremont, CA USA |
Senior Member |
|
|
Hmm.. I just tested. It does work for me, even with security enabled.
One issue, I see was even though I specified a specific git URL,
the polling happens on all jobs for which SCM polling is specified.
This needs a fix
wjprakash@seaview:~$ curl http://ci.hudson-ci.org/git/notifyCommit?url=https://github.com/wjprakash/hudson-test.git
Scheduled polling of core.hudson_core
Scheduled polling of core.stapler_core
Scheduled polling of core.test-harness_core
Scheduled polling of plugins.birt-chart-plugin_hr
Scheduled polling of plugins.clover-plugin_hr
Scheduled polling of plugins.cobertura-plugin_hr
Scheduled polling of plugins.collabnet-plugin_hr
Scheduled polling of plugins.console-column-plugin_hr
Scheduled polling of plugins.copyartifact-plugin_hr
Scheduled polling of plugins.crowd2-plugin_hr
Scheduled polling of plugins.cvs-plugin_hr
Scheduled polling of plugins.dashboard-view-plugin_hr
Scheduled polling of plugins.deploy-plugin_hr
Scheduled polling of plugins.disk-usage-plugin_hr
Scheduled polling of plugins.extreme-feedback-panel-plugin_hr
Scheduled polling of plugins.git-plugin_hr
Scheduled polling of plugins.groovy-support-plugin_hr
Scheduled polling of plugins.gwt-plugin_hr
Scheduled polling of plugins.jaxb-plugin_hr
Scheduled polling of plugins.jcaptcha-plugin_hr
Scheduled polling of plugins.jdepend-plugin_hr
Scheduled polling of plugins.jfreechart-plugin_hr
Scheduled polling of plugins.jna-native-plugin_hr
Scheduled polling of plugins.legacy-maven-plugin_hr
Scheduled polling of plugins.math-lib
Scheduled polling of plugins.maven-hpi-plugin_core
Scheduled polling of plugins.maven3-plugin_hr
Scheduled polling of plugins.multiline-tabbar-plugin_hr
Scheduled polling of plugins.plot-plugin_hr
Scheduled polling of plugins.rest-plugin_hr
Scheduled polling of plugins.ssh-slaves-plugin_hr
Scheduled polling of plugins.Subversion Plugin
Scheduled polling of plugins.windows-azure-storage-plugin-hr
Scheduled polling of plugins.windows-slaves-plugin_hr
Scheduled polling of Test.simple-test
Winston Prakash
Eclipse Hudson team
[Updated on: Thu, 16 January 2014 20:25] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04491 seconds