Update new builder doc with use of the ci builder lib.
Change-Id: I63883c00ba35e246f408f18456e5f1afcbc80ac5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2062788 Commit-Queue: Garrett Beaty <gbeaty@chromium.org> Reviewed-by: Stephen Martinis <martiniss@chromium.org> Cr-Commit-Position: refs/heads/master@{#742342}
This commit is contained in:

committed by
Commit Bot

parent
f2464a80ba
commit
204eeac0e5
@ -203,7 +203,7 @@ defaults. Find the block of builders defined using the appropriate function and
|
||||
add a new definition, which may be as simple as:
|
||||
|
||||
```starlark
|
||||
linux_builder(
|
||||
ci.linux_builder(
|
||||
name = '$BUILDER_NAME',
|
||||
)
|
||||
```
|
||||
@ -308,7 +308,7 @@ their own definition by setting the `triggered_by` field. For builders in the
|
||||
behavior of being triggered by the poller.
|
||||
|
||||
```starlark
|
||||
linux_builder(
|
||||
ci.linux_builder(
|
||||
name = '$BUILDER_NAME',
|
||||
triggered_by = ['$PARENT_BUILDER_NAME'],
|
||||
)
|
||||
@ -324,7 +324,7 @@ the poller. See the documentation of the `schedule` field in the `Job` message
|
||||
in the [scheduler schema][11].
|
||||
|
||||
```starlark
|
||||
builder(
|
||||
ci.builder(
|
||||
name = '$BUILDER_NAME',
|
||||
schedule = 'with 10m interval',
|
||||
triggered_by = [],
|
||||
|
Reference in New Issue
Block a user