buildkite / cli

A command line interface for Buildkite.
MIT License
168 stars 44 forks source link

Buildkite CLI returns 422 on "failed validation" but doesn't give me any actionable information. #393

Open ccuadrado-buildkite opened 10 hours ago

ccuadrado-buildkite commented 10 hours ago

Some parts redacted for security:

❯ bk pipeline create
? Name: packages-demo
? Description: Create some demos for Packages
? Choose a repository: https://github.com/<user>/<my-repo>.git

 Pipeline created:

Error: POST https://api.buildkite.com/v2/organizations/<my_slug>/pipelines: 422 Validation Failed
Usage:
  bk pipeline create

Flags:
  -h, --help   help for create

Would be great if we could get further feedback on which validation(s) failed. I was able to create the pipeline via the GUI successfully after this execution.

mcncl commented 10 hours ago

Thanks @ccuadrado-buildkite!

Are you able to share the version of the CLI you're using and the environment it's running in? Assuming MacOS.