# Failure step variable

**URL:** <https://discuss.bitrise.io/t/failure-step-variable/4430>\
**Category:** Builds\
**Created:** [March 9, 2018, 7:00am UTC](https://discuss.bitrise.io/t/failure-step-variable/4430 "2018-03-09T07:00:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bernat](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@bernat](https://discuss.bitrise.io/u/bernat)\
**Post date:** [March 9, 2018, 7:00am UTC](https://discuss.bitrise.io/t/failure-step-variable/4430/1 "2018-03-09T07:00:47Z")

</div>

## Description of the feature request

Get bitrise env var with failed step

## Use case / for what or how I would use it

In our team we show on slack when a build has failed, but we need to manually check the build to know why it has failed.

Would be cool to have the step that has failed on slack so developers may know if is a test problem, git, etc…

From: [Fail step variable - #2 by viktorbenei](http://discuss.bitrise.io/t/fail-step-variable/4416/2)

---

<div class="post-metadata">

**Author:** ![viktorbenei](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/viktorbenei/32/18_2.png) [@viktorbenei](https://discuss.bitrise.io/u/viktorbenei)\
**Post date:** [March 13, 2018, 2:38pm UTC](https://discuss.bitrise.io/t/failure-step-variable/4430/2 "2018-03-13T14:38:04Z")

</div>

Great idea, thanks for the #feature-request @bernat! 🙂

---

<div class="post-metadata">

**Author:** ![erickmaedalopes](https://avatars.discourse-cdn.com/v4/letter/e/839c29/32.png) [@erickmaedalopes](https://discuss.bitrise.io/u/erickmaedalopes)\
**Post date:** [May 17, 2019, 1:46pm UTC](https://discuss.bitrise.io/t/failure-step-variable/4430/3 "2019-05-17T13:46:24Z")

</div>

Is this feature request is already done?

---

<div class="post-metadata">

**Author:** ![bitce](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/bitce/32/1639_2.png) [@bitce](https://discuss.bitrise.io/u/bitce)\
**Post date:** [May 17, 2019, 1:57pm UTC](https://discuss.bitrise.io/t/failure-step-variable/4430/4 "2019-05-17T13:57:43Z")

</div>

Hi @erickmaedalopes! No, this is not an existing feature yet, but it seems to be a duplicate of: [Build fail reason to an $ENVIRONMENT\_VARIABLE](http://discuss.bitrise.io/t/build-fail-reason-to-an-environment-variable/8484)
