[BUG] Failed command steps are continuing

Per the buildkite documentation: Command Step | Buildkite Documentation

The shell command/s to run during this step. This can be a single line of commands, or a list of commands that must all pass. Also available as the alias commands.

The following pipeline works (and it shouldn’t).

steps:
  - commands:
    - false
    - echo "false (previous step) returned $?"
    - echo "Should not get here"

Did something change recently? I don’t remember it doing this, and it’s doing all sorts of weird things to our CI/CD?

Interestingly, the build fails if the last command errors:

steps:
  - commands:
    - false
    - echo "false (previous step) returned $?"
    - echo "Should not get here"
    - false

Hi @chomey,

Could you please send an email to support@buildkite.com with the link to the build so we can take a better look?

Thanks!

Sure, done.

Update for anyone else who comes across this.

Our .buildkite/hooks/command file was missing set -e. We weren’t seeing it in other builds because those repos had that set

1 Like

Thanks for your help @paula !

1 Like