Not able to copy files from local system to NFS network storage using Jenkins

HI I am using Jenkins 2.440.2. Jenkins Controller on RHEL server and Agent i have setup in Windows server.

We have attached NFS(Using client for NFS) network driver on windows server.
I want to copy some files from jenkins workspace to NFS drive.
When we tried locally using command prompt copy command is working but we tried using jenkins getting below error.

image

Please let me know how we can copy files from local to NFS drive using jenkins job.

Not sure but it might be that when you mounted the NFS drive this happens only locally to your session. When your agent runs as service the drive might not be visible.

1 Like