hudson - How to clone a googlecode mercurial repository in jenkins -
i having problem trigger repository clone of googlecode project.
i keep receiving following error:
started user anonymous $ hg clone --rev default "https://username@demo.projectname.googlecode.com/hg/ " "f:\hudson\jobs\project demostration project\workspace" abort: demo.projectname.googlecode.com certificate error: certificate *.googlecode.com, googlecode.com, *.codespot.com, *.googlesource.com, googlesource.com (use --insecure connect insecurely) error: failed clone. --template {node}
anyone know on how tell jenkins safe use certificate? in textbox place --insecure option
that's relatively new command line option (1.8.3 think) around relatively new practice of checking certificates (1.8.2 think). it's not exposed in jenkins ui. things work around it:
- put server's cert's fingerprint in whitelist in (jenkin's user's) hgrc
- wrap mercurial in quick shell script passes --insecure
- clone non-https version of google url (i think still allow that)
- configure cacerts mercurial either globally (
/etc/mercurial/hgrc
) or in jenkins user's~/.hgrc
any of should work , of them explained here: https://www.mercurial-scm.org/wiki/cacertificates
Comments
Post a Comment