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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 71d3b93e2aa1cf310586d98a001ad1aeb8a9b6ae
4
- data.tar.gz: 899ef4ca9076a751015a13bf1ce66990e53ba752
3
+ metadata.gz: 444948a3efffc8c19a73322113a38ee5b2edf635
4
+ data.tar.gz: ec96dbb9383db11e3838895427297d5bee752d24
5
5
  SHA512:
6
- metadata.gz: 16965b5a8f3c9e5cf88e84fdd057f5649a2948b16c94cd854a3f7cdf2a42779f074aab6c5e4f3ee1714a99427ec8f06e551d987d271337c99d72992315ac722b
7
- data.tar.gz: 5e702e6e2aab68fe65945e30d8e54503f7325be9226ac1c609ab0a10f342b4fe21e1e84c375c615d288f33e1407c8ed861ccd3c542c64d21316d324d6b70f311
6
+ metadata.gz: 7d53ae6c5ee44e59a6dd49fed6f684aa34d7a262deb37ced5d865bd290a4f4d2aee91f669b6696d5881f3dc2520a24cafa651687838ffc239b3431759be63906
7
+ data.tar.gz: b3df4eee7d005e03f0a60bfd4818e2bb2a09126a79e676059e8400120598d54a810e092c906295d1182c457ec89718b52e1de429ec01b0c54af11ab8878d6043
@@ -9,5 +9,5 @@ require 'build_buddy/recorder'
9
9
  require 'build_buddy/build_data'
10
10
 
11
11
  module BuildBuddy
12
- VERSION = "1.16.0"
12
+ VERSION = "1.16.1"
13
13
  end
@@ -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 += "\n`<#{build_data.server_log_uri}|#{build_data._id.to_s}>` ran for `#{build_data.run_time}`"
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 = [{
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: build-buddy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.0
4
+ version: 1.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Lyon-smith