title: Jenkins “Publish over FTP plugin” returning “534 Policy requires SSL” for file upload
body: <p>I am trying to configure "<strong>Publish over FTP plugin</strong>" for uploading files to FTP site (SSL enabled) from Jenkins (v2.7.4).<br>
  The check box "<em>Use FTP over TLS</em>" is enabled in the FTP host configuration (under Manage Jenkins > Configure system) and "<em>Trusted Certificate</em>" added.</p>
  
  <p>"Test Configuration" is Successful, however file upload is failing with error : "<strong><em>534 Policy requires SSL</em></strong>"</p>
  
  <p>Find below the verbose output from console :</p>
  
  <pre><code>[EnvInject] - Loading node environment variables.
  Building in workspace /var/lib/jenkins/jenkins_home/workspace/TEST_FTP
  [TEST_FTP] $ /bin/sh -xe /opt/tomcat/temp/hudson6047550741121880978.sh
  + touch test.txt
  FTP: Connecting from host [localhost]
  FTP: Connecting with configuration [site1] ...
  220 Welcome to XXXXXXXXXXXXXX FTP Services
  AUTH TLS
  234 AUTH command ok. Expecting TLS Negotiation.
  FTP: Logging in, command printing disabled
  FTP: Logged in, command printing enabled
  CWD /site1/upload
  250 CWD command successful.
  TYPE I
  200 Type set to I.
  CWD /site1/upload
  250 CWD command successful.
  PASV
  227 Entering Passive Mode (XX,XX,XX,XX,XX,XX).
  STOR test.txt
  534 Policy requires SSL.
  FTP: Disconnecting configuration [site1] ...
  ERROR: Exception when publishing, exception message [Could not write file. Server message: [534 Policy requires SSL.
  ]]
  Build step 'Send build artifacts over FTP' changed build result to UNSTABLE
  [BFA] Scanning build for known causes...
  [BFA] No failure causes found
  [BFA] Done. 0s
  Finished: UNSTABLE
  </code></pre>
  
  <p>Are there any additional configurations required for this plugin to work? Couldn't find any specific instruction in the wiki page : <a href="https://plugins.jenkins.io/publish-over-ftp" rel="nofollow noreferrer">https://plugins.jenkins.io/publish-over-ftp</a></p>