jenkinsgrowler 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/jenkinsgrowler.rb +8 -6
  2. metadata +1 -1
@@ -57,20 +57,22 @@ def build_status(job)
57
57
  buildTime = buildOutput['id']
58
58
  duration = buildOutput['duration']
59
59
 
60
- if building or !changed_recently(buildTime, job) then
61
- return
62
- end
63
-
64
60
  result = buildOutput['result']
65
61
  description = buildOutput['fullDisplayName']
66
62
  url = buildOutput['url']
67
-
68
63
  comments = ''
69
64
  buildOutput['changeSet']['items'].each do |item|
70
65
  comments += item['comment']
71
66
  end
67
+
68
+ puts "#{result}, #{description}, #{url}\n#{comments}"
69
+
70
+ if building or !changed_recently(buildTime, job) then
71
+ return
72
+ end
73
+
74
+ %x[ growlnotify -n 'Jenkins' -t "#{result}" -m "#{description}\n#{comments}" --image "#{Dir.pwd}/lib/images/icon_64x64.png" -s --url "#{$ciBaseUrl}/job/#{job}/lastBuild"]
72
75
 
73
- %x[ growlnotify -t "#{result}" -m "#{description}\n#{comments}" ]
74
76
  end
75
77
 
76
78
  while true do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jenkinsgrowler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: