title: Copy files from Bitbucket via Jenkins to a production server
body: <p>I have got my code files in bitbucket and have configured a jenkins build job to run where there is a change in the bitbucket repository. At the end of which it has to copy the files from the repo to a directory located at a production server from where the application is running.</p>
  
  <p>Is there a away to copy the files from repo to a server using a script inputed to jenkins?</p>