Usually, your tool / build system and continuous integration system are separate, and the later one knows about your DVCS system. In my setup, the build tool is sbt (formerly ant), and the CI system is Jenkins (which I highly recommend).
CI Mercurial, . Mercurial URL-, , CI /, . , CI , , , .