On Wednesday, September 18, 2013 5:46:15 PM UTC-4, Alex Kira wrote:
>
> Hi, 
>
> Is there a way to read the request body from a triggered job?  I am trying 
> to integrate with another service that posts the request parameters as JSON 
> in the raw body.  
>
> This is a curl request that generates a similar request:
>
> curl -X POST -H "Content-Type: application/json" -d 
> '{"commits":"xyz","payload":"xyz"}' 
> http://jenkins-url.com/job/Test/buildWithParameters
>
> Is there a way to access the posted JSON in my build scripts?  (Note that 
> I cannot change the format of the request or how the JSON is passed).
>


This sounds like it would require significant Jenkins extension since you 
want to teach it another API. I would probably be more inclined to write a 
proxy service which translates from the API of your other service to that 
of Jenkins. I'm not sure what you're used to, but I've done something 
similar with a page or two of Python. 

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to