History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-2105
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Robin Shen
Reporter: Tim Earle
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

BOM and EOF characters displayed when used as part of build version

Created: 30/Jun/14 12:40 PM   Updated: 30/Jun/14 12:40 PM
Component/s: None
Affects Version/s: 5.0.23
Fix Version/s: None

Original Estimate: 3 hours Remaining Estimate: 3 hours Time Spent: Unknown


 Description  « Hide
With the Byte Order Mark in the the version.txt file (used for getting version info from SCM) a '?' is displayed as the first character in the build version on some screens.

The EOF character is also displayed as a space (most views) or a new line/string termination character (e-mail notifications).

The first is resolved by eliminated the BOM from the file, the later by using groovy's trim() method on the string.

Build version string:
${groovy:repositories.get('tfs_repo').sourceViewSupport.readSourceAsString(vars.getValue('tfs_collection')+'/'+vars.getValue('branch_name')+'/build-version.txt').trim()}.${repositories.get("tfs_repo").getRevision()}.${vars.get("patch").increase()}



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.