buildkite / buildkite/docs

Pipeline API - how can I use plugins?

Open
#607 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
59
Forks
313
PR merge metrics
No merged PRs in 30d

Description

Hi,

In our company use case - we have > 50 repositories that need to share the same pipeline configuration. We don't want to replicate the `pipeline.yml` file on all repositories, but rather control the pipeline via API.

It seems like the API does not have the same features as the `pipeline.yml`.
For staters: I can't use plugins.

I tries to use the pipeline `PATCH` API to add a step like this:
```json
{
"steps": [
{
"label": "bazel-build",
"type": "script",
"plugins": [
{
"docker#v3.5.0": {
"image": "l.gcr.io/google/bazel:2.0.0",
"command": ["bazel", "build", "//..." ]
}
}
]
}
]
}
```
I got `200 OK` result but calling `GET` on the same pipeline showed that it ignored the `plugins` property.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.