On Mon, Jan 28, 2013 at 6:25 PM, cjo <cjo.john...@gmail.com> wrote:

> Try adding a logger for hudson.slaves.WorkspaceList to the log page and see
> if there is a log message
> <Some Threadname:> " acquired  <workspacepath>"
> occurring just after the first build finishes, which would indicate that
> this is the case.

Sorry but I'm very new to Jenkins, I think I've done this but nothing
is showing up. I did:

Manage Jenkins -> System Log -> Add new log recorder.

I set a name and then added "hudson.slaves.WorkspaceList" to logger,
selecting log level "all" and then clicked save.

I pushed a commit to the repository, a build started running. I then
pushed another commit and looked in the hudson.slaves.WorkspaceList
log but it was empty. The "All Jenkins Logs" section shows:

Jan 28, 2013 8:51:52 PM hudson.plugins.git.GitStatus doNotifyCommit
INFO: Triggering the polling of Project
Jan 28, 2013 8:43:09 PM hudson.triggers.SCMTrigger$Runner run
INFO: SCM changes detected in Project. Triggering  #38
Jan 28, 2013 8:42:33 PM hudson.plugins.git.GitStatus doNotifyCommit
INFO: Triggering the polling of Project

Which shows that the polling has been triggered by the new commit but
the polling is not completing.

> Here is the detailed bit if you want to know more!
> and take some thread dumps to prove that the polling thread is "Waiting to
> acquire <workspace being used by the active build>"
>
> From the code in the git plugin it looks like the polling requires a
> workspace [2]
> and during the poll code in AbstractProject it tries to lock the lastbuild's
> workspace to do this [3].
>
> However this looks like it may block if the last build is the one that is
> building, due to different context in the acquire and allocate calls from
> AbstractProject and AbstractBuild [4] called on WorkspaceList [5].

That sounds like a reasonable explanation. Is there a way I can have a
separate workspace for polling, so that this doesn't block?

Cheers

Adam

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to