All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.plugins.buildstability.buildStabilityWidget.erb Maven / Gradle / Ivy

There is a newer version: 1.2.1
Show newest version
<%
   builds_measure = measure('builds')
   success_rate_measure = measure('build_success_density')
   failed_measure = measure('build_failures')
   average_duration_measure = measure('build_average_duration')
   longest_duration_measure = measure('build_longest_duration')
   shortest_duration_measure = measure('build_shortest_duration')
   durations_measure = measure('build_durations')
   results_measure = measure('build_results')
   if builds_measure
%>
  

Build success

<%= format_measure(success_rate_measure, :suffix => '') %> <%= tendency_icon(success_rate_measure, false) %>

<%= format_measure(builds_measure, :suffix => ' builds') %> <%= tendency_icon(builds_measure) %>

<%= format_measure(failed_measure, :suffix => ' failed') %> <%= tendency_icon(failed_measure) %>

Average duration of successful builds

<%= format_measure(average_duration_measure, :suffix => '') %> <%= tendency_icon(average_duration_measure, false) %>

<%= format_measure(longest_duration_measure, :prefix => 'Longest ') %> <%= tendency_icon(longest_duration_measure) %>

<%= format_measure(shortest_duration_measure, :prefix => 'Shortest ') %> <%= tendency_icon(shortest_duration_measure) %>

<% if durations_measure && results_measure %>
<%= chart('ck=buildsbar&w=350&h=200&v=' + durations_measure.data + '&c=' + results_measure.data + '&d=' + configuration('sonar.build-stability.days')) %>
<% end %>
<% end %>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy