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

Include SCM Revision in Build Version

Situation

Include SCM revision of the source code used for checkout into version of generated build.

Demonstration

Visit the demo configuration, and trigger a build. Version of the newly generated build will include the SCM revision corresponding to the code being checked out.

Resolution

Visit general setting of the demo configuration. The property next build version is defined as:

3.2.${vars.get("patch").increase()}-rev${repositories.get("commons-collections").revision}

There are two expressions included in the version:

  1. The first expression increases the patch part of the version.
  2. The second expression retrieves current revision of repository commons-collections, which is used to check out source code for the build.

Labels:

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