[Buildbot-devel] helped needed with mercurial integration with buildbot via ssh
Brian Warner
warner-buildbot at lothar.com
Mon Jul 2 17:44:01 UTC 2007
John Menerick <john at cellspin.net> writes:
> I have looked around on the internet and the buildbot documentation, but
> I'm not able to ascertain how to grab the source/tree from a mercurial
> VC via ssh. There is no url for the trunk, hence not being able to use
> repourl and baseurl. Being a python newcomer, I'm not sure how to code
> the master.cfg to grab the source from the trunk(s). How do I do this?
> Any help would greatly be appreciated and acknowledged.
Sorry to respond to this so late, but I think you can just set repourl= to
the same 'ssh://...' string that you'd pass to 'hg clone'. Here's an example:
f3 = factory.BuildFactory()
f3.addStep(Mercurial,
repourl="ssh://user@host/repos/trunk",
)
If you want to use multiple branches, do this instead:
f3.addStep(Mercurial,
baseURL="ssh://user@host/repos/",
defaultBranch="trunk",
)
Of course, the buildslave must be able to make an unaided ssh connection to
user at host, probably by having a passphraseless key, or by being run with a
ssh-agent. Most public projects (with world-readable repositories) would use
an http: repourl= instead.
hope that helps,
-Brian
More information about the devel
mailing list