# \[BUG\] Failed command steps are continuing

**URL:** <https://forum.buildkite.community/t/bug-failed-command-steps-are-continuing/1710>\
**Category:** General\
**Created:** [August 31, 2021, 7:38pm UTC](https://forum.buildkite.community/t/bug-failed-command-steps-are-continuing/1710 "2021-08-31T19:38:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chomey](https://avatars.discourse-cdn.com/v4/letter/c/b4bc9f/32.png) [@chomey](https://forum.buildkite.community/u/chomey)\
**Post date:** [August 31, 2021, 7:38pm UTC](https://forum.buildkite.community/t/bug-failed-command-steps-are-continuing/1710/1 "2021-08-31T19:38:54Z")

</div>

Per the buildkite documentation: [Command Step | Buildkite Documentation](https://buildkite.com/docs/pipelines/command-step#command-step-attributes)

```auto
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).

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

```

 ![Screen Shot 2021-08-31 at 12.38.19](https://us1.discourse-cdn.com/flex016/uploads/buildkite1/original/1X/7ffe63e85c1eaa074e7234828df2f0ae223a99d5.png)

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:

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

```

 ![Screen Shot 2021-08-31 at 13.00.02](https://us1.discourse-cdn.com/flex016/uploads/buildkite1/original/1X/1ce4b0944a48939e26890a0752c20a190afc4e44.png)

---

<div class="post-metadata">

**Author:** ![paula](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/paula/32/954_2.png) [@paula](https://forum.buildkite.community/u/paula)\
**Post date:** [August 31, 2021, 7:51pm UTC](https://forum.buildkite.community/t/bug-failed-command-steps-are-continuing/1710/2 "2021-08-31T19:51:42Z")

</div>

Hi @chomey,

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

Thanks!

---

<div class="post-metadata">

**Author:** ![chomey](https://avatars.discourse-cdn.com/v4/letter/c/b4bc9f/32.png) [@chomey](https://forum.buildkite.community/u/chomey)\
**Post date:** [August 31, 2021, 7:59pm UTC](https://forum.buildkite.community/t/bug-failed-command-steps-are-continuing/1710/3 "2021-08-31T19:59:04Z")

</div>

Sure, done.

---

<div class="post-metadata">

**Author:** ![chomey](https://avatars.discourse-cdn.com/v4/letter/c/b4bc9f/32.png) [@chomey](https://forum.buildkite.community/u/chomey)\
**Post date:** [August 31, 2021, 10:38pm UTC](https://forum.buildkite.community/t/bug-failed-command-steps-are-continuing/1710/4 "2021-08-31T22:38:12Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![chomey](https://avatars.discourse-cdn.com/v4/letter/c/b4bc9f/32.png) [@chomey](https://forum.buildkite.community/u/chomey)\
**Post date:** [August 31, 2021, 10:38pm UTC](https://forum.buildkite.community/t/bug-failed-command-steps-are-continuing/1710/5 "2021-08-31T22:38:32Z")

</div>

Thanks for your help @paula !
