Skip to content

Commit

Permalink
Fix Issue jenkinsci#213 Get JAVA_OPTS, JENKIS_OPTS and arguments working
Browse files Browse the repository at this point in the history
With the right quoting
  • Loading branch information
carlossg committed Feb 29, 2016
1 parent 65b3254 commit e7d56fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jenkins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ find /usr/share/jenkins/ref/ -type f -exec bash -c "copy_reference_file '{}'" \;

# if `docker run` first argument start with `--` the user is passing jenkins launcher arguments
if [[ $# -lt 1 ]] || [[ "$1" == "--"* ]]; then
exec java $JAVA_OPTS -jar /usr/share/jenkins/jenkins.war $JENKINS_OPTS "$@"
eval "exec java $JAVA_OPTS -jar /usr/share/jenkins/jenkins.war $JENKINS_OPTS \"\$@\""
fi

# As argument is not jenkins, assume user want to run his own process, for sample a `bash` shell to explore this image
Expand Down

0 comments on commit e7d56fa

Please sign in to comment.