Azure DevOps CI/CD versioning

Hi,

I am experimenting Azure CI/CD. In versioning of the pipeline, I am planning to get the current version of the project then increment it by 1. Do you have any idea how I can do this?

Thanks.

@_pjflo

ideally the options available there for you are

  1. Use the version from package
  2. Use any custom versioning
  3. Auto generate a version number

Getting package version and incrementing by one is not needed also I believe as you would ideally test the bot by uploading to orchestrator and then it would anyways be incremented from the previous version

cheers

As stated above, there are a few options that you can choose. I found the package automatic versioning a bit inconsistent, auto generating the version just creates a string of random numbers which is not ideal for version traceability.

Instead, I use a custom versioning system, where I set up CI/CD variables for a few different versions of the release number (Release.ReleaseId and just the number from Release.ReleaseName), so everytime you create a new release, it auto increments by default, and then you can easily trace back the version in Orchestrator, to the the specific release, PR, etc.