# Adjust BITRISE\_BUILD\_NUMBER

**URL:** https://discuss.bitrise.io/t/adjust-bitrise-build-number/1608
**Category:** Step Dev
**Created:** [April 30, 2017, 10:27am UTC](https://discuss.bitrise.io/t/adjust-bitrise-build-number/1608 "2017-04-30T10:27:08Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![stefandevogelaere](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/stefandevogelaere/32/73_2.png) [@stefandevogelaere](https://discuss.bitrise.io/u/stefandevogelaere)
#### Post date: [April 30, 2017, 10:27am UTC](https://discuss.bitrise.io/t/adjust-bitrise-build-number/1608/1 "2017-04-30T10:27:08Z")

</div>

Hi,  
In some of my workflow I needed to adjust the BITRISE\_BUILD\_NUMBER (increase). Because I use the buildnumber if my version of my package - but it’s a bit offset the correct number, I use following script step:

```
let "BITRISE_BUILD_NUMBER=BITRISE_BUILD_NUMBER+4"
envman add --key BITRISE_BUILD_NUMBER --value "${BITRISE_BUILD_NUMBER}"

```

I just want to know if this the correct way to do it? Or maybe there is another way to do this.  
If this is correct, would it be OK that I create a Custom Step to adjust this variable (with increase, decrease option)?

---

<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: [April 30, 2017, 11:50am UTC](https://discuss.bitrise.io/t/adjust-bitrise-build-number/1608/2 "2017-04-30T11:50:21Z")

</div>

Sure, that should work, although if you do that your build number will not match the one on the [bitrise.io](http://bitrise.io) UI.

You can find the related feature request at [Set bitrise build number](http://discuss.bitrise.io/t/set-bitrise-build-number/709/5) and the discussion includes a script too, but yours should work as well.
