cigale 0.4.1 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/cigale/property.rb +2 -0
- data/lib/cigale/property/slack.rb +25 -0
- data/lib/cigale/publisher.rb +2 -0
- data/lib/cigale/publisher/slack.rb +8 -0
- data/lib/cigale/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 61cb724282c634cac85aa948c86661eab3250190
|
|
4
|
+
data.tar.gz: d15681417387893e0e72d69136a7dd0cb24050d3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d2bc9e61ed510ab00ac6d98d1b0ab04e6273c2dc1a261e46e1f5e48919c17fcff5fa7668d52a948fd2f913bbcfe6c1552aa87d162336776705bd7e3aaf143628
|
|
7
|
+
data.tar.gz: 5d63adc2678c1f4a71f2fef46a4e12ce3ceefd915266adacf61ab9620209631b535783353bffd37462e99e32c03d6d97dc193f4c33a484fada14ce3428f79b09
|
data/CHANGELOG.md
CHANGED
data/lib/cigale/property.rb
CHANGED
|
@@ -13,6 +13,7 @@ module Cigale::Property
|
|
|
13
13
|
require "cigale/property/heavy-job"
|
|
14
14
|
require "cigale/property/throttle"
|
|
15
15
|
require "cigale/property/zeromq-event"
|
|
16
|
+
require "cigale/property/slack"
|
|
16
17
|
|
|
17
18
|
class CustomProperty
|
|
18
19
|
end
|
|
@@ -30,6 +31,7 @@ module Cigale::Property
|
|
|
30
31
|
"heavy-job" => "hudson.plugins.heavy__job.HeavyJobProperty",
|
|
31
32
|
"throttle" => "hudson.plugins.throttleconcurrents.ThrottleJobProperty",
|
|
32
33
|
"zeromq-event" => "org.jenkinsci.plugins.ZMQEventPublisher.HudsonNotificationProperty",
|
|
34
|
+
"slack" => ["jenkins.plugins.slack.SlackNotifier_-SlackJobProperty", :plugin => "slack@1.8.1"],
|
|
33
35
|
"copyartifact" => CustomProperty.new,
|
|
34
36
|
}
|
|
35
37
|
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
module Cigale::Property
|
|
3
|
+
def translate_slack_property (xml, pdef)
|
|
4
|
+
xml.teamDomain pdef["team-domain"]
|
|
5
|
+
xml.token pdef["token"]
|
|
6
|
+
xml.room pdef["room"]
|
|
7
|
+
|
|
8
|
+
notify = toh pdef["notify"]
|
|
9
|
+
|
|
10
|
+
xml.startNotification boolp(notify["start"], false)
|
|
11
|
+
xml.startNotification boolp(notify["success"], false)
|
|
12
|
+
xml.startNotification boolp(notify["aborted"], false)
|
|
13
|
+
xml.startNotification boolp(notify["not-built"], false)
|
|
14
|
+
xml.startNotification boolp(notify["unstable"], false)
|
|
15
|
+
xml.startNotification boolp(notify["failure"], false)
|
|
16
|
+
xml.startNotification boolp(notify["back-to-normal"], false)
|
|
17
|
+
xml.startNotification boolp(notify["repeated-failure"], false)
|
|
18
|
+
|
|
19
|
+
xml.startNotification boolp(pdef["include-test-summary"], false)
|
|
20
|
+
xml.startNotification boolp(notify["show-commit-list"], false)
|
|
21
|
+
|
|
22
|
+
xml.startNotification !!pdef["custom-message"]
|
|
23
|
+
xml.customMessage pdef["custom-message"]
|
|
24
|
+
end
|
|
25
|
+
end
|
data/lib/cigale/publisher.rb
CHANGED
|
@@ -81,6 +81,7 @@ module Cigale::Publisher
|
|
|
81
81
|
require "cigale/publisher/workspace-cleanup"
|
|
82
82
|
require "cigale/publisher/xml-summary"
|
|
83
83
|
require "cigale/publisher/xunit"
|
|
84
|
+
require "cigale/publisher/slack"
|
|
84
85
|
|
|
85
86
|
class CustomPublisher
|
|
86
87
|
end
|
|
@@ -168,6 +169,7 @@ module Cigale::Publisher
|
|
|
168
169
|
"workspace-cleanup" => ["hudson.plugins.ws__cleanup.WsCleanup", :plugin => "ws-cleanup@0.14"],
|
|
169
170
|
"xml-summary" => "hudson.plugins.summary__report.ACIPluginPublisher",
|
|
170
171
|
"xunit" => "xunit",
|
|
172
|
+
"slack" => ["jenkins.plugins.slack.SlackNotifier", :plugin => "slack@1.8.1"],
|
|
171
173
|
}
|
|
172
174
|
end
|
|
173
175
|
|
data/lib/cigale/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cigale
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Amos Wenger
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-12-
|
|
11
|
+
date: 2015-12-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -199,6 +199,7 @@ files:
|
|
|
199
199
|
- lib/cigale/property/least-load.rb
|
|
200
200
|
- lib/cigale/property/ownership.rb
|
|
201
201
|
- lib/cigale/property/sidebar.rb
|
|
202
|
+
- lib/cigale/property/slack.rb
|
|
202
203
|
- lib/cigale/property/slave-utilization.rb
|
|
203
204
|
- lib/cigale/property/throttle.rb
|
|
204
205
|
- lib/cigale/property/zeromq-event.rb
|
|
@@ -269,6 +270,7 @@ files:
|
|
|
269
270
|
- lib/cigale/publisher/scp.rb
|
|
270
271
|
- lib/cigale/publisher/shining-panda.rb
|
|
271
272
|
- lib/cigale/publisher/sitemonitor.rb
|
|
273
|
+
- lib/cigale/publisher/slack.rb
|
|
272
274
|
- lib/cigale/publisher/sloccount.rb
|
|
273
275
|
- lib/cigale/publisher/sonar.rb
|
|
274
276
|
- lib/cigale/publisher/ssh.rb
|