Skip to content

Commit

Permalink
Bug fix: Jenkins stack creation failed with $ in Jenkins admin passwo…
Browse files Browse the repository at this point in the history
…rd (widdix#123)

allow $ in Jenkins admin password
  • Loading branch information
Alex Gorbachev authored and michaelwittig committed Sep 29, 2017
1 parent bb74458 commit d67615a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jenkins/jenkins2-ha-agents.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ Resources:
command: 'until $(curl -s -m 60 -o /dev/null -I -f -u "admin:$(cat /var/lib/jenkins/secrets/initialAdminPassword)" http://localhost:8080/cli/); do printf "."; sleep 1; done'
test: '[ ! -f /var/lib/jenkins/setup_done.txt ]'
'k_set_admin_password':
command: !Sub 'echo ''jenkins.model.Jenkins.instance.securityRealm.createAccount("admin", "${MasterAdminPassword}")'' | java -jar /var/cache/jenkins/war/WEB-INF/jenkins-cli.jar -s "http://localhost:8080/" -auth "admin:$(cat /var/lib/jenkins/secrets/initialAdminPassword)" groovy ='
command: !Sub 'echo $''jenkins.model.Jenkins.instance.securityRealm.createAccount("admin", \''${MasterAdminPassword}\'')'' | java -jar /var/cache/jenkins/war/WEB-INF/jenkins-cli.jar -s "http://localhost:8080/" -auth "admin:$(cat /var/lib/jenkins/secrets/initialAdminPassword)" groovy ='
test: '[ ! -f /var/lib/jenkins/setup_done.txt ]'
'l_stop_jenkins':
command: 'service jenkins stop'
Expand Down
2 changes: 1 addition & 1 deletion jenkins/jenkins2-ha.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ Resources:
command: 'until $(curl -s -m 60 -o /dev/null -I -f -u "admin:$(cat /var/lib/jenkins/secrets/initialAdminPassword)" http://localhost:8080/cli/); do printf "."; sleep 1; done'
test: '[ ! -f /var/lib/jenkins/setup_done.txt ]'
'j_set_admin_password':
command: !Sub 'echo ''jenkins.model.Jenkins.instance.securityRealm.createAccount("admin", "${MasterAdminPassword}")'' | java -jar /var/cache/jenkins/war/WEB-INF/jenkins-cli.jar -s "http://localhost:8080/" -auth "admin:$(cat /var/lib/jenkins/secrets/initialAdminPassword)" groovy ='
command: !Sub 'echo $''jenkins.model.Jenkins.instance.securityRealm.createAccount("admin", \''${MasterAdminPassword}\'')'' | java -jar /var/cache/jenkins/war/WEB-INF/jenkins-cli.jar -s "http://localhost:8080/" -auth "admin:$(cat /var/lib/jenkins/secrets/initialAdminPassword)" groovy ='
test: '[ ! -f /var/lib/jenkins/setup_done.txt ]'
'k_stop_jenkins':
command: 'service jenkins stop'
Expand Down

0 comments on commit d67615a

Please sign in to comment.