Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.1
-
Fix Version/s: 1.1
-
Labels:None
-
Environment:only Git support
-
Patch Submitted:Yes
-
Number of attachments :
Description
The main idea of this feature is to provide an additional parameter to buildNumeber plugin to get out from SCM the short revision number.
Exemple - the git 'normal' commit ID is something like this : b0c1c69be579175e63eeb1c056d607f01ab61e96
What the improvement should do is to take the parameter <shortRevisionLength>5</shortRevisionLength> from the config and ask the command git rev-parse --short=5 to give a short id. The result should be b0c1c.
The work I made consists of 2 separate patches:
1. BuildNumberPlugin
2. maven-scm-plugin 1.7-SNAPSHOT
The associated issue request for maven-scm plugin with a patch is here : http://jira.codehaus.org/browse/SCM-664