title: Running FTP through Jenkins on windows server 2012
body: <p>I have installed Jenkins in our server successfully, and we can run configure and run jobs.</p>
  
  <p>I want to run a Windows Batch Command on a Jenkins job, that should download some files through FTP. Initially I had some issues with FTP as I was able to connect to the server, but couldn't download files or list them, as FTP was unable to establish a data channel because of the server's firewall configuration.</p>
  
  <p>I was able to fix this issue, opening ports to the FTP executable, and I was finally able to download the files from command line.</p>
  
  <p>Now I want to make the same operation I'm running on command line, but in a Jenkins job.</p>
  
  <p>The problem is that once I try to make a wget or ls, the job stalls and nothing happens. <strong>This behavior is similar to what I experienced in command line before opening ports</strong>, but I can't tell if its the same issue as Jenkins is not giving any feedback (on command line I could see the line "150 File status okay; about to open data connection.", Jenkin's console is only displaying the commands sent with FTP, but not the FTP response).</p>
  
  <p>I have tried applying the same firewall configuration as the one applied to the FTP executable, to the Jenkins executable and service. No go.</p>
  
  <p>I also changed the user that launches the Jenkins service, so it is launched by an administrator account. But it's just not working.</p>
  
  <p>Anyone has any idea of whats going on?</p>