返回介绍

3.5.18. sourcestamp

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

Caution

Buildbot no longer supports Python 2.7 on the Buildbot master.

3.5.18. sourcestamp

resource type: sourcestamp
Attributes:
  • ssid (integer) –

    the ID of this sourcestamp

    Note

    For legacy reasons, the abbreviated name ssid is used instead of canonical sourcestampid. This might change in the future (bug #3509).

  • branch? (string) – code branch, or none for the “default branch”, whatever that might mean

  • codebase (string) – revision for this sourcestamp, or none if unknown

  • created_at (date) – the timestamp when this sourcestamp was created

  • patch? (patch) – the patch for this sourcestamp, or none

  • project (string) – user-defined project to which this sourcestamp corresponds

  • repository (string) – repository where this sourcestamp occurred

  • revision? (string) – revision for this sourcestamp, or none if unknown

A sourcestamp represents a particular version of the source code. Absolute sourcestamps specify this completely, while relative sourcestamps (with revision = None) specify the latest source at the current time. Source stamps can also have patches; such stamps describe the underlying revision with the given patch applied.

Note that depending on the underlying version-control system, the same revision may describe different code in different branches (e.g., SVN) or may be independent of the branch (e.g., Git).

The created_at timestamp can be used to indicate the first time a sourcestamp was seen by Buildbot. This provides a reasonable default ordering for sourcestamps when more reliable information is not available.

3.5.18.1. Endpoints

path: /sourcestamps

This path selects all sourcestamps (can return lots of data!)

GET
returns

collection of sourcestamp

path: /sourcestamps/{ssid}
Path Keys:

ssid (number) – the id of the sourcestamp

This path selects one sourcestamp by id

GET
returns

collection of sourcestamp

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

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

发布评论

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