On Tuesday, 31 January 2017 02:34:13 UTC+5:30, Christopher Burke wrote:
>
> Hey everyone
>
>Part of my build pipeline requires that I publish a zip file to a
> server, so I'm trying the following:
>
> response = httpRequest httpMode: 'POST', contentType:
> 'APPLICATION_OCTETSTREAM', body:".
Does someone solve this issue ? I feel like requestBody isn't working at
all. However if I'm making a "basic" POST request with query like
"http://localhost:5000/api?id=1"; it does work..
Le lundi 30 janvier 2017 22:04:13 UTC+1, Christopher Burke a écrit :
>
> Hey everyone
>
>Part of my buil
n-and-pipeline
>>
>> You have http-request-plugin installed on your Jenkins?
>>
>>
>>
>>
>>
>>
>>
>> *From: * on behalf of Christopher Burke <
>> christoph...@gmail.com>
>> *Reply-To: *"jenkins...@googlegroups.c
json-data-in-body-with-jenkins-http-request-plugin-and-pipeline
>>>
>>> You have http-request-plugin installed on your Jenkins?
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *From: * on behalf of Christopher Burke <
>>&
Please let me know, if the issue had been resolved.
On Monday, 30 January 2017 16:04:13 UTC-5, Christopher Burke wrote:
>
> Hey everyone
>
>Part of my build pipeline requires that I publish a zip file to a
> server, so I'm trying the following:
>
> response = httpRequest httpMode: 'POST', con
om/questions/37945370/how-to-post-json-data-in-body-with-jenkins-http-request-plugin-and-pipeline
>>
>> You have http-request-plugin installed on your Jenkins?
>>
>>
>>
>>
>>
>>
>>
>> *From: * on behalf of Christopher Burke <
>&
<
> jenkins...@googlegroups.com >
> *Date: *Monday, January 30, 2017 at 1:04 PM
> *To: *Jenkins Users >
> *Subject: *POSTing zip file using httpRequest in Jenkinsfile
>
>
>
> Hey everyone
>
>
>
>Part of my build pipeline requires that I publish a zip fi
s.com"
Date: Monday, January 30, 2017 at 1:04 PM
To: Jenkins Users
Subject: POSTing zip file using httpRequest in Jenkinsfile
Hey everyone
Part of my build pipeline requires that I publish a zip file to a server, so
I'm trying the following:
response = httpRequest httpMode:
Hey everyone
Part of my build pipeline requires that I publish a zip file to a
server, so I'm trying the following:
response = httpRequest httpMode: 'POST', contentType:
'APPLICATION_OCTETSTREAM', body:"...", url: "${urlForPublish}"
I'm not sure how to specify the body correctly, though.