How do I edit an Application Variable during a Build?

Hi,

I currently have the problem that I want to change an Application Variable set in Continua during various Builds.I am speaking of a global Build Number which is included into every Build and called at the “Version Format String”. The thing is that I cannot use a normal Project or Configuration Variable because I want the Buildnumber to be used by every Project.

My question is, how can I increase this Variable during a Build by running an Action for example? Or is there any other conclusion on how to increase the Buildnumber for every Project and Configuration?

Regards
Yannick Landeck

Hi Yannick,

We don’t currently have any way to define a global variable. The main issue is that builds can run concurrently and the order of build numbers may be unexpected. We do however plan to investigate options in this area. 

Meanwhile the only way to achieve this functionality would be to write a program or script which increments a number based on an external data store. If run from an Execute Program Action, the program can update the Build Version by writing custom log messages to the console.

e.g. @@continua[setBuildVersion value=‘1.2.3.4’ ] or @@continua[setVariable name=‘versionNumber’ value=‘1’ ]