Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-17507

DotNet Plugin: tab with NCover results not working

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 6.9.0
    • 5.10.1.1, 6.8.1
    • .NET

    Description

      We currently use Atlassian Bamboo Server v5.10.1.1 build 51018 and our NCover code coverage statistic is not being displayed in the build results view.

      If you check the "NCover output will be produced" checkbox under the "Miscellaneous" tab of the job configuration, the "NCover" tab itself will be visible in the build/job result and the "NCOVER_ASSEMBLIES", "NCOVER_CLASSES", ... keys are also being generated during the build and visible under the "Metadata" tab.
      Only the displaying of the results doesn't work.

      So I poked around in the bamboo-dotnet-plugin source code and found the following line in "main/resources/com/atlassian/bamboo/plugin/dotnet/ncover/viewNCoverResult.ftl" (line 10):

      [#assign customDataMap=buildResults.buildResultsSummary.customBuildData /]
      

      This results in a "[runtime] Expression buildResults.buildResultsSummary is undefined on line 10, column 28 in com/atlassian/bamboo/plugin/dotnet/ncover/viewNCoverResult.ftl" exception whenever you try to view the NCover build results.

      After poking around in some other plugins and how those build results work, I changed this line to:

      [#assign customDataMap=buildResultsSummary.customBuildData /]
      

      Now the NCover result is displayed correctly.

      Can you please take a look and check whether this will fix this issue for good?

      Thanks
      Cheers, Chris

      Attachments

        Issue Links

          Activity

            People

              kbrazulewicz Krystian Brazulewicz
              f9bd9824881f Christian Krueger
              Votes:
              5 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: