Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-44319] SSH user variable
  • Loading branch information
Manuel Franco committed May 17, 2017
1 parent 724f231 commit 3a27584
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions msi/build-on-jenkins.sh
Expand Up @@ -26,6 +26,9 @@ CLI_SSH_ARGS=
if [ "x$JENKINS_SSH_KEY" != x ]; then
CLI_SSH_ARGS="-i $JENKINS_SSH_KEY"
fi
if [ "x$JENKINS_SSH_USER" != x ]; then
CLI_SSH_ARGS="$CLI_SSH_ARGS -ssh -user $JENKINS_SSH_USER"
fi

case "$(uname)" in
CYGWIN*)
Expand Down
4 changes: 3 additions & 1 deletion osx/build-on-jenkins.sh
Expand Up @@ -28,7 +28,9 @@ CLI_SSH_ARGS=
if [ "x$JENKINS_SSH_KEY" != x ]; then
CLI_SSH_ARGS="-i $JENKINS_SSH_KEY"
fi

if [ "x$JENKINS_SSH_USER" != x ]; then
CLI_SSH_ARGS="$CLI_SSH_ARGS -ssh -user $JENKINS_SSH_USER"
fi

java -jar $TARGET/jenkins-cli.jar $CLI_SSH_ARGS dist-fork -z $D/script.tgz \
-f binary/${ARTIFACTNAME}.war="${WAR}" \
Expand Down

0 comments on commit 3a27584

Please sign in to comment.