title: Execute SVN Update in Jenkins - Copy a Folder to Web root Explicitly from SVN as a Build Step
body: <p>I'm new to Jenkins CI.I'm trying to get SVN update (myFolder) inside a job as build steps. I want to explicitly copy some files to web root as I can't have them inside my solution.</p>
  
  <p>Build Steps I need to perform.</p>
  
  <ol>
  <li>Build Solution  </li>
  <li>Publish   </li>
  <li>Copy <em>myFolder</em>  to web root </li>
  <li>Sync</li>
  </ol>
  
  <p>Up to Publish it works fine.Problem when trying to copy/update <em>myFolder</em> to web root.
  <em>MyFolder</em> is located out of the project solution folder as I cant have it inside solution Folder.</p>
  
  <p><strong>Note:</strong> This <em>myFolder</em> has serialized items/object that I need to Sync in the next step.It should be copied to web root in-order to sync.
  And this folder is committed to SVN.</p>
  
  <p>In my <em>local CMD</em> following batch file works fine but when I try in Jenkins <em>Execute Windows Batch Command</em> it stops at</p>
  
  <p><strong>-- Updating source from SVN</strong>
  <strong>-- Running update...</strong></p>
  
  <pre><code>@echo off
  
  cls
  echo     -- Initiating system instance variables...
  echo.    -- Setting the variables...
  
  :: Here you need to make some changes to suit your system.
  set SOURCE=C:\inetpub\wwwroot\Test\Website\App_Data\myFolder\
  set SVN=C:\Program Files\TortoiseSVN\bin
  
  :: Unless you want to modify the script, this is enough.
  
  echo. %SOURCE%
  echo. %SVN%
  echo. ++ Done setting variables.
  echo.
  echo    -- Updating source from SVN
  echo.   -- Running update...
  "%SVN%\TortoiseProc.exe" /command:update /path:"%SOURCE%" /closeonend:1
  echo. ++ Done.
  
  echo. -- Cleaning up...
  set SOURCE=
  set SVN=
  echo. ++ Done.
  </code></pre>
  
  <p>I have <em>Subversion Plugin</em> installed.Any solution for this problem.</p>
  
  <p>And Also I tried using below <em>Powershell Script</em>  </p>
  
  <pre><code>#Get checkout folder
  TortoiseProc.exe /command:"update" /path:"C:\inetpub\wwwroot\Test\Website\App_Data\myFolder\"
  </code></pre>
  
  <p>It works in my local Windows Powershell but not in Jenkins <em>Windows Powershell</em></p>