Problems encountered when Jenkins publishes files to the server

under windows , there is a jenkins . You want to use the plug-in publish over ssh to send the specified file to the remote linux server. After the task is executed, the server cannot find the relevant file.

when building, the console output is as follows:

SSH: Connecting from host [DESKTOP-1]
SSH: Connecting with configuration [xx.xxx.xx.xxx] ...
SSH: Disconnecting configuration [xx.xxx.xx.xxx] ...
SSH: Transferred 1 file(s)
Finished: SUCCESS

Task configuration:

:

:

and dist/index2.html exists in jenkins"s workspace directory.
I don"t know what"s wrong with the configuration? Ask the bosses for advice. Please

Jul.06,2021
The

problem was found because I didn't set up a remote directory for root and used an absolute path in the publishing task, but the plug-in actually uses a path relative to the user's home directory rather than the absolute path of the server, such as / root/wwww/wwwroot/test .
@ bear balls Thank you


remote directory, what's wrong with your www/wwwrout/test? linux doesn't have such a path, you need to be clear about the absolute path, such as / home/yourname/xxx, / root/xxxx

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b35db8-2bfe0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b35db8-2bfe0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?