i have mercurial repository (on bitbucket) code (java) , want ci builds on cloud-based jenkins server (at jelastic, running on centos). problem haven't been able proper installation of mercurial on jenkins server.
the jenkins build fails following message:
error: failed clone https://bitbucket_jenkins_user:some_password@bitbucket.org/repo_owner/my_repository because hg not found; check you've configured mercurial installation
setup information
- it's private mercurial repository, hosted @ bitbucket
- in bitbucket have set service trigger jenkins build, after push has happened
- i have defined specific bitbucket jenkins user in mercurial repository, has read rights , logs in using simple https authentication
- jenkins runs on tomcat 7, hosted in jelastic cloud environment, on centos 6
- the mercurial plugin installed through jenkins interface, manage plugins
- the build configured being triggered remotely (by service defined in bitbucket)
- build results same when started manually , when triggered push repository
when first did under impression installing mercurial plugin in jenkins enough, install needed mercurial binaries able connect repository , code. have realized wrong , on manage jenkins / configure system page need specify mercurial installation.
questions
- is possible create mercurial installation without ssh access , doing "yum install mercurial"?
- in jenkins interface, can specify when choosing "install automatically" option?
- when defining installer, have experimented "extract zip/tar.gz" option, can write "download url binary archive"?
- jenkins offers installer option of "run command". kind of commands be, maybe "yum install ..." or "rpm ..."?
since server cloud based, getting ssh access paid add-on prefer avoid. if option of course it, thereby getting access running commands on server. however, running "yum install mercurial" on centos seems give 1.4 version of mercurial. current version when write 2.6.3, need download sources , compile myself or possible binary centos somewhere?
the mercurial plugin page has section on how use auto installation options install mercurial using archlinux packages.
"the plugin supports generic tool auto-installation methods mercurial installation, though not publish catalog of mercurial versions. users of linux machines (with python preinstalled), can use archlinux packages. example, in /configure under mercurial installations, add mercurial installation whatever name like, executable = installation/bin/hg, install automatically, run command, label = linux (if desired limit slaves configured same label), command = [ -d usr ] || wget -q -o - http://www.archlinux.org/packages/extra/i686/mercurial/download/ | xzcat | tar xvf - (or …/x86_64/… 64-bit slaves), tool home = usr, , configure job installation tied linux slave."
see https://wiki.jenkins-ci.org/display/jenkins/mercurial+plugin
Comments
Post a Comment