I installed Mercurial 2.3 myself on the Mac. The installer outputs the binaries into /usr/local/bin which is on my PATH. Invoking "hg" in a local terminal or over SSH (from Windows) works fine. However, when I run a task on the Mac that uses Mercurial 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 installation
ERROR: Failed to clone <repository>
I suspect this is failing because Jenkins is configured to auto-install Mercurial to "INSTALLATION/bin/hg" and run it from there but it does not because (apparently) Mercurial auto-installation is not supported for OSX.
Expected behavior: Invoke "hg" off the PATH on platforms that do not support auto-installer.
Additionally, I would update the error message so any time "hg" could not be found it outputs the full command-line it tried executing. It took me a very long time to figure out what was wrong because I couldn't see the command-line.
cowwoc
added a comment - Additionally, I would update the error message so any time "hg" could not be found it outputs the full command-line it tried executing. It took me a very long time to figure out what was wrong because I couldn't see the command-line.
Happens for Mercurial (hg) and also for Bazaar (bzr)!
Unfortunately one can only configure git's full path for a builder in the builder configuration.
Can one expect that this addition to a builder's configuration regarding hg and bzr will come just like it seemingly exists already for git??
Marko Käning
added a comment - Happens for Mercurial (hg) and also for Bazaar (bzr)!
Unfortunately one can only configure git's full path for a builder in the builder configuration.
Can one expect that this addition to a builder's configuration regarding hg and bzr will come just like it seemingly exists already for git??
Affected too, I was making a workaround to make hg work by creating a symlink in /usr/bin from /usr/local/bin, but since mac 10.11 it's not possible. It's SIP doesn't allow to write into /usr/bin. And I'm not able to turn off SIP.
Please fix ASAP.
Artem Alexandrov
added a comment - Affected too, I was making a workaround to make hg work by creating a symlink in /usr/bin from /usr/local/bin, but since mac 10.11 it's not possible. It's SIP doesn't allow to write into /usr/bin. And I'm not able to turn off SIP.
Please fix ASAP.
A. Klitzing
added a comment - - edited You can use this work-around for an SSH Agent/Slave:
Download mercurial tarball ( https://www.mercurial-scm.org/downloads ) and install it to a local directory.
python setup.py install --home="/Users/username/local/mercurial" --optimize=1
Configure of Agent/Slave:
Launch Method: Launch slave agents via SSH
Advanced --> Prefix Start Slave Command
export PATH=/Users/username/local/mercurial/bin:$PATH && export PYTHONPATH=/Users/username/local/mercurial/lib/python/ &&
Hey guys, thanks for the above posts–you guys helped me get my pipeline off the ground. This affects me too, but it turns on that on Mac Mojave 10.14.5, I was just able to use the above advanced configuration in my slave agent to set the following:
In "/usr/local/bin" there is a default symlink that is installed to points to Mercurial's actual install location at "/usr/local/bin/hg" so when you set the prefix command, it's able to find Mercurial upon startup.
Wilson Bui
added a comment - - edited Hey guys, thanks for the above posts–you guys helped me get my pipeline off the ground. This affects me too, but it turns on that on Mac Mojave 10.14.5, I was just able to use the above advanced configuration in my slave agent to set the following:
Prefix Start Agent Command: "export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin && "
In "/usr/local/bin" there is a default symlink that is installed to points to Mercurial's actual install location at "/usr/local/bin/hg" so when you set the prefix command, it's able to find Mercurial upon startup.
Kohsuke Kawaguchi
cowwoc
Votes:
4Vote for this issue
Watchers:
8Start watching this issue
Created:
Updated:
{"errorMessages":["jqlTooComplex"],"errors":{}}
[{"id":-1,"name":"My open issues","jql":"assignee = currentUser() AND resolution = Unresolved order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":true},{"id":-2,"name":"Reported by me","jql":"reporter = currentUser() order by created DESC","isSystem":true,"sharePermissions":[],"requiresLogin":true},{"id":-4,"name":"All issues","jql":"order by created DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-5,"name":"Open issues","jql":"resolution = Unresolved order by priority DESC,updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-9,"name":"Done issues","jql":"statusCategory = Done order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-3,"name":"Viewed recently","jql":"issuekey in issueHistory() order by lastViewed DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-6,"name":"Created recently","jql":"created >= -1w order by created DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-7,"name":"Resolved recently","jql":"resolutiondate >= -1w order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false},{"id":-8,"name":"Updated recently","jql":"updated >= -1w order by updated DESC","isSystem":true,"sharePermissions":[],"requiresLogin":false}]
Additionally, I would update the error message so any time "hg" could not be found it outputs the full command-line it tried executing. It took me a very long time to figure out what was wrong because I couldn't see the command-line.