Skip to content

Commit

Permalink
Use eval in jenkins-run
Browse files Browse the repository at this point in the history
It's required to support escaping spaces in JENKINS_JAVA_CMD, JENKINS_JAVA_OPTIONS, JENKINS_HOME and JENKINS_WAR variables.
  • Loading branch information
stek29 authored and Soltan Tekeev committed Aug 3, 2020
1 parent 6fa2ef0 commit 9562b9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/jenkins-run.erb
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ if [ "$JENKINS_ENABLE_ACCESS_LOG" = "yes" ]; then
PARAMS+=("--simpleAccessLogger.file=/var/log/jenkins/access_log")
fi

$JAVA_CMD "${PARAMS[@]}"
eval "$JAVA_CMD ${PARAMS[@]}"

0 comments on commit 9562b9a

Please sign in to comment.