Dashboard > GBuild > Home > Feeding the Queue > Information > Page Comparison
Feeding the Queue
compared with
Current by David Blevins
on Jan 07, 2006 04:31.

(show comment)
These lines were removed. This word was removed.
These lines were added. This word was added.

View page history

There are 1 changes. View first change.

 h1. Directory Scanner
 There is a directory scanning component which watches the following directory for properties files that declare build definitions to be added to the BUILD.TASKS queue.
 h1. Build definitions properties files
 The properties files follow this format
 build.main = clean m:checkout m:build
 This would result in exactly one build definition put onto the queue.
 You don't need to create one properties file for each build definition and replicate all the project data over and over again. Instead you can just add several build.* properties to the file, each will be turned into a build definition and added to the BUILT.TASKS queue. For example this is one we use for the J2EE TCK (it doesn't reveal anything about the tck so it's fairly harmless to show).
 build.three= clean tck:tomcat three tck:work-status
 build.four= clean tck:tomcat four tck:work-status
 build.five= clean tck:tomcat five tck:work-status
 h1. In action
 When that file is added to the gbuild-agent-1.0-SNAPSHOT/apps/gbuild-agent/tasks directory, you'll see something like the following in the log file.
 2005-12-19 23:57:39,845 [Thread-1] DEBUG BuildAgent:build-producer - File Discovered: /home/dblevins/gbuild-agent-1.0-SNAPSHOT/apps/gbuild-agent/tasks/tck-tomcat-large.properties
 2005-12-19 23:57:49,849 [Thread-1] INFO BuildAgent:build-producer - New File: /home/dblevins/gbuild-agent-1.0-SNAPSHOT/apps/gbuild-agent/tasks/tck-tomcat-large.properties
 2005-12-19 23:57:49,854 [Thread-1] INFO BuildAgent:build-producer - Processing /home/dblevins/gbuild-agent-1.0-SNAPSHOT/apps/gbuild-agent/tasks/tck-tomcat-large.properties
 2005-12-19 23:57:49,854 [Thread-1] INFO BuildAgent:build-producer - Project - 52 - geronimo-tck-tomcat 1.0
 2005-12-19 23:57:49,855 [Thread-1] INFO BuildAgent:build-producer - Build - 0 - build.four clean tck:tomcat four tck:work-status
 2005-12-19 23:57:49,856 [Thread-1] INFO BuildAgent:build-producer - Build - 1 - build.three clean tck:tomcat three tck:work-status
 2005-12-19 23:57:49,861 [Thread-1] INFO BuildAgent:build-producer - Build - 2 - build.five clean tck:tomcat five tck:work-status
  This means you've just added three build definitions to the BUILD.TASKS queue. Assuming there are agents ready and waiting for work, you'll see the following in the log file shortly after.
 2005-12-19 23:57:49,876 [Thread-4] INFO BuildAgent:build-activity - [kenny.gbuild.org:] geronimo-tck-tomcat-1.0 - five 2 - Started
 2005-12-19 23:57:50,047 [Thread-4] INFO BuildAgent:build-activity - [jimmy:] geronimo-tck-tomcat-1.0 - four 0 - Started
 2005-12-19 23:57:50,081 [Thread-4] INFO BuildAgent:build-activity - [timmy:] geronimo-tck-tomcat-1.0 - three 1 - Started
 In this example, the hosts kenny, timmy and jimmy picked up those builds and started working on them. Whenever they finish, they will report the results back to the BUILD.RESULTS topic.
  This means you've just added three build definitions to the BUILD.TASKS queue.
Site running on a free Atlassian Confluence Open Source Project License granted to OSS. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.5 Build:#811 Jul 25, 2007) - Bug/feature request - Contact Administrators