How can I get SCP and ftp (from command line, not plugin) working in hudson

I am running a hudson CI server on a win32 machine. After the build completes successfully, I want the exe to be created for publication on a public website. The hudon plugins for SCP and ftp did not work the way I wanted (mainly because it selects some odd directories to host them), so I made my own script for the scp command line called by hudson.

For some reason, although the scp bat file freezes when run in a hudson environment. It works fine when I call it from the command line, although on the same machine.

Apparently, this also fails when starting from the task scheduler.

Can anyone think of a reason that this will not work from a hudson or scheduler environment?

pscp.exe -batch -q -pw mypassword ..\..\installers\Output\myfilename  domain.com@domain.com:domains/domain.com/html/downloads

(Note that "domain.com" replaces my domain name ...)

Again, when I call this bat file from the command line, it works fine.

Please note: the reason I call the bat file is because I replace the file name with the svn WCREV command - since hudson is dead brain and cannot make this replacement in scp or ftp plugins or in command line calls, This method should work but it freezes.

pscp is the ssh command-line tool associated with Putty .

, svn, svn rev , , . ( , - ). svn rev .

ftp scp hudson (), , , , , hudson ( - hudson - svn) - , - hudson.

-1
3

. , pscp ( PuTTY) , ( HKEY_CURRENT_USER). hostkey pscp ( , , - . , , .

, :

  • PuTTY. .
  • regedit.exe
  • HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\SshHostKeys
  • .reg ( SshHostKeys )
  • Hudson .reg

Hudson , PsExec MSDN .

, Hudson.

Edit

- . , Hudson , Services (services.msc) Hudson , " ".

, Windows reg. ( ), Windows PsExec , MSDN, Local System HKEY_CURRENT_USER.

+3

Quest PuTTY. PuTTY -auto_store_key_in_cache. .

. SuperUser.

+1

, , scp . , hudson , , .

This is hardly the best way to solve the problem, but it worked for me in the short term.

0
source

Source: https://habr.com/ru/post/1756241/


All Articles