Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Install build agent on Mac either via buildAgent.zip or via Java web-start
  2. Prepare conf/buildAgent.properties file
  3. Fix launcher permissions, if needed: chmod +x buildAgent/launcher/bin/*
  4. Load build agent to LaunchDaemon via command:
    Code Block
    sh buildAgent/bin/mac.launchd.sh load
    
    Note

    You have to wait several minutes for the build agent to auto-upgrade from the TeamCity server.

  5. Add a symbolic link to To start the build agent on reboot, you have to copy buildAgent/bin/jetbrains.teamcity.BuildAgent.plist file with to the same name in ~/Library/LaunchAgents directory for automatic startup under current user (you may need to create this directory, if it doesn't exists). To run under root you can create a link in LaunchDaemons directory. And if you don't want to run your agent as root (and you probably don't), you have to edit /Library/LaunchDaemons instead./jetbrains.teamcity.BuildAgent.plist file and add section like
    Code Block
    <key>UserName></key>
    <string>your_user</string>
    Also, make sure that all files under buildAgent directory are owned by your_user to ensure proper agent upgrade process.
  1. To stop build agent, run the following command:
    Code Block
    sh buildAgent/bin/mac.launchd.sh unload
    

...