DirectoryBrowserSupport (for e.g. AbstractProject.doWs()) does something 
similar, so something like the following should work: Have your 
UnprotectedRootAction return an object implementing 
org.kohsuke.stapler.HttpResponse from its doProject() method. In that 
HttpResponse's generateResponse, access req.getRestOfPath() to get 'xyz' or 
'abc'. Pass that into Jenkins.getInstance().getItemByFullName(...) to process 
further.

On 27.05.2014, at 01:27, Daniel Brooks <[email protected]> wrote:

> HI,
> 
> I am trying to create a dynamic UnprotectedRootURL, where it will process 
> anything like /projects/xyz or /projects/abc.  Is there a way to currently do 
> this with Jenkins.
> 
> Thanks,
> Daniel
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to