Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a filezilla server runnning on a remote windows 7 machine. I have a running jenkins master with a slave installed on debian 7.

If I ssh to the debian7 slave and do a ftp/put to the filezilla server I can upload a test.txt file just fine:

$ ftp myfileZillaFtp 21
Connected to myfileZillaFtp.
220-FileZilla Server version 0.9.41 beta
220-written by Tim Kosse (
220 Please visit
Name (myfileZillaFtp:jenkins): admin
331 Password required for admin
230 Logged on
Remote system type is UNIX.
ftp> cd test
250 CWD successful. "/test" is current directory.
ftp> put test.txt
local: test.txt remote: test.txt
200 Port command successful
150 Opening data channel for file transfer.
226 Transfer OK
6364 bytes sent in 0.00 secs (24959.2 kB/s)

But if I run the same step in a Jenkins freestyle job where I have added a FTP publish step based on the instruction here:

I get:

FTP: Connecting from host [debian7-slave]
FTP: Connecting with configuration [myfileZillaFtp] ...
220-FileZilla Server version 0.9.41 beta
220-written by Tim Kosse (
220 Please visit
FTP: Logging in, command printing disabled
FTP: Logged in, command printing enabled
CWD test
250 CWD successful. "/test" is current directory.
FTP: Remote root is not absolute, getting absolute directory from PWD
257 "/test" is current directory.
200 Type set to I
CWD /test
250 CWD successful. "/test" is current directory.
227 Entering Passive Mode (172,22,80,8,192,46)
FTP: Disconnecting configuration [myfileZillaFtp] ...
ERROR: Exception when publishing, exception message [Connection timed out]
Build step 'Send files over FTP' changed build result to UNSTABLE
Finished: UNSTABLE

Why does the ftp upload fail when running it through jenkins?


Most likely a bug in:

It works with this plugin:

Any suggestions are still welcome though.

share|improve this question

I experienced the same issue. I was able to get the transfer working by configuring the plugin to "Use active data mode". Also make sure you allow connections on port 21 from your Jenkins server.

share|improve this answer

First, we can login the ftp server with lftp command, it`s better the ftp command.

Now, we can ...

  1. Installing the Publish Over FTP Plugin at Jenkins.
  2. Setting ftp server account at Manager Jenkins.
  3. Setting push files at Job Configure.
  4. Build Now.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.