Hudson\Jenkins 个人构建步骤结果
我正在尝试获取任何 Hudson\Jenkins 作业的单独构建步骤结果。是否可以通过插件内的 Hudson Java API 或远程 api 获取数据?
谢谢。
I am trying to get the individual build step results of any Hudson\Jenkins Job. Is it possible to get the data via Hudson Java API inside the plugin or through remote api?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以下链接将为您提供一些描述上次成功构建的 XML。这是通过 Jenkins API
请注意,您会得到一个包含作业状态的标签。
如果您不喜欢 xml,您可以获取如下所示的 json:
以及类似的 Python api:
如果您想要更多文档,请访问
,它应该为您提供一些有关 Jenkins API 的有用信息。您甚至可以将 URL 构造为查询,例如:
这将为您提供一个 xml 片段,其中仅包含最新成功构建的结果。
祝你好运!
The following link will get you some XML describing the last successful build. This is going through the Jenkins API
Please notice that you get a tag that contains the state of the job.
If you don't like xml, you can get json like this:
and a Python api like:
If you want more documentation, go to
and it should give you some good information about the Jenkins API. You can even construct your URL to be a query, for example:
That will give you an xml fragment with just the result of the latest successful build.
Good luck!