in a similar fashion to Can't make `buildkite-agent pipeline upload` work on my machine - #7 by zenogueira, it seems that Buildkite CLI has a different behaviour in the builds generated in Buildkite, than in the local environment. I want to understand what is the issue this time.
My setup is: I have a local cluster where I spawn a few agents on my machine and then builds are triggered by buildkite.
I was just trying out the cli, and tried to run a simple command: bk build view
, as in the README.
on my machine I get:
$ bk build view
Error: Failed to resolve a pipeline.
on buildkite step (I added a new step manually with just the command) I get:
$ bk build view
┃ Select a pipeline
┃ > pipeline1
┃ pipeline2
┃ pipeline3
I have tried adding all the env variables in the bk build to my local env, but I still have the same issue, this doesn’t fix it, it’s something else. What do I need to do to have the same behaviour? When buildkite runs builds on my machine i’d expect it not to be too different of what I have on my machine, especially for the bk
cli, which doesn’t come by default with buildkite-agent
.
Bottom line, my question is: what are the limitations in the use of bk
in the builds, and does it work well on linux? I see mac seems to be your target distribution platform, but we use debian. On my machine I’m on mac and spawning agents on my machine/mac too.
Thanks for your help :)