Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-49518

Directory is not created anymore

XMLWordPrintable

      After reinstallation of jenkins I ended up with version 1.13 of the publish-over-ftp plugin (not sure, which version I had before, probably 1.12). I did not change the jenkins config (ftp host) nor the jenkins tasks. 

      Behaviour before update: The remote directory was created on the ftp server

      Behaviour after: The remote directory is not created anymore and the file cannot be uploaded.

       

      Log of working jenkins task (before update of jenkins):

      FTP: Connecting from host [2ea2fa14881a]
      FTP: Connecting with configuration [ftp.xxx.at] ...
      220 connected to ftp.xxx.at...
      FTP: Logging in, command printing disabled
      FTP: Logged in, command printing enabled
      CWD /foo/bar/Upload
      250 CWD command successful.
      TYPE I
      200 Type set to I.
      CWD /foo/bar/Upload
      250 CWD command successful.
      CWD db_dump_2018-02-03_1056
      550
      MKD db_dump_2018-02-03_1056
      257 "db_dump_2018-02-03_1056" directory created.
      CWD db_dump_2018-02-03_1056
      250 CWD command successful.
      PASV
      227 Entering Passive Mode (85,124,186,100,198,35).
      STOR backup_latest.pgdump
      125 Data connection already open; Transfer starting.
      226 Transfer complete.
      FTP: Disconnecting configuration [ftp.xxx.at] ...
      FTP: Transferred 1 file(s)
      Finished: SUCCESS

      WIth the current plugin the log of the same jenkins task looks like:

      FTP: Connecting from host [0dfc1108da61]
      FTP: Connecting with configuration [ftp.xxx.at] ...
      220 connected to ftp.xxx.at...
      FTP: Logging in, command printing disabled
      FTP: Logged in, command printing enabled
      CWD /foo/bar/Upload
      250 CWD command successful.
      TYPE I
      200 Type set to I.
      CWD /foo/bar/Upload
      250 CWD command successful.
      CWD db_dump_2018-02-10_1056
      FTP: Disconnecting configuration [ftp.xxx.at] ...
      ERROR: Exception when publishing, exception message [Exception when changing to FTP directory [db_dump_2018-02-10_1056]]
      Build step 'Send build artifacts over FTP' changed build result to UNSTABLE

      What is missing is the

      MKD db_dump_2018-02-03_1056

      part now!

      My global ftp server config contains the base directory /foo/bar/Upload

      The jenkins ftp upload task has the remote directory set to "'db_dump_'yyyy-MM-dd_hhmm" with the "Remote directory is a date format" checked in Advanced config.

       

      Testing with manual ftp trying to find out if the server has changed its behaviour - "cd not_existing_directory" returned an error code 550, but did not close the ftp connection.

            Unassigned Unassigned
            cdaller Christof Dallermassl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: