返回介绍

3.5.8. forcescheduler

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

Caution

Buildbot no longer supports Python 2.7 on the Buildbot master.

3.5.8. forcescheduler

resource type: forcescheduler
Attributes:
  • all_fields[] (object) –

  • builder_names[] (identifier) – names of the builders that this scheduler can trigger

  • button_name (string) – label of the button to use in the UI

  • label (string) – label of this scheduler to be displayed in the UI

  • name (identifier) – name of this scheduler

A forcescheduler initiates builds, via a formular in the web UI. At the moment, forceschedulers must be defined on all the masters where a web ui is configured. A particular forcescheduler runs on the master where the web request was sent.

Note

This datatype and associated endpoints will be deprecated when bug #2673 will be resolved.

3.5.8.1. Endpoints

path: /builders/{builderid_or_buildername}/forceschedulers
Path Keys:

builderid_or_buildername (number|identifier) – the ID or name of the builder

This path selects all force-schedulers for a given builder

GET
returns

collection of forcescheduler

path: /forceschedulers

This path selects all forceschedulers

GET
returns

collection of forcescheduler

path: /forceschedulers/{schedulername}
Path Keys:

schedulername (identifier) – the name of a scheduler

This path selects all changesource

GET
returns

collection of forcescheduler

POST with method: /forceschedulers/{schedulername} (method=force)
Body keys:
  • method (string) – must be force

  • owner (string) – The user who wants to create the buildrequest

  • priority (integer) – The build request priority. Defaults to 0.

  • [] – content of the forcescheduler parameter is dependent on the configuration of the forcescheduler

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

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

发布评论

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