Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins : Cannot run program "hg"

Although if I log in at command line as myself hg does work.

I assume I need to set the "mercurial installation directory" as part of the configure jenkins process.

However I do not know what my mercurial installation directory is, I followed the instructions here.

like image 469
NimChimpsky Avatar asked Oct 19 '25 20:10

NimChimpsky


1 Answers

On the command line when you are logged in, just do

 which hg

This will print the exact path to the hg executable which you can use to setup Jenkins.

For example, on Debian, and on most of current Linux distribution, this would be :

$ which hg
/usr/bin/hg
like image 64
krtek Avatar answered Oct 21 '25 11:10

krtek