<< Back to previous view

[QB-2105] BOM and EOF characters displayed when used as part of build version
Created: 30/Jun/14  Updated: 30/Jun/14

Status: Open
Project: QuickBuild
Component/s: None
Affects Version/s: 5.0.23
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Tim Earle Assigned To: Robin Shen
Resolution: Unresolved Votes: 0
Remaining Estimate: 3 hours Time Spent: Unknown
Original Estimate: 3 hours


 Description   
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()}


Generated at Tue May 21 12:32:44 UTC 2024 using JIRA 189.