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

GitAPI.createEnvVarMap ignores node env vars

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • git-plugin
    • None
    • Platform: All, OS: All

      When looking at the global Hudson config, there is a section for "environment
      variables" with this help:

      These key-value pairs apply for every build on every node. They can be used in
      Hudson's configuration (as $key or ${key}) and will be added to the environment
      for processes launched from the build.

      Unfortunately, the Git plugin does not try to propagate the environment
      variables to the invocation of the git executable. In my case, I want to put a
      custom HOME location in so that SSH can properly locate the known hosts and keys
      files for non-interactive login.

        1. git.environment.patch
          10 kB
        2. git.environment.patch
          9 kB
        3. git.hpi
          841 kB

            jbq jbq
            mdonohue mdonohue
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: