Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: WinSCP 5.x hangs when running batch script from Jenkins.

Please attach a full log file showing the problem.
aduric

WinSCP 5.x hangs when running batch script from Jenkins.

Hi,

I have a setup where I am running a WinSCP script from Jenkins deployment server. Basically I point Jenkins to a batch file that runs commands with the /command flag:

call "C:\Program Files (x86)\WinSCP4\WinSCP.exe" /log="C:\Program Files (x86)\WinSCP4\log-%1.txt" /command "option batch abort" "option confirm off" "open scp://user@host.com" "synchronize remote blah blah blah" "close" "exit"

This worked well with WinSCP 4.3.8 but when I updated to 5.1, Jenkins just hangs. I can run the script just fine logged in as the jenkins user on the actual server but cannot run it from the jenkins web interface. The session data is store in an .ini file and I did everything I was supposed to do according to the docs to run scripts. 4.3.8 works after all.

Has anyone else encountered something similar? Perhaps from a Hudson build machine?