Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Hudson » svn post commit hook does not trigger any job
svn post commit hook does not trigger any job [message #941472] Fri, 12 October 2012 15:03
k z is currently offline k zFriend
Messages: 71
Registered: October 2012
Member
Hi,

Configuration:
Hudson:2.2.0 with SVN plugin 2.3.3
Hudson:2.2.1 with SVN plugin 2.3.4
Hudson under Tomcat and Apache with SSL support
Hudson server under Ubuntu x64
Wget for windows
LDAP authentication & Role-Base strategy plugin

Im trying to configure SVN post commit hook. Unfortunatelly it does not work properly. For testing purposes i set up SVN server on my local machine (Windows) and installed wget for Windows. When i sent the wget request. Server reponse seems to be ok but nothing is happening. I can even see the log entry in appropriate hudson SVN log but no job is triggered.

Wget request:

wget --timeout 5 --tries 2 --auth-no-challenge --http-user=<LDAP_USER> --http-password=<LDAP_PASSWORD> --ca-certificate "<PATH_TO_CACERT_PEM_FILE>" --header "Content-Type:text/plain;charset=UTF-8" --post-data "test data" --output-document "c:\repo.log" "https://<MY_HUDSON_SERVER>/subversion/%UUID%/notifyCommit?rev=%REV%"


Wget output:

C:\Work\SVN\Local\local1-1.6\project1\hooks>post-commit.cmd

C:\Work\SVN\Local\local1-1.6\project1\hooks>echo off
SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
syswgetrc = C:\Program Files\GnuWin32/etc/wgetrc
--2012-10-12 16:36:43--  https://<MY_HUDSON_SERVER>/subversion/936c33f8-54ab-45e8-a6ad-066eb7e7c4d2/notifyCommit?rev=762
Translation <MY_HUDSON_SERVER>... 192.168.210.126
Connecting to <MY_HUDSON_SERVER>|192.168.210.126|:443... connected.
Send HTTP request, waiting for response...
  HTTP/1.1 200 OK
  Date: Fri, 12 Oct 2012 14:36:12 GMT
  Server: Apache/2.2.20 (Ubuntu)
  Set-Cookie: JSESSIONID=6D94552F6B431A84D18E41CF27DC3384; Path=/; Secure
  Content-Length: 0
  Keep-Alive: timeout=5, max=100
  Connection: Keep-Alive
  Content-Type: text/plain
Length: 0 [text/plain]
Written to: `c:/repo.log'

    [ <=>                                                                                                                                     ] 0           --.-K/s   w  0s

2012-10-12 16:36:44 (0,00 B/s) - written to`c:/repo.log' [0/0]

What is strange is Content-Length: 0 and entire response is 0, c:\repo.log is empty

Hudson log:

Oct 12, 2012 4:35:29 PM hudson.scm.SubversionSCM$DescriptorImpl$SVNAuthenticationProviderImpl fromProvider
FINE: local.requestClientAuthentication(svn.simple,https://<MY_SVN_REPO>/svn/ci_sandbox/test,<https://<MY_SVN_REPO>:443> Continuous Integration Sandbox)=>hudson.scm.SubversionSCM$DescriptorImpl$PasswordCredential@d8e9b31a


The event is noticed by Hudson server but the job is not triggered. I set up one job with 1 per year pooling on https://<MY_SVN_REPO>/svn/ci_sandbox/test URL

Any idea?

[Updated on: Fri, 12 October 2012 15:04]

Report message to a moderator

Previous Topic:man page for plugin classes
Next Topic:Log files for multi-configuration/matrix projects?
Goto Forum:
  


Current Time: Wed Nov 26 08:22:04 GMT 2014

Powered by FUDForum. Page generated in 0.02855 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software