buildkite / feedback

Got feedback? Please let us know!
https://buildkite.com
25 stars 24 forks source link

upload a plugin step over the api #462

Open connaryscott opened 6 years ago

connaryscott commented 6 years ago

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?

toolmantim commented 6 years ago

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.

ajainvivek commented 4 years ago

Any updates on this?

NorseGaud commented 4 years ago

We have a big need for this too.