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.<
use sshpass command to send file in
Build Environment -> Execute Shell script on remote host using ssh -> Post build script
sample command :
sshpass -p "password" scp path/of/file :/path/of/file
This will skip password prompt for scp command and will provide password to scp.
scp