Hudson Shellscript for exporting Sourcecode from SVN repository into production folder

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?

Answer

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

Andrew

Attribution
Source : Link , Question Author : paskster , Answer Author : Andrew M.

Leave a Comment