Anthill Beanshell 脚本可以建立 HTTP 连接吗?
我使用 Anthill Pro 进行构建和部署管理。我正在尝试将 Anthill 配置为在部署完成后向 Web 服务器进行 HTTP POST 或 GET。我正在传递有关部署到 Web 应用程序的基本信息。
看起来编写 Beanshell 脚本是在 Anthill 中执行此操作的方法(我愿意接受建议),但是文档< /a> 似乎没有提供明显的方法来做到这一点。
Anthill 的 Beanshell 脚本可以建立 HTTP 连接来完成此任务,还是有更好的方法?
我试图建立的连接示例:
http://myServer/myScript/?param1=deployValue1¶m2=deployValue2
感谢任何帮助。
I use Anthill Pro for build and deployment management. I'm attempting to configure Anthill to make a HTTP POST or GET to a web server after a deployment has completed. I'm passing basic information regarding the deployment to a web application.
It looks like writing a Beanshell script is the way to do this in Anthill (I'm open to suggestions), but the documentation does not seem to offer an obvious way to do this.
Can a Beanshell script from Anthill make a HTTP connection to accomplish this, or is there a better way?
Example of the connection I'm trying to make:
http://myServer/myScript/?param1=deployValue1¶m2=deployValue2
Any help is appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否只是想点击一个 URL 并验证其中的某些文本是否存在?如果是这样,我们有一个烘焙插件可以做这种事情。通过 [email protected] 向我发送邮件(或提交支持票证)我们可以将其交给您。
Are you just trying to hit a URL and validate that some text on it is there? If so we have a plugin baking that does this sort of thing. Shoot me a mail at [email protected] (or file a support ticket) and we can get that over to you.