# Build logs should print the bitrise Stack ID it's running on

**URL:** <https://discuss.bitrise.io/t/build-logs-should-print-the-bitrise-stack-id-its-running-on/11545>\
**Category:** Released\
**Created:** [January 10, 2020, 4:18pm UTC](https://discuss.bitrise.io/t/build-logs-should-print-the-bitrise-stack-id-its-running-on/11545 "2020-01-10T16:18:33Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ariel](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@ariel](https://discuss.bitrise.io/u/ariel)\
**Post date:** [January 10, 2020, 4:18pm UTC](https://discuss.bitrise.io/t/build-logs-should-print-the-bitrise-stack-id-its-running-on/11545/1 "2020-01-10T16:18:33Z")

</div>

## Description of the feature request

It’s important for a build log to indicate what stack it ran on. Especially because it’s possible to switch stacks using the workflow editor, so when inspecting a build log you can’t be sure that its stack corresponds to the stack in the workflow editor.

It could be printed at the very top of the log:

INFO[14:55:20] bitrise runs in Secret Filtering mode  
INFO[14:55:20] bitrise runs in CI mode  
INFO[14:55:20] Running workflow: primary  
Switching to workflow: primary

Stack: Xcode 11.3

---

<div class="post-metadata">

**Author:** ![cathy.harmon](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/cathy.harmon/32/2674_2.png) [@cathy.harmon](https://discuss.bitrise.io/u/cathy.harmon)\
**Post date:** [January 10, 2020, 4:49pm UTC](https://discuss.bitrise.io/t/build-logs-should-print-the-bitrise-stack-id-its-running-on/11545/2 "2020-01-10T16:49:07Z")

</div>

Thanks for the suggestion!

In the meantime, you could add a simple script step:

`echo $BITRISE_STACK_ID`

This should provide the stack info in the log.

---

<div class="post-metadata">

**Author:** ![cathy.harmon](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/cathy.harmon/32/2674_2.png) [@cathy.harmon](https://discuss.bitrise.io/u/cathy.harmon)\
**Post date:** [January 10, 2020, 5:27pm UTC](https://discuss.bitrise.io/t/build-logs-should-print-the-bitrise-stack-id-its-running-on/11545/3 "2020-01-10T17:27:06Z")

</div>

OH - maybe even better! On your dashboard, if you are looking at a particular build you will see information about the build. There is a “more details” you can select and the very next item is the stack that was used for that build!

![35%20PM](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/7/728ca5e35c73985e7450b9990b24ba816296cda7.png)

---

<div class="post-metadata">

**Author:** ![ariel](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@ariel](https://discuss.bitrise.io/u/ariel)\
**Post date:** [January 13, 2020, 10:09am UTC](https://discuss.bitrise.io/t/build-logs-should-print-the-bitrise-stack-id-its-running-on/11545/4 "2020-01-13T10:09:06Z")

</div>

Thanks for the tip, it’s good to have that “More details” section, but it shouldn’t supersede printing the stack in the build log.

---

<div class="post-metadata">

**Author:** ![cathy.harmon](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/cathy.harmon/32/2674_2.png) [@cathy.harmon](https://discuss.bitrise.io/u/cathy.harmon)\
**Post date:** [February 11, 2020, 6:52pm UTC](https://discuss.bitrise.io/t/build-logs-should-print-the-bitrise-stack-id-its-running-on/11545/5 "2020-02-11T18:52:14Z")

</div>

I understand and have to say, I agree. I would like to see that information in the log as well. Please understand, I do not have the authority to approve requests and am not making any commitment that this will be implemented! I’m just keeping my fingers crossed! 🤞 with you!

---

<div class="post-metadata">

**Author:** ![andersbjerken](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/andersbjerken/32/3133_2.png) [@andersbjerken](https://discuss.bitrise.io/u/andersbjerken)\
**Post date:** [August 28, 2020, 6:26am UTC](https://discuss.bitrise.io/t/build-logs-should-print-the-bitrise-stack-id-its-running-on/11545/6 "2020-08-28T06:26:32Z")

</div>

Unfortunately, I don’t get the $BITRISE\_STACK\_ID to work - it’s empty. Is it enabled in your normal public environment? Do I need to do some setup to get it working? I’m using the Xcode 11.5.x stack.

---

<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:** [September 4, 2020, 3:59pm UTC](https://discuss.bitrise.io/t/build-logs-should-print-the-bitrise-stack-id-its-running-on/11545/7 "2020-09-04T15:59:33Z")

</div>

Hi @andersbjerken! Interesting. Can you try $BITRISEIO\_STACK\_ID?
