This documentation relates to QuickBuild 5.0.x
Select here if you are using a different version

Working with Cloud Profiles

You are viewing an old version (v. 7) of this page.
The latest version is v. 15, last edited on Dec 13, 2012 (view differences | )
<< View previous version | view page history | view next version >>

Create build agent AMI

  1. Manually launch an instance of desired platform using your EC2 account, and install Java Runtime Environment version 6 or higher on the launched instance. You may also want to install other software required by your build to this instance.
  2. Download QuickBuild plugin package from Grid page, and upload it to launched instance above.
  3. Login to the EC2 instance and extract build agent package to your chosen agent installation directory.
  4. Edit file <agent install dir>/conf/wrapper.conf" to define property _wrapper.java.command to point to java binary if it is not in system path.
  5. Edit file <agent install dir>/conf/node.properties" to configure QuickBuild server URL. You may also run _<agent install dir>/bin/config.(bat|sh) to config node properties such as SSL setting. However this program requires GUI terminal, and if your console does not have that facility, you may run this program at your desktop to populate the node.properties, then transfer this file to launched instance.
  6. Edit file _<agent install dir>/conf/attributes.properties" to define necessary user attributes for the build agent.
  7. For Unix instances, edit file _<agent install dir>/bin/agent.sh" to uncomment below line and assign an OS user to run the agent in service mode.
    #RUN_AS_USER=
    

    The service user should own the agent installation directory.

  8. Run <agent install dir>/bin/agent.(sh|bat) install to install agent as system service.
  9. Edit security group associated with the launched instance to allow incoming connections to agent port.
  10. Restart launched node. After the system comes up, the build agent should be started automatically and will contact QuickBuild server to download necessary plugins. You may check file <agent install dir>/logs/console.log for the progress and possible errors.
  11. If agent starts up normally, you should be able to see this agent appears at unauthorized nodes list at grid page. Authorize the node and wait for a while to see if it can come active.
  12. If the agent comes active, create a EBS AMI for the launched instance and this AMI can then be used to define your cloud profiles to run certain builds. After build agent AMI is created, you may terminate the manually launched instance.
  13. You can certainly define multiple build agent AMIs for multiple cloud profiles to satisfy different build requirements.
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.