[Anthill-pro] Need job to iterate through all agents.

Ryan Smith rws at urbancode.com
Wed Jul 2 09:10:39 CDT 2008


Ken,

Yes, the agent quantity is only available on the scripted agent filter. 
You can use this filter:


return new Where() {
    public Agent[] filter(Agent[] agents) {
        return agents;
    }
};



Ryan Smith

Pacileo, Kenneth wrote:
> Peter,
>
> Thanks for your reply.
>
> If I set the agent filter to "Any Agent" then I don't have the ability
> to set the agent count. I can only set the agent count if I select an
> agent filter type as "Scripted" and select a script. Did you create a
> script that would select all agents and then set the agent count to -1?
>
> Thanks,
> Ken
>
> -----Original Message-----
> From: anthill-pro-bounces at lists.urbancode.com
> [mailto:anthill-pro-bounces at lists.urbancode.com] On Behalf Of Peter
> Steele
> Sent: Tuesday, July 01, 2008 9:11 PM
> To: AnthillPro user and support list.
> Subject: RE: [Anthill-pro] Need job to iterate through all agents.
>
> I had to do something like this one time and all I did was set the agent
> filter to "Any agent" and the agent count to -1. This makes the job run
> on all agents simultaneously. Not sure how many agents you have but I
> did this for 65 agents and it worked like a charm.
>
> Peter
>
> -----Original Message-----
> From: anthill-pro-bounces at lists.urbancode.com
> [mailto:anthill-pro-bounces at lists.urbancode.com] On Behalf Of Pacileo,
> Kenneth
> Sent: Tuesday, July 01, 2008 12:31 PM
> To: AnthillPro user and support list.
> Subject: [Anthill-pro] Need job to iterate through all agents.
>
> I want to set up a job that will execute on each build agent and run a
> job step. This job step will run a maintenance command on each agent.
>
> I setup a job in my workflow that will iterate for the number of agents
> we have. I now need to find a way to set the agent for each iteration.
> Do I need to set up an Agent Filter Script that sets the agent name via
> a property passed in? How do I accomplish this?
>
>
> Thanks,
> Ken Pacileo
> UnitedHealth Group IT
>
>
>
>
> This e-mail, including attachments, may include confidential and/or 
> proprietary information, and may be used only by the person or entity to
>
> which it is addressed. If the reader of this e-mail is not the intended 
> recipient or his or her authorized agent, the reader is hereby notified 
> that any dissemination, distribution or copying of this e-mail is 
> prohibited. If you have received this e-mail in error, please notify the
>
> sender by replying to this message and delete this e-mail immediately.
>
> _______________________________________________
> Anthill-pro mailing list
> Anthill-pro at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
> _______________________________________________
> Anthill-pro mailing list
> Anthill-pro at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
>
>
> This e-mail, including attachments, may include confidential and/or 
> proprietary information, and may be used only by the person or entity to 
> which it is addressed. If the reader of this e-mail is not the intended 
> recipient or his or her authorized agent, the reader is hereby notified 
> that any dissemination, distribution or copying of this e-mail is 
> prohibited. If you have received this e-mail in error, please notify the 
> sender by replying to this message and delete this e-mail immediately.
>
> _______________________________________________
> Anthill-pro mailing list
> Anthill-pro at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
>
>   


More information about the Anthill-pro mailing list