So using HTTPBuilder from Pipeline is not a good idea - see
https://issues.jenkins-ci.org/browse/JENKINS-26192 - there's work in
progress on https://github.com/jenkinsci/http-request-plugin/pull/13 for
adding Pipeline support to the http-request-plugin, which is probably the
direction you'd want to go.

A.

On Mon, Feb 1, 2016 at 3:18 PM, Scott Richmond <[email protected]>
wrote:

> How does one install httpbuilder a part of the Jenkins client? I’ve found
> very little instruction on this.
>
>
>
> Sent from Outlook Mail <http://go.microsoft.com/fwlink/?LinkId=550987>
> for Windows 10 phone
>
>
>
>
>
>
> *From: *Craig Rodrigues
> *Sent: *Monday, 1 February 2016 10:49 PM
> *To: *Scott Richmond
> *Cc: *Jenkins Users
>
> *Subject: *Re: How can I POST data to a remote service in Jenkins
> pipeline/workflow?
>
>
>
>
> Yes, you would need to install HTTPBuilder.
>
> You can decide if you want to install additional groovy libraries,
> or if you prefer switch to a scripting language of your choice, which
> you can call from inside a Jenkins job in order to access a REST service.
> --
> Craig
>
> On Sun, Jan 31, 2016 at 2:49 PM, Scott Richmond <[email protected]>
> wrote:
>
>> 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: *[email protected]
>> *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 <[email protected]>
>> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/-2616028336673081203%40unknownmsgid
> <https://groups.google.com/d/msgid/jenkinsci-users/-2616028336673081203%40unknownmsgid?utm_medium=email&utm_source=footer>
> .
>
> 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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CAPbPdOb11%2B6S%2BZZ%3Dpi6cLkPvvU5g7b4jpNbLNebyRfRdYOJ2vw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to