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

Fix for JENKINS-20879 breaks Solaris

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Component/s: git-client-plugin
    • Labels:
      None
    • Environment:
    • Similar Issues:

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: