was it resolved? if so, please let me know the solution
On Wednesday, 11 October 2017 14:52:09 UTC-4, Guillaume Chorn wrote:
>
> Christopher,
>
> Did you ever find an answer to your question? I am trying to do the exact
> same thing and getting nowhere. Let me know.
>
> Thanks,
> Guillaume
>
> On Tuesday, January 31, 2017 at 6:55:26 AM UTC-8, Christopher Burke wrote:
>>
>> Are you referring to the bug that was identified in a comment on that
>> stackoverflow question? If so, it has been resolved so I assume I'm now
>> able to use the requestBody. I'm not sure what other information in that
>> question is pertinent as I am attmepting to read a zip file and that
>> question relates to JSON.
>>
>> That being said, I do have the http-request-plugin installed and realize
>> I had a typo in the step I included in my first email.
>>
>> response = httpRequest httpMode: 'POST', contentType:
>> 'APPLICATION_OCTETSTREAM', *requestBody:???*, url: "${urlForPublish}"
>>
>> I am not sure how to read the contents of my zip file and supply them as
>> the value for requestBody.
>>
>> On Monday, January 30, 2017 at 4:33:30 PM UTC-5, Indra Gunawan (ingunawa)
>> wrote:
>>>
>>> Stackoverflow is your friend :
>>> http://stackoverflow.com/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: *<[email protected]> on behalf of Christopher Burke <
>>> [email protected]>
>>> *Reply-To: *"[email protected]" <[email protected]>
>>> *Date: *Monday, January 30, 2017 at 1:04 PM
>>> *To: *Jenkins Users <[email protected]>
>>> *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: 'POST', contentType:
>>> 'APPLICATION_OCTETSTREAM', body:"...", url: "${urlForPublish}"
>>>
>>>
>>>
>>> I'm not sure how to specify the body correctly, though. Could anyone
>>> point me to an example or offer any suggestions? In the meantime, I've
>>> worked around this by using curl, but it seems like using the httpRequest
>>> step would be preferable.
>>>
>>>
>>>
>>> Thanks,
>>>
>>>
>>>
>>> --- Chris
>>>
>>>
>>>
>>>
>>>
>>> --
>>> 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/43b61030-2d2c-42a9-9170-de718a796f6e%40googlegroups.com
>>>
>>> <https://groups.google.com/d/msgid/jenkinsci-users/43b61030-2d2c-42a9-9170-de718a796f6e%40googlegroups.com?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/f93eba9b-921d-40be-a985-cff118fbf771%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.