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

Hi
Please let me know if there is any solution for this. How we can transfer files on NFS drive using Jenkins.

As mentioned earlier, either run your jenkins agent in a cmd prompt, or if running as a service, try to change the “logon name” of your service to a user allowed to mount your NFS drive.
Hope it helps

Hi
Jenkins service is running with user “A”. NFS is configure with user “Network service”.
We have not configured the Network service user client for NFS.
User “A” have access to NFS drive. but still not able to copy with Jenkins.