The httpbuilder library doesn’t appear to work as it’s not available. Do I have to add it to the default libraries or something?
Sent from Outlook Mail <http://go.microsoft.com/fwlink/?LinkId=550987> for Windows 10 phone *From: *Craig Rodrigues *Sent: *Sunday, 31 January 2016 10:08 PM *To: *Jenkins Users *Cc: *s.t.richm...@gmail.com *Subject: *Re: How can I POST data to a remote service in Jenkins pipeline/workflow? Hi, curl is one way of calling a REST API from the command-line, but it is not the only way. You can create a Jenkins job, and use many languages to call REST API's inside these jobs, even on Windows. For example, if you want to use groovy, using the HTTPBuilder library is one way to do it: https://www.google.com/search?q=groovy+rest+api If you want to use C#, you can look at using the restsharp library: https://www.google.com/search?q=c+sharp+rest+api -- Craig On Sun, Jan 31, 2016 at 9:20 AM, Scott Richmond <s.t.richm...@gmail.com> wrote: > I require the ability to HTTP POST data to a remote service via some kind > of REST client. This will be done on Windows agents, so the native curl > support in sh is not suitable. Is there any way to do this in the groovy > script? > > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/-995814510778249544%40unknownmsgid. For more options, visit https://groups.google.com/d/optout.