Hi, I've configured a master node on Windows and a slave node on OSX 10.7. I configured automatic tool installation on the master (including for Mercurial) and created a task that runs exclusively on the OSX node. When I first the task it fails because Mercurial is not installed. It seems Jenkins never attempts to install it. I'm new to clustering. How am I supposed to configure this? Am I doing something wrong or is this simply not supported? I am using Jenkins 1.478. PS: I cross-posted this question to http://stackoverflow.com/questions/12185230/jenkins-how-to-configure-mercurial-installer Thanks, Gili
$ /usr/local/bin/hg clone --noupdate <repository> C:\Users\Gili\.jenkins\hgcache\FD91D6ED4EFC637D1A4D0A8F0B8E1D0DB4D1A237-vtlrERROR: Failed to use repository cache for <repository> java.io.IOException: Cannot run program "/usr/local/bin/hg": CreateProcess error=2, The system cannot find the file specified
I’ve never tried to use caching – although I should – since most of my Mac projects are from the same repository.
It appears that the problem is not in accessing /usr/local/bin/hg but accessing your cache.
I’d try turning off caching in the top-level Mercurial configuration for now to see if you get farther (up to authorization for the initial clone).
However, if you get it working – share that knowledge.
The help text for Mercurial’s “Use repository cache” says that the cache is kept on the master node, although additional caches may be kept on the slave. I don’t see any configuration to specify how to access the master node’s file system (where the caches would be kept) from the slave node.
Chuck
From: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] On Behalf Of Gili
Sent: Thursday, August 30, 2012 4:21 PM
To: jenkins...@googlegroups.com
Subject: Re: Mercurial automatic installer on slave node
Hi Chuck,
From: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] On Behalf Of gili.tzabariSent: Thursday, August 30, 2012 11:17 AM
Subject: Re: Mercurial automatic installer on slave nodeHi again,So I installed Mercurial manually but now I get:Building remotely on MacOS X 10.7 in workspace <workspace> JDK installation skipped: Unknown CPU name: mac os x $ hg clone --rev default --noupdate <repository> <workspace>ERROR: Failed to clone <repository> because hg could not be found; check that you've properly configured your Mercurial installationERROR: Failed to clone <repository>Thing is, if I manually ssh into OSX from Windows I can execute "hg" just fine. Same thing in a local terminal on the Mac. Any ideas how to troubleshoot this further?Thanks,GiliOn 30/08/2012 11:10 AM, Chuck Doucette wrote:
I don't know what is supposed to happen, I just know that I recentlyconfigured a Jenkins slave node on OSX and it didn't work until I manually installed both Java and Mercurial. Indeed, it would be nice if both happened automatically (Jenkins install Java and the Mercurial plugin install Mercurial). I wasn't aware of this page that you referenced or exactly what that implies. I read that page as saying that more tools, specifically auto-installation of SCMs, is needed (e.g. Mercurial). Why it specifically says: "Mercurial available as of 1.18" is indeed confusing (since it implies it is already supported, but is listed under missing tools).Chuck-----Original Message-----
From: jenkins...@googlegroups.com[mailto:jenkins...@googlegroups.com] On Behalf Of gili.tzabari
Sent: Thursday, August 30, 2012 10:57 AM
'C:\Program' 'Files\Java\jdk1.7.0_06/bin:/usr/bin:/bin:/usr/sbin:/sbin' which is clearly wrong. I did some more research and tracked down the problem to the JDK auto-installer. I filed this bug report: https://issues.jenkins-ci.org/browse/JENKINS-15000 I believe the repository cache issue is a separate bug so I've filed https://issues.jenkins-ci.org/browse/JENKINS-15001 Is anyone using Jenkins on OSX in production? It looks like not... :) Gili