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

Git does not work when $HOME is not set

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: git-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: Linux
    • Similar Issues:

      Description

      I'm running hudson as a service on ubuntu 9.04 server installed using apt "deb
      http://hudson.gotdns.com/debian binary/"

      The git plugin complained about not having user.email and user.name set.

      I discovered that git needs the $HOME env variable set to find its configuration.

      I had to manually add "export HOME=/var/lib/hudson" to /etc/default/hudson to be
      able to use the git plugin.

        Attachments

          Issue Links

            Activity

            Hide
            mdonohue mdonohue added a comment -

            Setting node environment variables would be a natural way of solving this, but the
            git plugin doesn't support them yet. Adding that support is tracked in issue 4028

            Show
            mdonohue mdonohue added a comment - Setting node environment variables would be a natural way of solving this, but the git plugin doesn't support them yet. Adding that support is tracked in issue 4028
            Hide
            ndeloof Nicolas De Loof added a comment -

            obsolete

            Show
            ndeloof Nicolas De Loof added a comment - obsolete

              People

              • Assignee:
                ndeloof Nicolas De Loof
                Reporter:
                chrisspelberg Chris lutje Spelberg
              • Votes:
                2 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: