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

Fix for JENKINS-20879 breaks Solaris

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • git-client-plugin
    • None

      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.

            ndeloof Nicolas De Loof
            danagoyette Dana Goyette
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: