Network mapped path VS UNC path on windows

38 views
Skip to first unread message

Nikhil Bhoski

unread,
Jun 18, 2019, 1:11:39 AM6/18/19
to Jenkins Developers
Hi,

I use Hudson FilePath . in my Jenkins plugin to represent any filePath on specific node . However on Windows i have some issues 

1) I have mapped my nework path on windows and assigned a label to it  "U:" 
2) When i try using my network path using the label assigned to it . FilePath API fails to navigate to the path 
3) If i use UNC path absolute path then it works fine . 

Eg:

Below Doe not work 

U:\Myfile\file 

Below Works Fine

\\networkpath\Myfile\file


Any Idea that How can i handle Network path with labels using FilePath 

Thanks & Regards
Nikhil 

Slide

unread,
Jun 18, 2019, 8:48:53 AM6/18/19
to Jenkins Developer List
The mapped path will only be available for the year you mapped it as. If your Jennings agent is not running as the same user, then you must use a UNC or map as part of your build.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/5a15c345-c7a8-428e-bc9b-20c63d037290%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Nikhil Bhoski

unread,
Jun 20, 2019, 1:07:57 AM6/20/19
to Jenkins Developers
Thanks for reply . I tried running Jenkins process and Jenkins user with same use as of my windows user still no luck with mapped path with labels assigned. 

1) i went to Jenkins services and changed the Logon user to the current system user . 
2) created the same user on Jenkins and logged in with the same user 
3) tried accessing Labeled network path 

Above still fails to navigate to the labels path like.   


On Tuesday, 18 June 2019 18:18:53 UTC+5:30, slide wrote:
The mapped path will only be available for the year you mapped it as. If your Jennings agent is not running as the same user, then you must use a UNC or map as part of your build.

On Mon, Jun 17, 2019, 22:11 Nikhil Bhoski <nikhil...@gmail.com> wrote:
Hi,

I use Hudson FilePath . in my Jenkins plugin to represent any filePath on specific node . However on Windows i have some issues 

1) I have mapped my nework path on windows and assigned a label to it  "U:" 
2) When i try using my network path using the label assigned to it . FilePath API fails to navigate to the path 
3) If i use UNC path absolute path then it works fine . 

Eg:

Below Doe not work 

U:\Myfile\file 

Below Works Fine

\\networkpath\Myfile\file


Any Idea that How can i handle Network path with labels using FilePath 

Thanks & Regards
Nikhil 

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkin...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages