Editing Subversion post-commit script to enable automated Hudson builds

Posted by Wachgellen on Stack Overflow See other posts from Stack Overflow or by Wachgellen
Published on 2010-05-21T09:58:33Z Indexed on 2010/05/21 10:00 UTC
Read the original article Hit count: 281

Filed under:
|
|
|
|

Hey guys, I'm not so good with Linux, but I need to modify the post-commit file of my Subversion repository to get Hudson to build automatically on commits.

This page here tells me to do this:

REPOS="$1"
REV="$2"
UUID=`svnlook uuid $REPOS`
/usr/bin/wget \
  --header "Content-Type:text/plain;charset=UTF-8" \
  --post-data "`svnlook changed --revision $REV $REPOS`" \
  --output-document "-" \
  http://server/hudson/subversion/${UUID}/notifyCommit?rev=$REV

The part that I don't know is the address URL given at the bottom of that code snippet. I know the address of my Hudson server, but the /subversion part has me baffled, because on my system that doesn't refer to anything. My Subversion repository belongs somewhere else on the server, not inside Hudson. Can anyone tell me what I'm supposed to put as the URL (an example would help greatly)?

© Stack Overflow or respective owner

Related posts about hudson

Related posts about post-commit