Stephen, 

That worked thanks a bunch!!!!!!

On Tuesday, May 27, 2014 1:20:34 AM UTC-7, Stephen Connolly wrote:
>
> You just want to add either a doDynamic or a getDynamic method (the 
> getDynamic is likely more what you want to return an object that has its 
> own views)
>
>
> On 27 May 2014 01:29, Daniel Brooks <[email protected]<javascript:>
> > wrote:
>
>> Ok, heres an example of My Class:
>>
>> public class WebHook implements UnprotectedRootAction {
>>
>>     public static final String WEBHOOK_URL = "projects";
>>
>>     public String getIconFileName() {
>>         return null;
>>     }
>>
>>     public String getDisplayName() {
>>         return null;
>>     }
>>
>>     public String getUrlName() {
>>         return WEBHOOK_URL;
>>     }
>>
>>     //@RequirePOST For some reason the RequirePost is not working right.
>>     public void doIndex(StaplerRequest req) {
>>         LOGGER.log(Level.FINE, "WebHook called.");
>>
>>         String payload = req.getParameter("payload");
>>         if (payload == null) {
>>             throw new IllegalArgumentException(
>>                     "Not intended to be browsed interactively (must 
>> specify payload parameter)");
>>         }
>>
>>         //processPayload(payload);
>>     }
>>
>>
>>
>>     private static final Logger LOGGER = Logger.getLogger(WebHook
>> .class.getName());
>>
>> }
>>
>>
>> Can you provide me an example of what you are talking about. I'm pretty 
>> new to Jenkins Plugin development and there doesn't seem to be any 
>> decent documentation.
>>
>>
>> On Monday, May 26, 2014 4:47:12 PM UTC-7, Daniel Beck wrote:
>>
>>> 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] <javascript:>.
>> 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