build-buddy 1.14.6 → 1.14.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/build_buddy.rb +1 -1
- data/lib/build_buddy/slacker.rb +7 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f80fbebb98a9793bf00d84833b088452dd31274e
|
4
|
+
data.tar.gz: 8f41ea0634449a4a353a5515707c779fa18aeaa5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2dcfc6c114a37dc3e9b7ad3abfc36d07d9b26595aec1311488962c97beabfca5a8b373fb0cf5c9c562ce3a734c0a53f46b8317d2ef38130adbff23bc7f3c3ebf
|
7
|
+
data.tar.gz: 9697bbb136b1b6c009c18c367ac300eafe0a35194a4dec0126a26af867fde5da781e67fbca70df3a966b0c5b1c3def608f51c22012377640d467737273178f6d
|
data/lib/build_buddy.rb
CHANGED
data/lib/build_buddy/slacker.rb
CHANGED
@@ -96,13 +96,13 @@ module BuildBuddy
|
|
96
96
|
unless bb_id.nil?
|
97
97
|
bb_id = bb_id.upcase
|
98
98
|
result = Celluloid::Actor[:scheduler].stop_build(bb_id, slack_user_name)
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
99
|
+
case result
|
100
|
+
when :active, :in_queue
|
101
|
+
response = "OK#{is_from_slack_channel ? ' @' + slack_user_name : ''}, I #{result == :active ? 'stopped' : 'dequeued'} the build with identifier #{bb_id}."
|
102
|
+
info "Build #{bb_id} was stopped by #{slack_user_name}"
|
103
|
+
when :not_found
|
104
|
+
response = "I could not find a queued or active build with that identifier"
|
105
|
+
end
|
106
106
|
else
|
107
107
|
response = "You must specify the build identifier. It can be an active build or a build in the queue."
|
108
108
|
end
|