Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have one dedicated server which has the whole Lamp-Stack, SVN and Hudson installed. I would like to create a freestyle Hudson job, that gets the latest sourcecode out of my SVN-repository and puts it into my /var/www/myWebApp Folder.

How does the shell script need to look like?

share|improve this question
For more answers on this question see the x-post on… – Peter Schuetze Nov 15 '10 at 20:47
up vote 0 down vote accepted

If you're not worried about history, this sounds fairly easy. Keep in mind, this is NOT specific to Hudson--this is just a single SVN command.

svn export https://path/to/svn/repo /var/www/myWebApp


share|improve this answer
Don't link your job to a repository, otherwise you would checkout the code to your working directory first. – Peter Schuetze Nov 15 '10 at 20:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.