Great idea, thank you! :) I've updated the pull request accordingly.
I used an integration property name of CCNetBuildGuid. On Tue, May 15, 2012 at 3:15 AM, <[email protected]> wrote: > Issue #116 has been updated by Ruben Willems. > > > I meant : where you placed the CCNetBuildTime2 property, with the cleaned > up format, > just make it a guid : Guid.NewGuid iso re-formatting the build date and > time > > the property name could be CCNetBuildId or something > > this way it's more usable for other scenario's also > > and no problem with time adjustments either :-) > ------------------------------ > Feature #116: replacing ':' (colon) characters in CCNetBuildTime with '_' > (underscore) within ccnet.config<http://www.cruisecontrolnet.org/issues/116> > > - Author: Rami AbuGhazaleh > - Status: New > - Priority: Normal > - Assignee: > - Category: Configuration > - Target version: > > Hi. > > I would like to be able to replace the ':' (colon) characters in > CCNetBuildTime with '_' (underscore) within ccnet.config. > > This is because I have a project with an exec task that needs to be passed > a unique file name. > > The combination of $[$CCNetBuildDate] and $[$CCNetBuildTime] seem to be > the only integration properties I can use that are unique for each build > (CCNetNumericLabel does not get incremented on build failure\exception). > > However, CCNetBuildTime has the colon character and this is an invalid > path character and cannot be used as a file name. > > The results file is then merged in the publishers block and that is why I > need the sanitized file name in ccnet.config. > > I'm thinking this could be done in several ways: > 1. Provide another integration property "CCNetBuildTimeSafe" for example > 2. Provide a unique build number that automatically gets incremented for > every build regardless of failure\success. > 3. Provide a way to dynamically replace strings within ccnet.config > > Thank you. > ------------------------------ > > You have received this notification because you have either subscribed to > it, or are involved in it. > To change your notification preferences, please click here: > http://www.cruisecontrolnet.org/my/account >
