问题描述
有没有一种方法,我们可以得到所有的 Jenkins-建造时间趋势信息的(版本号+状态[成功/失败等] +时间)的一个应用;使用詹金斯远程访问API?
否则我会AP preciate如果你可以发布任何文件有关如何使用远程访问API从詹金斯获取信息的链接。大部分的来源包括运行作业的方式,但我找不到任何,它展示了如何来从詹金斯的信息。
谢谢!
您可以使用这样的URL:
<$p$p><$c$c>http://jenkins:8080/job/MY-APPLICATION/api/json?tree=builds[number,id,timestamp,result,duration]有根API元素多一点的文档:
的http://詹金斯:8080 /工作/ MY-应用/ API
我承认自己没有完全理解树
参数。我找不到检索整个建立
子树的一个简单的例子。
Is there a way that we can get all Jenkins-"Build Time Trend" information ( Build number + Status[success/failed etc] + Duration ) for an application; using the Jenkins remote access API?
Or else I would appreciate if you could post a link of any documentation on how to get information from Jenkins using the Remote Access API. Most of the sources consist of the way of running jobs, but I couldn't find any, which shows how to fetch information from jenkins.
Thanks!
You can use something like this URL:
http://jenkins:8080/job/MY-APPLICATION/api/json?tree=builds[number,id,timestamp,result,duration]
There's a little more documentation in the root api element:
http://jenkins:8080/job/MY-APPLICATION/api
I admit to not completely understanding the tree
parameter. I couldn't find a simple example of retrieving the entire builds
subtree.
这篇关于詹金斯-GET&QUOT;建造时间趋势&QUOT;使用&QUOT值;远程访问API&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!