如何使用Jenkins管道将文件从EC2-Linux复制到远程Windows共享文件夹? 我之前已经使用ssh将文件从linux复制到了linux。对于Linux到Windows的传输,我正在使用SCP命令。
scp /home/ec2-user/readme.txt Administrator@ec2-XXXXXX.compute.amazonaws.com://Shared_folder_path
/home/ec2-user/readme.txt ----> file path i need to copy.
Administrator@ec2-XXXXXX.compute.amazonaws.com://Shared_folder_path ----> username@public_DNS:Shared_folder_path