I have a class like this:.

...
@Extension
public class GenericWebHookRequestReceiver extends CrumbExclusion 
implements UnprotectedRootAction {

  private static final Logger LOGGER =
      Logger.getLogger(GenericWebHookRequestReceiver.class.getName());

  public HttpResponse doInvoke(final StaplerRequest request) {
    LOGGER.info("URL: " + request.getRequestURLWithQueryString());
    LOGGER.info("Keyset: " + request.getParameterMap().keySet())
...


When I invoke this with:

curl -v 
http://localhost:8080/jenkins/generic-webhook-trigger/invoke?param1=value1&param2=value2


I can see in the log:

INFO: URL: 
http://localhost:8080/jenkins/generic-webhook-trigger/invoke?param1=value1
INFO: Keyset: [param1]


I was expecting param1 and param2 to be available in the keyset. Any hints 
on what I'm doing wrong here?

There is also an issue reported on 
GitHub: https://github.com/jenkinsci/generic-webhook-trigger-plugin/issues/74


-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/ed687a02-4e5a-4979-85b0-eabf37396081%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to