public ConditionalGetFingerprint GetFingerprint(IRequest request) { // TODO - Maybe should get date from Build type rather than LogFile? ICruiseRequest cruiseRequest = new NameValueCruiseRequestFactory().CreateCruiseRequest(request, urlBuilder, retriever); LogFile logFile = new LogFile(cruiseRequest.BuildSpecifier.BuildName); DateTime buildDate = logFile.Date; ConditionalGetFingerprint logFingerprint = fingerprintFactory.BuildFromDate(buildDate); ConditionalGetFingerprint templateFingerprint = fingerprintFactory.BuildFromFileNames(TEMPLATE_NAME); return logFingerprint.Combine(templateFingerprint); }
public ConditionalGetFingerprint GetFingerprint(IRequest request) { ICruiseRequest cruiseRequest = new NameValueCruiseRequestFactory().CreateCruiseRequest(request, urlBuilder, retriever); IBuildSpecifier mostRecentBuildSpecifier = farmService.GetMostRecentBuildSpecifiers(cruiseRequest.ProjectSpecifier, 1, cruiseRequest.RetrieveSessionToken())[0]; DateTime mostRecentBuildDate = new LogFile(mostRecentBuildSpecifier.BuildName).Date; ConditionalGetFingerprint mostRecentBuildFingerprint = fingerprintFactory.BuildFromDate(mostRecentBuildDate); ConditionalGetFingerprint mostRecentTemplateFingerprint = fingerprintFactory.BuildFromFileNames(@"BuildRows.vm", @"RecentBuilds.vm", @"AllBuilds.vm"); return mostRecentBuildFingerprint.Combine(mostRecentTemplateFingerprint); }
public ConditionalGetFingerprint GetFingerprint(IRequest request) { ICruiseRequest cruiseRequest = new NameValueCruiseRequestFactory().CreateCruiseRequest(request, urlBuilder, retriever); IBuildSpecifier mostRecentBuildSpecifier = farmService.GetMostRecentBuildSpecifiers(cruiseRequest.ProjectSpecifier, 1, cruiseRequest.RetrieveSessionToken())[0]; DateTime mostRecentBuildDate = new LogFile(mostRecentBuildSpecifier.BuildName).Date; ConditionalGetFingerprint mostRecentBuildFingerprint = fingerprintFactory.BuildFromDate(mostRecentBuildDate); ConditionalGetFingerprint mostRecentTemplateFingerprint = fingerprintFactory.BuildFromFileNames(@"BuildRows.vm", @"RecentBuilds.vm", @"AllBuilds.vm"); return(mostRecentBuildFingerprint.Combine(mostRecentTemplateFingerprint)); }