[Buildbot-devel] perforce connection

andrea crotti andrea.crotti.0 at gmail.com
Fri Jul 20 09:22:55 UTC 2012


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))
# check that the command exists in this form
factory.addStep(ShellCommand(command=["nosetests"]))

Everything seems fine and there are no errors, but the clients don't
even try to run the command, and apparently they are not even fetching
the code...

Is there something missing?
Is P4 the right thing to use since P4Sync is deprecated?
Thanks,
Andrea

PS. sorry if it's not the right list but it's the only one I've found..




More information about the devel mailing list