Automatic build numbering

How do I get Bitrise to autonumber my builds?

To set the build number of your app to the build’s build number you can use the Set Xcode Project Build Number in case of an iOS app, and in case of Android you can search for “manifest” in the step list to see steps which can modify the android manifest file, or you can reference the environment variable in your Gradle config file directly (no build step required in that case), see: Trying to use $BITRISE_BUILD_NUMBER in my gradle but kept running into build fail - #6 by viktorbenei

In general, you can get the build’s build number through the BITRISE_BUILD_NUMBER environment variable ( and use it in any step or script.

Also related: