Skip to content

Commit edf7272

Browse files
committed
Show plugins defined within command steps
1 parent f76e49f commit edf7272

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,37 @@ This is a sub-section that provides configuration for running commands or trigge
7272
- [Group](https://buildkite.com/docs/pipelines/configure/step-types/group-step)
7373
- [Conditionals](https://buildkite.com/docs/pipelines/conditionals)
7474

75+
#### Plugins in Step Configurations
76+
77+
The plugin preserves `plugins:` blocks when specified in command step configurations. This allows you to use Buildkite plugins within your monorepo-watched steps.
78+
79+
**Example**
80+
81+
```yaml
82+
steps:
83+
- label: "Triggering pipelines"
84+
plugins:
85+
- monorepo-diff#v1.8.0:
86+
watch:
87+
- path: services/api/
88+
config:
89+
command: "npm test"
90+
plugins:
91+
- artifacts#v1.9.4:
92+
upload: "coverage/**/*"
93+
- docker-compose#v5.3.0:
94+
run: api
95+
- path: services/web/
96+
config:
97+
command: "yarn build"
98+
plugins:
99+
- docker#v5.14.0:
100+
image: "node:20"
101+
workdir: /app
102+
```
103+
104+
When changes are detected in the watched paths, the plugin generates steps that include the specified plugins. The `plugins:` blocks are preserved exactly as configured.
105+
75106
:warning: This plugin may accept configurations that are not valid pipeline steps, this is a known issue to keep its code simple and flexible.
76107

77108
```yaml

0 commit comments

Comments
 (0)