On an Ubuntu Server, I was able to run this command manually:
plink FEXT < remoteCmds.txt
where FEXT is the connection session I have created previously. And what this full command does is:
1) to connect to a serial device
2) to have the commands listed in file "remoteCmds.txt" executed.
After that, I have put this as a shell command within a java class, and have the java class executed through a Jenkins job.
But it fails that way, and here is the error message I got:
Opening serial device FEXT
Unable to open connection:
Unable to open serial port
This link may close to my case, as this FEXT owns by root, while everything created during a jenkins job, is of user "jenkins".
But after I have enabled "jenkins" user with suggested settings, the error stays.