title: How do you specify authentication information for Mercurial as part of Jenkins? (mercurial_keyring)
body: <p>I've got my code in a Mercurial repository (secured with a self-signed certificate) and I'm trying to set up Jenkins to work with it. </p>
  
  <p>I've got the Mercurial plugin installed in Jenkins (pointing to an install of TortoiseHg on the Jenkins Server/Slaves) and the Jenkins Job is properly configured to grab the source from the repository.</p>
  
  <p>When I build manually (ie, via the web interface) everything works as expected.</p>
  
  <p>However, it seems like the polling of the repository does not succeed as I get output similar to the following: </p>
  
  <pre><code>Started on Apr 27, 2012 1:07:41 PM
  [&lt;jobname&gt;] $ hg pull --rev default
  warning: &lt;MercurialServerIP&gt; certificate with fingerprint e3:5f:5e:ea:4f:da:ef:a4:0b:4a:bb:00:e8:31:59:de:ce:d0:28:94 not verified (check hostfingerprints or web.cacerts config setting)
  abort: mercurial_keyring: http authorization required but program used in non-interactive mode
  [&lt;jobname&gt;] $ hg log --style &lt;workspace&gt;\&lt;jobname&gt;\tmp688470509422797505style --branch default --no-merges --prune 65d180b20a1e625841c8385709c86b83c3e10421
  Done. Took 1.9 sec
  No changes
  </code></pre>
  
  <p>I've previously done a manual clone of a repository so that I was able to enter the user's password to work with the Mercurial keyring extension for the authorization, but based on the error output it doesn't seem as though that's being applied.</p>
  
  <p>How can I configure Jenkins or the machine running the build to do the polling successfully?</p>