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

Author Message
[View user's profile]

Joined: 2012-10-22
Posts: 1
Location: aduric

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://" "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?
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27106
Location: Prague, Czechia
Please attach a full log file showing the problem.

You can post new topics in this forum


What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License