build-buddy 1.16.0 → 1.16.1
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/lib/build_buddy.rb +1 -1
- data/lib/build_buddy/slacker.rb +6 -2
- 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: 444948a3efffc8c19a73322113a38ee5b2edf635
|
|
4
|
+
data.tar.gz: ec96dbb9383db11e3838895427297d5bee752d24
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7d53ae6c5ee44e59a6dd49fed6f684aa34d7a262deb37ced5d865bd290a4f4d2aee91f669b6696d5881f3dc2520a24cafa651687838ffc239b3431759be63906
|
|
7
|
+
data.tar.gz: b3df4eee7d005e03f0a60bfd4818e2bb2a09126a79e676059e8400120598d54a810e092c906295d1182c457ec89718b52e1de429ec01b0c54af11ab8878d6043
|
data/lib/build_buddy.rb
CHANGED
data/lib/build_buddy/slacker.rb
CHANGED
|
@@ -376,9 +376,13 @@ Stop any running build with `stop build bb-xxx`. Use `show queue` to get a vali
|
|
|
376
376
|
|
|
377
377
|
branch_url, branch_name = build_data.url_and_branch_name
|
|
378
378
|
if build_data.type == :branch
|
|
379
|
+
version = build_data.metrics["version"]
|
|
380
|
+
unless version.nil?
|
|
381
|
+
attachment_message += "*#{version}*\n"
|
|
382
|
+
end
|
|
379
383
|
info "Branch build #{status_verb}"
|
|
380
384
|
else
|
|
381
|
-
attachment_message += "<#{branch_url}|*#{build_data.pull_request_title}
|
|
385
|
+
attachment_message += "<#{branch_url}|*#{build_data.pull_request_title}*>\n"
|
|
382
386
|
info "Pull request build #{status_verb}"
|
|
383
387
|
end
|
|
384
388
|
|
|
@@ -386,7 +390,7 @@ Stop any running build with `stop build bb-xxx`. Use `show queue` to get a vali
|
|
|
386
390
|
if build_data.termination_type == :killed and build_data.stopped_by != nil
|
|
387
391
|
message += " by *@#{build_data.stopped_by}*"
|
|
388
392
|
end
|
|
389
|
-
attachment_message += "
|
|
393
|
+
attachment_message += "`<#{build_data.server_log_uri}|#{build_data._id.to_s}>` ran for `#{build_data.run_time}`"
|
|
390
394
|
|
|
391
395
|
# See https://api.slack.com/docs/attachments for more information about formatting Slack attachments
|
|
392
396
|
attachments = [{
|