JENKINS-23927 - adding conditional retry support to triggered builds

Also fixes multibyte test execution on OS X while I'm there. =)