annotate teamcity-plugin.xml @ 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 63fcc9b14221
children 7a4ecffe34a9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
75
a74563111be4 teamcity-plugin.xml added
Pavel.Sher
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
a74563111be4 teamcity-plugin.xml added
Pavel.Sher
parents:
diff changeset
2 <teamcity-plugin xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
a74563111be4 teamcity-plugin.xml added
Pavel.Sher
parents:
diff changeset
3 xsi:noNamespaceSchemaLocation="urn:shemas-jetbrains-com:teamcity-plugin-v1-xml">
a74563111be4 teamcity-plugin.xml added
Pavel.Sher
parents:
diff changeset
4 <info>
a74563111be4 teamcity-plugin.xml added
Pavel.Sher
parents:
diff changeset
5 <name>mercurial</name>
104
8cc11b0cbbd4 add vendor to teamcity-plugin.xml
Pavel.Sher
parents: 75
diff changeset
6 <display-name>VCS Support: Mercurial</display-name>
8cc11b0cbbd4 add vendor to teamcity-plugin.xml
Pavel.Sher
parents: 75
diff changeset
7 <version>@Plugin_Version@</version>
8cc11b0cbbd4 add vendor to teamcity-plugin.xml
Pavel.Sher
parents: 75
diff changeset
8 <vendor>
108
63fcc9b14221 update teamcity-common.xml and teamcity-plugin.xml
C:\Users\pavel.sher\AppData\Roaming\The Bat!
parents: 104
diff changeset
9 <name>JetBrains, s.r.o.</name>
63fcc9b14221 update teamcity-common.xml and teamcity-plugin.xml
C:\Users\pavel.sher\AppData\Roaming\The Bat!
parents: 104
diff changeset
10 <url>http://www.jetbrains.com</url>
104
8cc11b0cbbd4 add vendor to teamcity-plugin.xml
Pavel.Sher
parents: 75
diff changeset
11 </vendor>
75
a74563111be4 teamcity-plugin.xml added
Pavel.Sher
parents:
diff changeset
12 </info>
a74563111be4 teamcity-plugin.xml added
Pavel.Sher
parents:
diff changeset
13 <deployment use-separate-classloader="false"/>
a74563111be4 teamcity-plugin.xml added
Pavel.Sher
parents:
diff changeset
14 </teamcity-plugin>