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.