This documentation relates to QuickBuild 10.0.x
Select here if you are using a different version

Read Version from File

You are viewing an old version (v. 1) of this page.
The latest version is v. 2, last edited on Feb 25, 2020 (view differences | )
view page history | view next version >>

Situation

Control build version with a text file stored in SCM.

Demonstration

  1. Run the demo configuration.
  2. Navigate to workspace area of the configuration and check content of version.txt. Version of the newly generated build will remain the same as content of this file.

Resolution

Check general setting of the demo configuration, the next version is defined as below:

${groovy:repositories.get("repo").sourceViewSupport.readSourceAsString("/demos/componentA/trunk/version.txt")}

This tells QuickBuild to read content of file /demos/componentA/trunk/version.txt from SCM repository and return it as version of next build.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.