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

git-client-plugin doesn’t work under NixOS

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      git-client-plugin tries to execute /bin/echo on unix systems.
      On NixOS there is nothing inside the /bin folder except for /bin/sh. So the git-client-plugin fails everytime to execute this command.

      NixOS has a very different approach how to handle dependencies (even coreutils which includes echo). However tools like echo are available in NixOS but in a different location which is added to the PATH environment variable.

      Is there any specific reason why git-client-plugin uses a hard-coded path to the echo binary? For me the problem would be solved when git-client-plugin would rely on echo to be available by including it in PATH.
      If that is not possible I would suggest to change implementation of git-client-plugin to look if /bin/echo exists if not it should fallback to echo.

        Attachments

          Activity

          Hide
          markewaite Mark Waite added a comment -

          A prototype of a git client plugin build which removes the requirement for /bin/echo is available (for a limited time) from the jenkins infrastructure job. It would be much appreciated if you could test that version before its release, and report the results of your testing here.

          Unfortunately, the commit which resolved the issue did not reference this bug report, so the entry for the fix is not mentioned in the history of this report.

          Show
          markewaite Mark Waite added a comment - A prototype of a git client plugin build which removes the requirement for /bin/echo is available (for a limited time) from the jenkins infrastructure job . It would be much appreciated if you could test that version before its release, and report the results of your testing here. Unfortunately, the commit which resolved the issue did not reference this bug report, so the entry for the fix is not mentioned in the history of this report.
          Hide
          lo1tuma Mathias Schreck added a comment -

          Hi Mark Waite. Thanks for your feedback. I’ve just tried the snapshot version of the plugin you provided and it works great on NixOS (see screenshot ).
          Please let me know if need more information.

          Show
          lo1tuma Mathias Schreck added a comment - Hi Mark Waite . Thanks for your feedback. I’ve just tried the snapshot version of the plugin you provided and it works great on NixOS (see screenshot ). Please let me know if need more information.
          Hide
          markewaite Mark Waite added a comment -

          Fixed in git client plugin 1.19.7, 15 Jul 2016

          Show
          markewaite Mark Waite added a comment - Fixed in git client plugin 1.19.7, 15 Jul 2016

            People

            • Assignee:
              Unassigned
              Reporter:
              lo1tuma Mathias Schreck
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: