Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.

Commit

Permalink
send a service message inside a TeamCity build
Browse files Browse the repository at this point in the history
  • Loading branch information
mkuzmin committed Jan 5, 2015
1 parent 0df99b8 commit ccf9ac0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ def self.synopsis

def execute
with_target_vms(nil, {:single_target=>true}) do |machine|
@env.ui.info(machine.guest.capability(:read_ip_address))
ip = machine.guest.capability(:read_ip_address)
message = ENV['TEAMCITY_VERSION'] ? "##teamcity[setParameter name='env.VAGRANT_IP' value='#{ip}']" : ip
@env.ui.info(message)
end
end
end
Expand Down

0 comments on commit ccf9ac0

Please sign in to comment.