I've been looking at the instructions from jetbrains on how to install and setup build agents on mac. But it's only for one build agent, not multiple.
There's this .plist file looking like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Debug</key>
<false/>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>jetbrains.teamcity.BuildAgent</string>
<key>OnDemand</key>
<false/>
<key>ProgramArguments</key>
<array>
<string>bash</string>
<string>--login</string>
<string>-c</string>
<string>launcher/bin/TeamCityAgentService-macosx-universal-32 -c ../conf/wrapper.conf</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StandardErrorPath</key>
<string>logs/launchd.err.log</string>
<key>StandardOutPath</key>
<string>logs/launchd.out.log</string>
<key>WorkingDirectory</key>
<string>/opt/teamcity/buildAgent1</string>
</dict>
</plist>
According to the instructions I should run following command to start the agent:
sudo sh buildAgent1/bin/mac.launchd.sh load
Now, it seems to copy the file into here?
/opt/teamcity/buildAgent1/bin/jetbrains.teamcity.BuildAgent.plist
But how do I do when I want to add more? Should I put as many plist-files in /Library/LaunchAgents with different name or should I add more in the existing plist-file? And if so, what's the syntax for adding more things in there?