Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-15385

Easier Mercurial auto-installer

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • mercurial-plugin
    • None

      I created a Mercurial instance under the global configuration. I then enabled "install automatically". I then configured a job to use this Mercurial instance on an Ubuntu slave node.

      When I run the job, it fails with:

      $ /usr/bin/hg clone --rev default --noupdate https://host.com/hg/gstreamer-android/ /home/builds/.jenkins/workspace/GStreamer_Android_snapshot
      ERROR: Failed to clone https://host.com/hg/gstreamer-android/ because hg could not be found; check that you've properly configured your Mercurial installation
      ERROR: Failed to clone https://host.com/hg/gstreamer-android/
      

      Sure enough, /usr/bin/hg does not exist yet the tool auto-installer is not kicking in.

      The Mercurial auto-installer has two sub-options:

      1. Extract .zip/.tar.gz
      2. Run command

      I don't know how where to get the Mercurial binaries for Ubuntu in *.zip or *.tar.gz form (the sources are posted online, but not the binaries). As for "run command" I know "sudo apt-get install mercurial" will work but this requires root access and I cannot grant Jenkins root access, for security reasons.

      Please explain how this is supposed to work. Is this a bug or am I misunderstanding how to configure this?

            jglick Jesse Glick
            cowwoc cowwoc
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: