I've debugged CruiseControl.NET and it looks like the code pulls the label 
from the name of the build log file.  If the build has failed, the name of 
the build log file name will NOT contain the label name (see the functions 
from LogFile.cs below).  If the label is not in the file name, the label 
defaults to "0".  My proposed solution would be to add the label to 
CreateFailedBuildLogFileName().

                private string CreateFailedBuildLogFileName()
                {
                        return 
string.Format(System.Globalization.CultureInfo.CurrentCulture, "{0}{1}.xml", 
FilenamePrefix, FilenameFormattedDateString);
                }

                private string CreateSuccessfulBuildLogFileName()
                {
                        return 
string.Format(System.Globalization.CultureInfo.CurrentCulture,"{0}{1}Lbuild.{2}.xml",
 FilenamePrefix, FilenameFormattedDateString, _label);
                }


On Friday, August 10, 2012 7:32:41 PM UTC-7, Michael Kelley wrote:
>
> I'm having the same issue.  
>
> I run a merge file task that copies the files to the artifact directory. 
>  I can see they are there on the server, but when I try to access the html 
> link on a failed report I get the message:
>
> 'unable to find file '0\TestResult.html' in 'MyProject'"
>
> the '0' leads me to believe that the HTML report plugin is attempting to 
> use build label '0' for failed builds. 
>
> On Wednesday, June 29, 2011 11:52:16 PM UTC-7, Nesavi wrote:
>>
>> Hi 
>>
>> I have recently reconfigured my CCNet-configuration to use the 
>> "htmlReportPlugin". However, when the build fails, I cannot view the 
>> html-output in the dashboard. Only the error message "Unable to find 
>> file" is shown. 
>>
>> This is exact opposite functionally from what I want. When a build 
>> fails, I need to be able to inspect the html-output, and when a build 
>> does not fail, I rather do not care about the html-output. 
>>
>> Has anyone experienced anything similar? 
>>
>> Regards 
>>
>> Thomas
>
>

Reply via email to