TeamCity - start tomcat
<p>I'm trying to start tomcat with a teamcity deployment build step. The steps below all work with no issues when ran directly, but do not work in a teamcity step. The java window appears and closes, as though the build step kills all child processes when completed. I have tried all of the following:</p>

<p>batch (command line running a batch in sources, or right in teamcity script, and command line, and process build types):</p>

<pre><code>call "%env.CATALINA_HOME%\bin\startup.bat"
start "%env.CATALINA_HOME%\bin\startup.bat"
cmd /k "%env.CATALINA_HOME%\bin\startup.bat"
start "DEV server" "%env.CATALINA_HOME%\bin\startup.bat"
</code></pre>

<p>powershell:</p>

<pre><code># wasnt sure if env var was being carried over, not relevant 
$env:CATALINA_HOME = %env.CATALINA_HOME%
Start-Process "%env.CATALINA_HOME%\bin\startup.bat"
</code></pre>

<p>is there some way to tell TeamCity 10 build step 'hey, leave whatever was started running'?</p>

<p>CATALINA_HOME is an environment variable in the teamcity parameters (env.CATALINA_HOME) and is set to "C:\apache-tomcat" which is correct.</p>

<p>Some additional information: the TC server and agent is running as a user account, the user account has access to all folders (and is local admin) as well.</p>