[Buildbot-devel] perforce connection

William Deegan bill at baddogconsulting.com
Wed Jul 25 02:45:06 UTC 2012


Andrea,

On 07/20/2012 02:22 AM, andrea crotti wrote:
> I'm trying to configure buildbot and I need to poll the code from
> perforce.
>
> P4_CONNECTION = {
>      'p4base':'//repo/path',
>      'p4port': 'host:port',
>      'p4user': 'user',
>      'p4passwd': 'password',
> }
>
> So I set up the poller as:
> from buildbot.changes.p4poller import P4Source
> s = P4Source(**P4_CONNECTION)
>
> then add a step:
>
> from buildbot.steps.source import P4
> from buildbot.steps.shell import ShellCommand
>
> # every different machine has to have a different client
> factory.addStep(P4(p4client='my_p4_client', **P4_CONNECTION))
You should have your client include the name of the buildslave to ensure 
that each buildslave has a unique client name.
Otherwise all buildslaves update the same client name, perforce won't 
update files updated on other clients..
Unless for some reason your client is on a shared filesystem, but still 
you can get in to messy issues..


This is likely the cause of your problem.
-Bill




More information about the devel mailing list