[Anthill-pro] Agent filter for Subversion get change log step

Justin Johnson justinjohnson at gmail.com
Fri Jan 12 12:19:36 CST 2007


On 1/12/07, Steve Boone <sbb at urbancode.com> wrote:
> Justin,
>
> What version of Ant Hill Pro are you currently using?

3.1.1.b47

>
> There is a way to delegate  tasks to specific agents.  How depends on
> which version you are running.
>
> Here is the solution for 3.1
>
> Since the get-changelog step is being run as part of BuildRequest prior
> to the creation of a new workflow, we want to take a look at the "Quiet
> Period."  Select the "Administration Tab" and the click "Projects."
> Choose your project.  Then select the "Quiet Period" tab.  You have a
> Change Log Quiet Period, I'm assuming with an "Any Agent" Filter type.
> Try changing that to a "Fixed Agent" or "Variable Driven" agent.

Any Agent was selected.  I updated this to use a specific agent, but
now when I run the work flow, it fails in get change log still, but
this time with the following error.

274103943 ERROR 682 0 0 -
274103943 ERROR 682 0 0 - Error retrieving logs!
java.lang.NullPointerException
	at com.urbancode.anthill3.services.jobs.StepExecutor.execute(StepExecutor.java:429)
	at com.urbancode.anthill3.step.vcs.svn.SvnGetChangeLogStep.perform0(SvnGetChangeLogStep.java:79)
	at com.urbancode.anthill3.step.vcs.GetChangeLogStep.perform(GetChangeLogStep.java:56)
	at com.urbancode.anthill3.services.jobs.StepExecutor.execute(StepExecutor.java:214)
	at com.urbancode.anthill3.services.jobs.StepExecutor.execute(StepExecutor.java:285)
	at com.urbancode.anthill3.runtime.jobdelegates.revisioncheck.WithoutPopulateWorkspaceJobDelegate.perform(WithoutPopulateWorkspaceJobDelegate.java:103)
	at com.urbancode.anthill3.services.jobs.Job.start(Job.java:117)
	at com.urbancode.anthill3.services.jobs.JobService$JobRunner.run(JobService.java:417)
	at com.urbancode.commons.util.ThreadPool$WorkerThread.run(ThreadPool.java:167)
274103943 ERROR 682 0 0 - Error retrieving logs!
java.lang.NullPointerException
	at com.urbancode.anthill3.services.jobs.StepExecutor.execute(StepExecutor.java:437)
	at com.urbancode.anthill3.step.vcs.svn.SvnGetChangeLogStep.perform0(SvnGetChangeLogStep.java:79)
	at com.urbancode.anthill3.step.vcs.GetChangeLogStep.perform(GetChangeLogStep.java:56)
	at com.urbancode.anthill3.services.jobs.StepExecutor.execute(StepExecutor.java:214)
	at com.urbancode.anthill3.services.jobs.StepExecutor.execute(StepExecutor.java:285)
	at com.urbancode.anthill3.runtime.jobdelegates.revisioncheck.WithoutPopulateWorkspaceJobDelegate.perform(WithoutPopulateWorkspaceJobDelegate.java:103)
	at com.urbancode.anthill3.services.jobs.Job.start(Job.java:117)
	at com.urbancode.anthill3.services.jobs.JobService$JobRunner.run(JobService.java:417)
	at com.urbancode.commons.util.ThreadPool$WorkerThread.run(ThreadPool.java:167)

> Also, you should make sure that the Agent Filter is set up accordingly
> in the Job Configurations.

It is.  I just wasn't sure how to set the agent filter for built in
jobs that run before the workflow.  You answered this above though, if
I can get past the new error.

> >From the dashboard on the Ant Hill page, click on the administration
> tab, and the click on  Projects.   Select your project.  Scroll down
> until you see "Job Configurations" select the name of the Job you wish
> to configure.  Select the "Agent Filter" tab.
>
> I am guessing you have your agent set up as "Any Agent"  Choose a Fixed
> agent to always select a specific agent, or a variable driven agent,
> which you can configure to meet certain criteria.
>
>
> To answer your second question, the "get change log" runs even when you
> force a build because the change information is valuable. It can be
> displayed in a report, sent in the email, and used to determine which
> users contributed to what build.

Okay, that makes sense.  Thanks.

> -Steve
>
>
> Justin Johnson wrote:
> > Another question is, why does the get change log step run even when I
> > force a build?  It seems that there is no point in checking the change
> > log if we're going to build regardless of any changes.
> >
> > On 1/12/07, Justin Johnson <justinjohnson at gmail.com> wrote:
> >> Correct.
> >>
> >> On 1/12/07, Eric Minick <etm at urbancode.com> wrote:
> >> > Just to clarify as I look into it, the get-changelog step is being run
> >> > as part of BuildRequest prior to the creation of a new workflow,
> >> correct?
> >> >
> >> > -- Eric
> >> >
> >> > Justin Johnson wrote:
> >> >
> >> > > Is there a way to tell AHP to only run the Get change log step for
> >> > > Subversion on a specific agent?  I have a Job defined to run only
> >> on a
> >> > > specified agent (one that has the Subversion client installed) but
> >> > > when I run a workflow containing that job, the get change log step
> >> > > fails because it runs on a different agent.  I don't see any way to
> >> > > control where this built in job runs.
> >> > >
> >> > > Thanks,
> >> > > Justin
> >> > > _______________________________________________
> >> > > 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
> >> >
> >>
> > _______________________________________________
> > 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
>


More information about the Anthill-pro mailing list