FilePath crawl subdirectories example.

4 views
Skip to first unread message

Michael Carter

unread,
Nov 16, 2020, 3:53:22 PM11/16/20
to Jenkins Developers
Have this case where I want to crawl a subdirectory for xml files from a workspace in a plugin.

Is there an example out there of doing such a crawl with the FilePath object? 

Ullrich Hafner

unread,
Nov 16, 2020, 5:21:26 PM11/16/20
to Jenkins Developers

Am 16.11.2020 um 21:53 schrieb Michael Carter <mikeyca...@gmail.com>:

Have this case where I want to crawl a subdirectory for xml files from a workspace in a plugin.

Is there an example out there of doing such a crawl with the FilePath object? 


I’m not exactly using the FilePath instance to find the files but it is a quite similar technique:

I’m basically running a command on the agent (using the workspace FilePath), that scans the folder using the Ant FileSet library.

--
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/0e9c3165-43f2-45d2-9c48-a47109f82120n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages