# Android Gradle versioncode in slack

**URL:** <https://discuss.bitrise.io/t/android-gradle-versioncode-in-slack/1066>\
**Category:** Question & Answer\
**Created:** [March 7, 2017, 4:04pm UTC](https://discuss.bitrise.io/t/android-gradle-versioncode-in-slack/1066 "2017-03-07T16:04:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TonyApD](https://avatars.discourse-cdn.com/v4/letter/t/858c86/32.png) [@TonyApD](https://discuss.bitrise.io/u/TonyApD)\
**Post date:** [March 7, 2017, 4:04pm UTC](https://discuss.bitrise.io/t/android-gradle-versioncode-in-slack/1066/1 "2017-03-07T16:04:57Z")

</div>

Hi,

I would like to show the versionname and versioncode in a slack notification, but can’t find a possibility to do this. I tried to make an app env variable, but this didn’t help. Is there another way to create an environment variable with the values from build.gradle?

---

<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 7, 2017, 4:27pm UTC](https://discuss.bitrise.io/t/android-gradle-versioncode-in-slack/1066/2 "2017-03-07T16:27:39Z")

</div>

From the Manifest file you can read infos with e.g. the **Android Manifest Info** step (there are quite a few others too if you search for _Manifest_ in the step list).

To read from `build.gradle`… I’m not sure if there’s any step for that. But you can expose anything as an env var for subsequent steps using [envman](https://github.com/bitrise-io/envman) - related docs: [http://devcenter.bitrise.io/tips-and-tricks/expose-environment-variable/](http://devcenter.bitrise.io/tips-and-tricks/expose-environment-variable/)

Example:

```auto
envman add --key MY_RELEASE_NOTE --value "This is the release note"

```

I hope this helps, if you’d have any questions, feel free to ask!
