|
In TeamCity a build agent contains two processes:
Whether you run a build agent via the agent.bat|sh script or as a Windows service, at first the agent launcher starts and then it starts the agent. Agent Launcher PropertiesBuild Agent Is Run Via ScriptBefore you run the <Agent Home>\bin\agent.bat|sh script, set the TEAMCITY_LAUNCHER_OPTS environment variable. Build Agent Is Run As ServiceIn the <Agent Home>\launcher\conf\wrapper.conf file, add the following lines (one per option, the N number should increase): wrapper.java.additional.<N>
Agent PropertiesBuild Agent Is Run Via ScriptBefore you run the <Agent Home>\bin\agent.bat|sh script, set the following environment variables:
Build Agent Is Run As ServiceIn the <Agent Home>\launcher\conf\wrapper.conf file, add the following lines (one per option): wrapper.app.parameter.<N>
See Also:
|