Mercurial Executable capability `/usr/bin/hg' does not seem to be a hg client.

Hello. I have a problem!

(com.atlassian.bamboo.repository.RepositoryException : java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: Mercurial Executable capability `/usr/bin/hg' does not seem to be a hg client. Is it properly set?)


How fix it?

root@Bamboo:/opt# which hg
/usr/bin/hg

hg version 2.8.2

 

Bambo Executables:

JDK 1.7/usr/lib/jvm/java-7-openjdk-amd64/jre
Maven 2 (Maven 2.x)/usr/share/maven2
Mercurial/usr/bin/hg

 

Default Agent

JDK 1.7/usr/lib/jvm/java-7-openjdk-amd64/jre
Maven 2 (Maven 2.x)/usr/share/maven2
Mercurial/usr/bin/hg

 

Atlassian Bamboo version 5.3 build 4101

 

 

4 answers

0 vote

Hello Igor,

Match string for HG capability is 

"^Mercurial Distributed SCM \\(version (.*)\\)"
Can you please provide result text of "hg version" command

This regexp is not good idea: users with localized hg will suffer. Of course they can delete /usr/share/locale/../hg.mo, as i did but this don't seems right

root@Bamboo:/opt# which hg
/usr/bin/hg

hg version 2.8.2

0 vote

Hello Igor,

Just tested Bamboo 5.3 with Mercurial 3.1.2 and it works as expected. Also checked output of "hg version" command for Mercurial 2.8.2, pattern is the same. So maybe issue is at permission level.

Can you please provide error message from log. It should have "Output: " prefix with ERROR log level. It contains output of "hg version" command. It will help us to understand what's wrong with "hg version" command.

I found my HG location by typing hg -v which resulted /


/home/<username>/bin/hg

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 18, 2017 in Bamboo

FAQ: How to Upgrade Bamboo Server

Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...

1,816 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you