Exclusive Deployment

You are viewing an old version (v. 1) of this page.
The latest version is v. 5, last edited on Sep 18, 2011 (view differences | )
view page history | view next version >>

Situation

Assume there are only one machine for deployment. Set up the build so that only one deployment step can run on the deployment machine even if multiple builds try to deploy.

Demonstration

  1. Check grid tab on the demo site, and there are two agents available.
  2. Visit the demo project, and hit the run button three times to generate three builds.
  3. 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.

Resolution

  1. Switch to resource tab and a resource named "agent" is defined with each agent providing one resource.
  2. Switch to steps definition of the demo project, and check the master step definition. The node selection property is set to run on the node with resource agent.
  3. 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.
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.