如何将文件从SSH远程主机复制到Jenkins服务器 [英] How to copy file from SSH remote host to Jenkins Server
问题描述
我们将Jenkins服务器用于日常构建过程,并通过SSH在远程主机上执行一些bash脚本.该脚本在远程主机上生成html日志文件.
We are using Jenkins server for our daily build process and executes some bash scripts on remote hosts over SSH. This scripts are generating html log files on remote hosts.
我们正在使用复制到从属插件将文件复制到从属计算机上,然后将通过ssh 插件发布到在构建过程中管理SSH会话.
We are using Copy to slave plugin to copy files on slave machines and Publish over ssh plugin to manage SSH sessions in build process.
现在的问题是,我们要将一些文件(脚本的日志文件)从远程ssh主机复制到Jenkins服务器. 对于相同的服务器,这将是可能的更好的选择(如果有插件,则更好).
Now the question is, We want to copy some files (log files of Scripts) from remote ssh host to Jenkins Server. Which will be possible and better option for the same (plugin will be better if any).
sshpass是一个选项,但是正在寻找任何插件或更好的方法来完成这项工作.
sshpass is an option, but looking for any plugin or better way to do the job.