jenkins中带有http请求插件的正文放在哪里 [英] Where body is put in post with http request plugin in jenkins

查看:165
本文介绍了jenkins中带有http请求插件的正文放在哪里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是最愚蠢的问题,但绝对不是显而易见的. 我正在尝试使用HTTP请求插件在Jenkins中发送POST请求.但是,我找不到要张贴正文消息/内容的字段. 有任何想法吗? 这是可用选项的屏幕截图

This might be the silliest question, but definitely it is not obvious. I am trying to send a POST request in Jenkins, using the HTTP Request Plugin. However I cannot find a field to put the body message/content, that I want to post. Any ideas? This is a screenshot of the available options

推荐答案

您可以使用 requestBody

httpRequest authentication: "credentialsID", contentType: "APPLICATION_JSON", httpMode: "POST", requestBody: JsonOutput.toJson(VALUE), url: dest_url

更多信息: HTTP请求插件

这篇关于jenkins中带有http请求插件的正文放在哪里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆