On 07/17/2012 07:56 AM, Andreas Schilling wrote:
> our jenkins master is set up as windows service using the windows local system account.
> where are we supposed to put the mercurial.ini with the credentials for the https access?
hgrc(5) [1] gives a number of locations where Mercurial looks, or can be made to look, for config files.
You can also pass '--config section.key=value' as part of the Mercurial command, so defaults could be configured in the Mercurial installation your jobs use (see
$jenkins/configure). Of course this is less secure than storing credentials in a local file location; for example, the values will probably appear in build logs.
By the way if you are trying to use client certificates, rather than just a username/password combo, and get it to work, please update JENKINS-7351 [2] accordingly.
[1]
http://www.selenic.com/mercurial/hgrc.5.html
[2]
https://issues.jenkins-ci.org/browse/JENKINS-7351