feedback icon indicating copy to clipboard operation
feedback copied to clipboard

upload a plugin step over the api

Open connaryscott opened this issue 6 years ago • 3 comments

I am trying to include a plugin call when creating a pipeline.

When I include a plugin definition in the json payload like so:

  "steps": [
    {
      "plugins": {
        "https://github.frg.tech/cloud/role-assumption-buildkite-plugin#v1.0.2": {
          "env_groups": [
            "ecomdev",
            "ecomqc"
          ],
          "credentials-file": "/tmp/aws-credentials-${BUILDKITE_BUILD_ID}"
        }
      }
    }

I get the following error:

{
  "message": "Validation Failed",
  "errors": [
    {
      "field": "steps.type",
      "code": "invalid"
    }
  ]
}

Is it possible to do this?

connaryscott avatar Sep 29 '18 21:09 connaryscott

Currently you can't use the REST API to set plugins on steps I'm afraid!

If you have YAML configuration enabled on your pipeline though, you can use the PipelineUpdateInput GraphQL mutation, which takes a { steps: { yaml: "..." } } property.

I'll keep this open for when we update the REST API to support this too.

toolmantim avatar Oct 01 '18 09:10 toolmantim

Any updates on this?

ajainvivek avatar Jan 22 '20 03:01 ajainvivek

We have a big need for this too.

NorseGaud avatar Jan 31 '20 20:01 NorseGaud