view .hgtags @ 280:8c1fd2e565ae

Implement mercurial detection on the agents When agent starts, hg-plugin detects installed hg (searches it in the $PATH). If plugin is able to run hg and hg has an approrpiate version (1.5.2+), then plugin reports path to hg in the 'teamcity.hg.agent.path' parameter. This parameter can be used in the "HG command path" field in a VCS root settings, configurations with such root will be run only on agents which report path to hg. Also user can set this parameter manually in the buildAgent.properties. A server side of plugin first checks value of internal property 'teamcity.hg.server.path' and if property is set, its value is used. Second, plugin tries to use path from the settings of VCS root: if path is equal to '%teamcity.hg.agent.path%' - use 'hg' as path, otherwise use a value from the root. With such order old setups, where path in the VCS root was used on both server and agent, will continue to work. New VCS roots with references in the path will also work if hg is in the $PATH on the server or internal property is set.
author Dmitry Neverov <dmitry.neverov@jetbrains.com>
date Fri, 19 Aug 2011 15:21:38 +0400
parents 43bb90fd750e
children 6be1f6c33f52 73fc84ac1d98
line wrap: on
line source

9e60b6d1e5fd8ed9a0c4b9582facc727a16bdcdb build-snapshot-124
b454327bcb66c35f17ae171a794d540768fc32b4 build-snapshot-125
0b54319af42cd1e74c1a658d61ecf1c3e6fc91a1 build-snapshot-126
3a41cf31c90e299237fb1258f9ab363e7e0f9454 build-snapshot-127
9c29eab7a27c80045948efb1cc094b96b4d82ea5 build-snapshot-128
45a4b3169272f8d21ff802b25a28e16b46177d26 build-snapshot-129
ff587c27a2d07607242cc02919c3db8cd4808ca2 build-snapshot-130
9a52e7a891ce7bbb0f5df0f94483f1636359e73d build-snapshot-131
df6ed5ed6c105ba2c65a3df1e3dc556f7882681b build-snapshot-133
9998e944a4f2b19d10621d06c230144c5a68204b build-snapshot-134