feedback
feedback copied to clipboard
upload a plugin step over the api
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?
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.
Any updates on this?
We have a big need for this too.