You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32-1Lines changed: 32 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,6 +115,37 @@ The plugin validates all step configurations before uploading the pipeline. Inva
115
115
- command: "deploy.sh"
116
116
```
117
117
118
+
#### Plugins in Step Configurations
119
+
120
+
The plugin preserves `plugins:` blocks when specified in command step configurations. This allows you to use Buildkite plugins within your monorepo-watched steps.
121
+
122
+
**Example**
123
+
124
+
```yaml
125
+
steps:
126
+
- label: "Triggering pipelines"
127
+
plugins:
128
+
- monorepo-diff#v1.8.0:
129
+
watch:
130
+
- path: services/api/
131
+
config:
132
+
command: "npm test"
133
+
plugins:
134
+
- artifacts#v1.9.4:
135
+
upload: "coverage/**/*"
136
+
- docker-compose#v5.12.1:
137
+
run: api
138
+
- path: services/web/
139
+
config:
140
+
command: "yarn build"
141
+
plugins:
142
+
- docker#v5.13.0:
143
+
image: "node:20"
144
+
workdir: /app
145
+
```
146
+
147
+
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.
148
+
118
149
```yaml
119
150
steps:
120
151
- label: "Triggering pipelines"
@@ -132,7 +163,7 @@ steps:
132
163
group: docker/**
133
164
steps: # Required: groups must have either 'steps' or an action
0 commit comments