One Build For One Agent

Version 4 by Robin Shen
on Sep 18, 2011 00:19.


compared with
Version 5 by Robin Shen
on Sep 18, 2011 12:41.


Key
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. Situation
 Set up the build so that one agent runs only one build at a time. If all agents are occupied, the build should be waiting.
  
 h1. Demonstration
 # Check [grid tab|http://demo.pmease.com/grid/active_build_agents] on the demo site, and there are two agents available.
 # Visit the [demo project|http://demo.pmease.com/overview/100], and hit the run button three times to generate three builds.
 # The first two builds will be running, each occupying an agent. The third will be waiting. When one of two running builds finished, the third one will start to run.
  
 h1. Resolution
 # Switch to [resources tab|http://demo.pmease.com/grid/resources] and a resource named "Agent" is defined with each agent providing one resource.
  # Switch to [steps definition|http://demo.pmease.com/settings/100/steps] of the demo project, and check the master step definition. The node selection property is set to run on the node with resource _agent_.
  # Switch to [steps definition|http://demo.pmease.com/settings/100/steps] of the demo project, and check the master step definition. The node selection property is set to run on the node with resource _agent_. If resource requirement of the master step is not satisfied, the build itself will be put into waiting state.
 # This also holds true for builds from different configurations as long as their master step is defined to run on node with the _agent_ resource.