I already read this and this and this answers but non of them helped me. I am using Windows machine for Jenkins
My workspace has 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 over ssh only file1.txt
I added the plugin to Publish Over SSH:
Source files DevOps\resource\file1.txt
Remove prefix DevOps\resource
Remote directory /tmp/
However I see in 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 it will put it in /tmp/ and not in /home/user/tmp?
UPDATED