hudson.FilePath absolute path of file

295 views
Skip to first unread message

abhishek gupta

unread,
Jun 3, 2015, 1:41:46 PM6/3/15
to jenkin...@googlegroups.com
Hi,
               I want to know how can I use "absolute path of a file or folder" in hudson.FilePath' (I am using list()method ) , at present it takes only "Ant GLOB pattern", means taking filepath relative to workspace only.
So is their anyway I can give  absolute path of file in Ant GLOB pattern?



Thanks
Abhishek

Robert Sandell

unread,
Jun 5, 2015, 4:27:14 AM6/5/15
to jenkin...@googlegroups.com
if local: new FilePath(new File("/absolute/path"));

if remote: new FilePath(otherPath.getChannel(), "/absolute/path");

/B

--
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/4ba159f8-69b5-4872-8c4c-39dd404805be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Robert Sandell
Software Engineer
CloudBees Inc.
Reply all
Reply to author
Forward
0 new messages