docs icon indicating copy to clipboard operation
docs copied to clipboard

Pipeline API - how can I use plugins?

Open or-shachar opened this issue 4 years ago • 4 comments

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:

{
    "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.

or-shachar avatar Jan 15 '20 14:01 or-shachar