Skip to content

Instantly share code, notes, and snippets.

@seif
seif / default.rb
Last active December 10, 2015 05:38 — forked from anonymous/default.rb
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