Exemplo n.º 1
0
        public void CheckBuilds()
        {
            // Retrieve the next queued build from the scheduler.
            var nextBuild = BuildQueue.GetNextBuild();

            if (nextBuild == null)
            {
                return;
            }

            // Check for build agent compatible with the requirements.
            var agent = GetCompatibleBuildAgent(nextBuild);

            if (agent == null)
            {
                return;
            }

            // Remove the build from the queue.
            BuildQueue.RemoveBuild(nextBuild);

            // Send the build to the agent.
            agent.SendBuild(nextBuild);
        }