This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tc = Teamcity::Utility.new(:server=>"#{node.teamcity.server}", :port => 80, :username => "#{node.teamcity.username}", :password => "#{node.teamcity.password}") | |
build_version = tc.get_latest_build('bt134') | |
teamcity_build_type = 'bt134' | |
teamcity_build "download-artefact" do | |
build_type teamcity_build_type | |
version build_version | |
destination "C:\\Temp\\#{teamcity_build_type}\\#{build_version}.zip" | |
overwrite true |