svnhudsonsymlinksvn-checkout

Hudson doesn't checkout using symlinks when using SVN (Subversion)


The problem is that when Hudson checks out the files, it doesn't use symlinks. I've tried the svn13 and svn14 plug ins, but neither worked.


Solution

  • In linux, edit your /etc/init.d/hudson script file:

    Look for a line that looks like:

    $SU $HUDSON_USER --shell=/bin/bash -c "$DAEMON $DAEMON_ARGS -- $JAVA $JAVA_ARGS  -jar $HUDSON_WAR $HUDSON_ARGS" || return 2
    

    Change it to:

    $SU $HUDSON_USER --shell=/bin/bash -c "$DAEMON $DAEMON_ARGS -- $JAVA $JAVA_ARGS -Dsvnkit.symlinks=true -jar $HUDSON_WAR $HUDSON_ARGS" || return 2
    

    Save the file and type:

    sudo /etc/init.d/hudson stop
    sudo /etc/init.d/hudson start
    

    In summary, you're essentially looking to pass JAVA -Dsvnkit.symlinks=true so that symlinks are resolved to folders instead of a file.