[英]Jenkins Multibranch Plugin & Remote API
I'm using the 'new' Pipeline Multibranch Plugin with our Jenkins. 我在Jenkins上使用了“新”管道多分支插件。 Since we want to test multiple branches this creates multiple subprojects for every branch.
由于我们要测试多个分支,因此将为每个分支创建多个子项目。 I always used the JSON API to get an overview of all the projects via https://myserver/api/json to write some tools for it and get the current build status.
我一直使用JSON API通过https:// myserver / api / json获取所有项目的概述,以为其编写一些工具并获得当前的构建状态。 But with the new Multibranch plugin I just get the 'parent' job but none of the child 'jobs':
但随着新的插件多枝我刚刚得到的“父”的工作,但没有孩子的工作“的:
"jobs" : [
...
{
"_class" : "org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject",
"name" : "-ProjectName-",
"url" : "-ProjectURL-"
},
...
Is there a way to 'expand' the Multibranch job in the remote API or another simple way to achieve this? 有没有一种方法可以“扩展”远程API中的Multibranch作业,或者另一种简单的方法可以实现这一点?
Thanks! 谢谢!
好的-我自己添加?depth = 1解决了
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.