Automatic Versioning

ionic

#1

Hi

I am using Ionic 3 with Bitrise. When am trying to send the app to iTunes Connect the app version remains at 0.0.1

I know it pulls this from config.xml but is there a way I can automate the versioning instead of manually changing it in config.xml


#2

Hello there!

I think the Manipulate cordova config.xml step will be able to do the trick for you! :upside_down_face:
you can check out the source code for the step here: https://github.com/platanus/bitrise-step-cordova-config
and the step itself in the workflow editor! :upside_down_face:


#3

Thanks. It allows me to modify the parameters - But I don’t see how I can increment it automatically. Is there is a variable in BITRISE that anyways gets incremented. I do need semver like major changes will bump up by 1 while minor / medium would < 1 ?


#4

I shared more information about this topic at: https://stackoverflow.com/questions/33821137/build-versioning-in-continuous-delivery/33821876#33821876

For a “BUILDNUM” you can use the $BITRISE_BUILD_NUMBER environment variable, which is the build’s number on bitrise.io and is incremented for every single build.


#5

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.