Include SCM Revision in Build Version

Version 1 by Robin Shen
on Aug 17, 2010 09:00.


 
compared with
Current by Robin Shen
on Jun 23, 2011 13:25.


 
Key
These lines were removed. This word was removed.
These lines were added. This word was added.

View page history


There are 1 changes. View first change.

 h1. Situation
 Include SCM revision of the source code used for checkout into version of generated build.
  
 h1. Demonstration
  Visit the [demo configuration|http://demo.pmease.com/dashboard/48], and trigger a build. Version of the newly generated build will include the SCM revision corresponding to the code being checked out.
  Visit the [demo configuration|http://demo.pmease.com/overview/48], and trigger a build. Version of the newly generated build will include the SCM revision corresponding to the code being checked out.
  
 h1. Resolution
 Visit [general setting of the demo configuration|http://demo.pmease.com/settings/48/general]. The property _next build version_ is defined as:
 {code}3.2.${vars.get("patch").increase()}-rev${repositories.get("commons-collections").revision}{code}
 There are two expressions included in the version:
 # The first expression increases the patch part of the version.
 # The second expression retrieves current revision of repository _commons-collections_, which is used to check out source code for the build.