Build Agent Installation Guide

You are viewing an old version (v. 22) of this page.
The latest version is v. 36, last edited on Dec 24, 2009 (view differences | )
<< View previous version | view page history | view next version >>

Supported operating systems

  • Windows 2000/XP/Vista, 32 bit and 64 bit, x86 architecture
  • Linux, 32 bit and 64 bit, x86 architecture and PowerPC architecture
  • Mac OS X, 32 bit and 64 bit
  • Solaris, 32 bit and 64 bit, Sparc and X86 architecture
  • FreeBSD, 32 bit and 64 bit, x86 architecture
  • AIX, 32 bit and 64 bit, PowerPC architecture
  • HP-UX, 32 bit and 64 bit, IA and PARISC architecture

Memory requirement

  • 64M minimum, 256M recommended

Installation Steps

  1. Make sure QuickBuild server is up and running, login to QuickBuild as administrator and navigate to Grid tab, click the the link download build agent to download build agent of desired platform. Extract downloaded file into the directory where the build agent should be installed.
  2. Make sure you have Sun JDK5 or JDK6 installed. For JDK5, QuickBuild requires at least JDK5 update 11. Download the appropriate JDK version from http://java.sun.com if needed.
  3. Make sure the java command exists in the system path; if not, you will need to modify the file conf/wrapper.conf under the build agent's installation directory, and point the entry wrapper.java.command to path of the java command.
  4. For Windows platform, run bin/agent.bat to start the agent; for other platforms, change to the bin directory, and run the following command to start the agent:
    ./agent.sh console
    

    For Solaris platform: If quickbuild complains about missing the file libm.so.2, please just create the file libm.so.2 by doing ln -s /usr/lib/libm.so.1 /usr/lib/libm.so.2

    During the start up, the agent will contact the server. If the server is down, the agent will wait until the server is up and running, and then it continue its start up process.
    NOTE:

    • This will run QuickBuild agent in console mode. To stop the agent, just close the console window (on Windows platforms) or press Ctrl-C (on platforms other than Windows).
    • To install QuickBuild as NT service on Windows platforms, just run service-install.bat. After the script finishes, you will find a service named QuickBuild Build Agent in the service control panel. To uninstall the service, just run service_uninstall.bat.
    • To install QuickBuild as a daemon process on non-Windows platforms, just run command:
      ./agent.sh start
      

      The daemon process can be stopped by running the command:

      ./agent.sh stop
      
    • Be default, the build agent will run on port 8811. If this port is used by other process, you can change the port number to an unused port by editing the file conf/node.properties.
  5. After the agent starts up, it may complain with the message "This build agent is not authorized to join the grid". Upon this, you need to login to QuickBuild server and authorize the agent to join the grid. Refer to [Configuring Build Grid] for how to authorize build agents to join grid.

Install QuickBuild Agent As System Service

[Mac OS#mac_os]

From Mac OS X v10.4 Tiger, Apple introduced a new system startup program called launchd. QuickBuild agent can be installed as a service by creating a configuration file com.pmease.quickbuild.plist in direcory /Library/LaunchDaemons, below is a skeleton for it:

<?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>Label</key>
	<string>com.pmease.quickbuild</string>
	<key>ProgramArguments</key>
	<array>
		<string>/Library/Application Support/VMware Fusion/boot.sh</string>
		<string>start</string>
	</array>
	<key>RunAtLoad</key>
	<true/>
</dict>
</plist>

To run QuickBuild Agent using a specified user, you may add below property to com.pmease.quickbuild.plist:

<key>UserName</key>
<string>my_user_name</string>

NOTE Please make sure the user name you specified here have the full access rights to your QuickBuild agent installation directory.

For more information on launchd, please read below reference:

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.