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

Read Version from File


Control build version with a text file stored in SCM.


  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.


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

import com.pmease.quickbuild.util.FileUtils
def repo = repositories.get("repo")
return repo.sourceViewSupport.readSourceAsString("build/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:
Wait Image 
Looking for a label? Just start typing.