TeamCity pass parameter from server to build agent
<p>I want to get commit count on build agent for manual versioning,</p>

<pre><code>version = git rev-list --count "branchname"
</code></pre>

<p><code>git</code> is not available on build agent because I have checkout "Automatically on server".</p>

<p>Is there a way to pass <code>version</code> from checkout server to build agent? (without changing <code>VCS checkout mode</code> to build agent)?</p>

<p>I'm running latest 9.1.6 version TC.</p>