I already read this and this and this answers, but none of them helped me. I am using a windows machine for jenkins
In my workspace there are only the following files
C: \ Jenkins \ workspace \ Copy_file \ DevOps \ resource \ file1.txt C: \ Jenkins \ workspace \ Copy_file \ DevOps \ resource \ file2.txt
I would like to publish on top of ssh only file1.txt
I added a plugin for publishing via SSH:
Source files DevOps\resource\file1.txt Remove prefix DevOps\resource Remote directory /tmp/
However, I see the result:
C:\Jenkins\workspace\Copy_file\DevOps\resource\file1.txt SSH: Connecting from host [hhhhh] SSH: Connecting with configuration [Redhat1] ... SSH: Creating session: username [hhhh], hostname [iiiiii], port [22] SSH: Connecting session ... SSH: Connected SSH: Opening SFTP channel ... SSH: SFTP channel open SSH: Connecting SFTP channel ... SSH: Connected SSH: Remote root is not absolute, getting absolute directory from PWD SSH: Disconnecting configuration [Redhat1] ... SSH: Transferred 0 file(s) Build step 'Send files or execute commands over SSH' changed build result to SUCCESS Finished: SUCCESS
- Why is it sending 0 files?
- How can I make the path absolute so that it puts it in / tmp / and not in / home / user / tmp?
UPDATED

ssh jenkins
Dejell
source share