Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-4803

Source code unavailable for UNSTABLE builds

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: cobertura-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      This problem seems related to bug 17954 :

      If you don't check "Consider only stable builds", and you
      end up with a result that's considered "UNSTABLE",
      then while you do get to see the bar-chart coverage report,
      the beautifully annotated HTML source code is missing.
      When the build is "STABLE" then the nicely annotated
      html reappears.

      The behavior I expected is that if I asked for reports
      to be generated on UNSTABLE builds, that I'd get
      both the coverage bar charts _and_ be able to
      click on the class file names & see the annotated
      source code.

      As noted by David Carr, the relevant source code is:

      http://fisheye4.atlassian.com/browse/hudson/trunk/hudson/plugins/cobertura/src/main/java/hudson/plugins/cobertura/targets/CoverageResult.java?r=HEAD

      Starting at line 160:

      public boolean isSourceFileAvailable() {
      return owner == owner.getProject().getLastStableBuild() &&
      getSourceFile().exists();
      }

        Attachments

          Issue Links

            Activity

            Hide
            eraonel eraonel added a comment -

            Issue fixed and tested.

            //mike

            Show
            eraonel eraonel added a comment - Issue fixed and tested. //mike
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in hudson
            User: : eraonel
            Path:
            trunk/hudson/plugins/cobertura/src/main/java/hudson/plugins/cobertura/targets/CoverageResult.java
            http://jenkins-ci.org/commit/28387
            Log:
            Fix for Bug JENKINS-4803

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : eraonel Path: trunk/hudson/plugins/cobertura/src/main/java/hudson/plugins/cobertura/targets/CoverageResult.java http://jenkins-ci.org/commit/28387 Log: Fix for Bug JENKINS-4803
            Hide
            mindless Alan Harder added a comment -

            fix was released in 0.8.11

            Show
            mindless Alan Harder added a comment - fix was released in 0.8.11

              People

              • Assignee:
                eraonel eraonel
                Reporter:
                a_generic_person a_generic_person
              • Votes:
                6 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: