简体   繁体   English

无法使用REST API从Bamboo检索结果

[英]Cannot retrieve results from Bamboo using REST API

I am trying to build result information from an Atlassian hosted instance of Bamboo using the REST API, but have hit a roadblock almost immediately. 我正在尝试使用REST API从Atlassian托管的Bamboo实例构建结果信息,但几乎立即遇到了障碍。

Trying to get the result information for a specific plan I would expect the following URL to return a result set: 尝试获取特定计划的结果信息,我希望以下URL返回结果集:

Where PROJECT-PLAN has been copied from the UI URL for the given plan: 从给定计划的UI URL复制PROJECT-PLAN的位置:

This is based on the documentation here: 这是基于此处的文档:

However, when I try to retrieve this through my browser (authenticated, with access to the UI URL), I get the following response: 但是,当我尝试通过浏览器(已验证并可以访问UI URL)检索到此消息时,会收到以下响应:

<status>
  <status-code>404</status-code>
  <message>
     null for uri: https://mydomain.atlassian.net/rest/api/latest/result/SFDC-AQB
  </message>
</status>

I fear I must be missing something obvious. 我担心我一定会遗漏一些明显的东西。

Turns out that my base URL was directing me to the JIRA REST API, rather than Bamboo: 原来,我的基本URL将我定向到JIRA REST API,而不是Bamboo:

Adding "builds" into the URL solves the problem. 在URL中添加“内部版本”即可解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM