• Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • sloccount-plugin
    • None

      add a new graph (churn) that shows only deltas build to build.

      with large baseline (>1k LOC) change build to build is invisible, yet thats more likely to be the where the interesting stuff is

          [JENKINS-14504] sloccount churn graph

          Michal Turek added a comment -

          Michal Turek added a comment - Implemented in https://github.com/mixalturek/sloccount-plugin/commit/1c05513d9b5ebbf536ec7d365f81438d4bb74704 .

          Code changed in jenkins
          User: Michal Turek
          Path:
          src/main/java/hudson/plugins/sloccount/ReportSummary.java
          src/main/java/hudson/plugins/sloccount/SloccountChartBuilder.java
          src/main/java/hudson/plugins/sloccount/SloccountProjectAction.java
          src/main/resources/hudson/plugins/sloccount/Messages.properties
          src/main/resources/hudson/plugins/sloccount/SloccountProjectAction/floatingBox.jelly
          http://jenkins-ci.org/commit/sloccount-plugin/1c05513d9b5ebbf536ec7d365f81438d4bb74704
          Log:
          JENKINS-14504 sloccount churn graph

          • Trend graph with values computed as delta between builds N and N-1 implemented.
          • SLOCCount plugin now displays two graphs: absolute and delta.
          • Indentation fixed.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Michal Turek Path: src/main/java/hudson/plugins/sloccount/ReportSummary.java src/main/java/hudson/plugins/sloccount/SloccountChartBuilder.java src/main/java/hudson/plugins/sloccount/SloccountProjectAction.java src/main/resources/hudson/plugins/sloccount/Messages.properties src/main/resources/hudson/plugins/sloccount/SloccountProjectAction/floatingBox.jelly http://jenkins-ci.org/commit/sloccount-plugin/1c05513d9b5ebbf536ec7d365f81438d4bb74704 Log: JENKINS-14504 sloccount churn graph Trend graph with values computed as delta between builds N and N-1 implemented. SLOCCount plugin now displays two graphs: absolute and delta. Indentation fixed.

          Code changed in jenkins
          User: Michal Turek
          Path:
          src/main/java/hudson/plugins/sloccount/SloccountBuildAction.java
          src/main/java/hudson/plugins/sloccount/SloccountResult.java
          http://jenkins-ci.org/commit/sloccount-plugin/cdf60a3551d3146ed23790d3603ec11889378e9b
          Log:
          JENKINS-14504 sloccount churn graph

          • Plugin version 1.10 and less stored empty data set to build.xml even for builds that failed. This causes unwanted high peaks in trend with deltas.
          • Builds with no data are excluded to fix the issue.
          • Indentation fixed.
          • Example of legacy build.xml data:

          <hudson.plugins.sloccount.SloccountBuildAction plugin="sloccount@1.10">
          <build class="build" reference="../../.."/>
          <result>
          <report>
          <files class="linked-hash-map"/>
          <lineCount>0</lineCount>
          <folders class="linked-hash-map"/>
          <languages class="linked-hash-map"/>
          </report>
          <owner class="build" reference="../../../.."/>
          </result>
          </hudson.plugins.sloccount.SloccountBuildAction>

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Michal Turek Path: src/main/java/hudson/plugins/sloccount/SloccountBuildAction.java src/main/java/hudson/plugins/sloccount/SloccountResult.java http://jenkins-ci.org/commit/sloccount-plugin/cdf60a3551d3146ed23790d3603ec11889378e9b Log: JENKINS-14504 sloccount churn graph Plugin version 1.10 and less stored empty data set to build.xml even for builds that failed. This causes unwanted high peaks in trend with deltas. Builds with no data are excluded to fix the issue. Indentation fixed. Example of legacy build.xml data: <hudson.plugins.sloccount.SloccountBuildAction plugin="sloccount@1.10"> <build class="build" reference="../../.."/> <result> <report> <files class="linked-hash-map"/> <lineCount>0</lineCount> <folders class="linked-hash-map"/> <languages class="linked-hash-map"/> </report> <owner class="build" reference="../../../.."/> </result> </hudson.plugins.sloccount.SloccountBuildAction>

            mixalturek Michal Turek
            moncreaff Greg Moncreaff
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: