Fix for JENKINS-20879 breaks Solaris

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • Component/s: git-client-plugin
    • Environment:

      The change introduced to fix JENKINS-20879 breaks Solaris 10.
      The "export" statement seems to be invalid with /bin/sh (bourne shell?)

      hudson.plugins.git.GitException: Command "<path>/bin/git -c core.askpass=true fetch --tags --progress git@<server>:<repo>.git +refs/heads/*:refs/remotes/origin/*" returned status code 128:
      stdout: 
      stderr: /var/tmp/ssh514785069231260392.sh: DISPLAY=:123.456: is not an identifier
      

      (Note that I've redacted a few bits of information in that error message.)

      The change that causes the issue:
      https://github.com/jenkinsci/git-client-plugin/commit/0e67e3d4003124d98db540b86f27d0c4d1347493

      #!/bin/sh
      [ -z "${DISPLAY}" ] && export DISPLAY=:123.456
      ssh -i "/var/tmp/ssh6798954629722663247key" -o StrictHostKeyChecking=no "$@"
      

      I've worked around this issue for the moment by setting DISPLAY=:99 on the affected slaves.

            Assignee:
            Nicolas De Loof
            Reporter:
            Dana Goyette
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: