FilePath crawl subdirectories example.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

FilePath crawl subdirectories example.

Michael Carter
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? 

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/0e9c3165-43f2-45d2-9c48-a47109f82120n%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: FilePath crawl subdirectories example.

Ulli Hafner


Am 16.11.2020 um 21:53 schrieb Michael Carter <[hidden email]>:

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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/0e9c3165-43f2-45d2-9c48-a47109f82120n%40googlegroups.com.

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/17198219-0584-4916-A821-402611CAF3F8%40gmail.com.