Skip to content

Commit

Permalink
add single quotes for credentials
Browse files Browse the repository at this point in the history
also strip inital credentials for single quotes, for backward compatibility
  • Loading branch information
iakovgan authored and R. Tyler Croy committed Oct 11, 2015
1 parent 102869d commit d3b32f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/jenkins-slave-defaults.erb
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ FSROOT="<%= @slave_home -%>"

DESCRIPTION="<%= @description -%>"

# credentials
JENKINS_USERNAME="<%= @ui_user -%>"
JENKINS_PASSWORD="<%= @ui_pass -%>"
# credentials should be single quoted
JENKINS_USERNAME="'<%= @ui_user.gsub!(/^\'|\'?$/, '') -%>'"
JENKINS_PASSWORD="'<%= @ui_pass.gsub!(/^\'|\'?$/, '') -%>'"

OTHER_ARGS="<%= '-disableSslVerification' if @disable_ssl_verification -%>"

Expand Down

0 comments on commit d3b32f6

Please sign in to comment.