ciquantum 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
@@ -183,7 +183,12 @@ module CIQuantum
183
183
  @last_build = read_last_build
184
184
  @current_build = read_current_build
185
185
 
186
- Process.kill(0, @current_build.pid) if @current_build && @current_build.pid
186
+ if @current_build && @current_build.pid
187
+ Process.kill(0, @current_build.pid)
188
+ else
189
+ @current_build = nil
190
+ end
191
+
187
192
  rescue Errno::ESRCH
188
193
  @current_build = nil
189
194
  end
@@ -288,7 +293,6 @@ module CIQuantum
288
293
  elsif File.exist?(filename)
289
294
  File.unlink filename
290
295
  end
291
- remove_unused_build
292
296
  end
293
297
 
294
298
  def remove_builds_from limit_build
@@ -1,3 +1,3 @@
1
1
  module CIQuantum
2
- Version = VERSION = "0.0.12"
2
+ Version = VERSION = "0.0.13"
3
3
  end
@@ -27,22 +27,25 @@
27
27
  </style>
28
28
  </head>
29
29
  <body>
30
- <div class="title <%= @build.status.to_s %>"><%= @caption %></div><br>
30
+ <div class="title <%= @build.status.to_s %>"><%= @caption %></div>
31
31
  <div class="text">
32
- Last build <%= @project %> on branch <%= @build.branch %> <%= @build.status.to_s %>.<br><br>
32
+ Last build <%= @project %> on branch <%= @build.branch %> <%= @build.status.to_s %> at <b><%= @build.finished_at.strftime("%Y-%m-%d %H:%M") %></b>.
33
+ Build duration: <b><%= @build.duration %></b> seconds.<br><br>
33
34
 
34
- Details: <%= @build.commit.url %><br>
35
+ Test results: <%= @build.test_results %><br><br>
36
+
37
+ Commit: <a href="<%= build.commit.url %>"><%= @build.commit.sha %></a><br>
35
38
  Author: <%= @build.commit.author %><br>
36
- Message: <%= @build.commit.message %><br>
39
+ Message: <br>
40
+ <%= @build.commit.message %><br><br>
37
41
  </div>
38
42
  <% if @build.status == :failed %>
39
- <br>
40
43
  <code>
41
44
  <pre>
42
45
  Output:<br>
46
+
43
47
  <%= @build.clean_output %>
44
48
  </pre>
45
49
  </code>
46
50
  <% end %>
47
- <br><br><br>
48
51
  </body>
@@ -2,6 +2,9 @@
2
2
 
3
3
  Last build <%= @project %> on branch <%= @build.branch %> <%= @build.status.to_s %>.
4
4
 
5
+ Test results: <%= @build.test_results %>
6
+
7
+ Commit: <%= @build.commit.sha %>
5
8
  Details: <%= @build.commit.url %>
6
9
  Author: <%= @build.commit.author %>
7
10
  Message: <%= @build.commit.message %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ciquantum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-05-31 00:00:00.000000000 Z
14
+ date: 2012-06-01 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler