Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-49518] Directory is not created anymore #65

Open
jira-importer opened this issue Feb 12, 2018 · 0 comments
Open

[JENKINS-49518] Directory is not created anymore #65

jira-importer opened this issue Feb 12, 2018 · 0 comments

Comments

@jira-importer
Copy link
Collaborator

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.


Originally reported by cdaller, imported from: Directory is not created anymore
  • status: Open
  • priority: Major
  • resolution: Unresolved
  • imported: 2022/01/10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant