I am running the BuildKite CLI locally to speed up testing my pipelines. I am running into a strange issue where if my pipeline contains the most simple group
step, it fails with the following error:
🚨 Error: The command phase has no 'command' to execute. Provide a 'command' field in your step configuration, or define a 'command' hook in a step plug-in, your repository '.buildkite/hooks', or agent 'hooks-path'.
However, the hosted pipeline on the BuildKite website (the main use case) works fine.
Here is the pipeline.yml that is not working locally:
steps:
- name: "Test Command Step"
command: echo 0
- group: "Test Group Step"
steps:
- name: "Command 1"
command: echo 1
- name: "Command 2"
command: echo 2
If I remove the group step, it works fine in both cases.
I get the error when I run the pipeline locally with bk local run
. My agent version is v3.48.0
. Any help would be appreciated. Thanks!