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

Allow for specifying the '--exec-path' parameter

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • git-client-plugin
    • None

      When a Git installation is transferred from one host to another, it has the git_exec_path parameter hardened as specified when running make. In other words, the installation is not fully portable unless it is compiled on the same machine or the install directory is kept after installing. Therefore, commands that are based on scripts, such as git submodule do not work.

      As a workaround one can set the --exec-path parameter. This would make the automatic installation of git using "extract a *.zip/*.tar.gz archive" useful and allow different versions of git run in parallel on the same machine without having the need to install it on OS level.

      git-client-plugin should allow for specifying this parameter as a directory relative to the binary archive extraction root in the Git settings. It should then be passed to any git command as the full absolute path.

      To illustrate, here's how it could be configured then:

      Install automatically
      Label  
      Download URL http://some.url.to/git-bin-version.tar.gz
      Subdirectory bin/git
      Exec-Path libexec/git-core

      If left empty, the parameter should rather not be passed at all.

          [JENKINS-29243] Allow for specifying the '--exec-path' parameter

          Mark Waite added a comment -

          If this is ever implemented, refer to the git internal variables page and the stackoverflow article.

          Mark Waite added a comment - If this is ever implemented, refer to the git internal variables page and the stackoverflow article .

            Unassigned Unassigned
            xasx Andreas Schöneck
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: