返回介绍

3.5.5. build_data

发布于 2023-09-20 23:50:40 字数 4270 浏览 0 评论 0 收藏 0

Caution

Buildbot no longer supports Python 2.7 on the Buildbot master.

3.5.5. build_data

resource type: build_data
Attributes:
  • buildid (integer) – id of the build the build data is attached to

  • name (string) – the name of the build data

  • length (integer) – the number of bytes in the build data

  • source (string) – a string identifying the source of the data

example

{
    "buildid": 31,
    "name": "stored_data_name",
    "length": 10,
    "source": "Step XYZ"
}

This resource represents a key-value data pair associated to a build. A build can have any number of key-value pairs. The data is intended to be used for temporary purposes, until the build and all actions associated to it (such as reporters) are finished.

The value is a binary of potentially large size. There are two sets of APIs. One returns the properties of the key-value data pairs, such as key name and value length. Another returns the actual value as binary data.

3.5.5.1. Update Methods

All update methods are available as attributes of master.data.updates.

class buildbot.data.build_data.BuildData
path: /builders/{builderid_or_buildername}/builds/{build_number}/data
Path Keys:
  • builderid_or_buildername (number|identifier) – the ID or name of the builder

  • build_number (number) – the number of the build within the builder

This path selects all build data set for the build

GET
returns

collection of build_data

path: /builders/{builderid_or_buildername}/builds/{build_number}/data/{build_data_name}
Path Keys:
  • builderid_or_buildername (number|identifier) – the ID or name of the builder

  • build_number (number) – the number of the build within the builder

  • build_data_name (string) – the name of build data

This path selects a build data with specific name

GET
returns

collection of build_data

path: /builds/{buildid}/data
Path Keys:

buildid (number) – the id of the build

This path selects all build data set for the build

GET
returns

collection of build_data

path: /builds/{buildid}/data/{build_data_name}
Path Keys:
  • buildid (number) – the id of the build

  • build_data_name (string) – the name of build data

This path selects a build data with specific name

GET
returns

collection of build_data

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文