简体   繁体   English

Jenkins Multibranch插件和远程API

[英]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.

相关问题 Jenkins Multibranch Pipeline 仅检查推送到 GIT 的新文件或更改文件 - Jenkins Multibranch Pipeline check only the new or changed files pushed to GIT 如何通过远程访问api将数组传递给jenkins参数化作业? - How to pass an array to a jenkins parameterized job via remote access api? Jenkins远程API-使用静态下拉参数触发作业 - Jenkins remote API - trigger job with static pulldown paramters 创建Jenkins插件以添加参数 - Creating Jenkins Plugin to add parameters 构建 JSON 以与 Jenkins 的 slackNotification 插件一起使用 - Construct JSON to be used with slackNotification plugin for Jenkins 使用jenkins_api_client从Jenkins API获取构建信息 - Get build information from Jenkins API with jenkins_api_client 在ANGULAR 5中映射Jenkins JSON API - Mapping Jenkins JSON API in ANGULAR 5 在将远程JSON文件提供给插件之前对其进行过滤 - Filtering a remote JSON file before feeding it to a plugin 如何使用 Python Jenkins API 在 Jenkins 中查找和查询特定构建 - How to find and query a specific build in Jenkins using the Python Jenkins API 使用Jenkins REST API将Mark Jenkins节点临时标记为脱机 - Mark Jenkins node temporarily as offline by using the Jenkins REST API
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM