简体   繁体   中英

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 .

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM